Icewind Dale 2 CD-Check Crack v2.00 (072215)
                                                   9/19/2002 5:20PM
By SoftBeard

Removes the CD-check

File: IWD2.EXE

 File Offset         From      To

  [1FB409]           75       EB
 
Ye 'ol 1-byte wonder. Classic RPG.

Gory details:
      
.005FB2C0: 64A100000000                 mov         eax,fs:[000000000]         
.005FB2C6: 6AFF                         push        0FF                        
.005FB2C8: 68E08D8200                   push        000828DE0   -------- (3)   
.005FB2CD: 50                           push        eax                        
.005FB2CE: 64892500000000               mov         fs:[000000000],esp         
.005FB2D5: 83EC34                       sub         esp,034 ;"4"               
.005FB2D8: 53                           push        ebx                        
.005FB2D9: 55                           push        ebp                        
.005FB2DA: 56                           push        esi                        
.005FB2DB: 8BF1                         mov         esi,ecx                    
.005FB2DD: 8B869E0F0000                 mov         eax,[esi][000000F9E]       
.005FB2E3: 57                           push        edi                        
.005FB2E4: 33FF                         xor         edi,edi                    
.005FB2E6: 3BC7                         cmp         eax,edi                    
.005FB2E8: 744C                         je         .0005FB336   -------- (1)   
.005FB2EA: 6804668A00                   push        0008A6604   -------- (2)   
.005FB2EF: 8D4C241C                     lea         ecx,[esp][1C]              
.005FB2F3: E808F91800                   call       .00078AC00   -------- (3)   
.005FB2F8: A13CF68C00                   mov         eax,[0008CF63C]            
.005FB2FD: 8B885C1C0000                 mov         ecx,[eax][000001C5C]       
.005FB303: 8D542418                     lea         edx,[esp][18]              
.005FB307: 52                           push        edx                        
.005FB308: E8933BE4FF                   call       .00043EEA0   -------- (4)   
.005FB30D: 68E07A8A00                   push        0008A7AE0   -------- (5)   
.005FB312: 8D4C241C                     lea         ecx,[esp][1C]              
.005FB316: E8E5F81800                   call       .00078AC00   -------- (6)   
.005FB31B: A13CF68C00                   mov         eax,[0008CF63C]            
.005FB320: 8B885C1C0000                 mov         ecx,[eax][000001C5C]       
.005FB326: 8D542418                     lea         edx,[esp][18]              
.005FB32A: 52                           push        edx                        
.005FB32B: E8D03FE4FF                   call       .00043F300   -------- (7)   
.005FB330: 89BE9E0F0000                 mov         [esi][000000F9E],edi       
.005FB336: 39BEA80F0000                 cmp         [esi][000000FA8],edi       
.005FB33C: 0F84E1050000                 je         .0005FB923   -------- (1)   
.005FB342: 8B0D3CF68C00                 mov         ecx,[0008CF63C]            
.005FB348: E863B6E2FF                   call       .0004269B0   -------- (2)   
.005FB34D: 84C0                         test        al,al                      
.005FB34F: 0F8555020000                 jne        .0005FB5AA   -------- (3)   
.005FB355: 8B0D3CF68C00                 mov         ecx,[0008CF63C]            
.005FB35B: 8D442414                     lea         eax,[esp][14]              
.005FB35F: 50                           push        eax                        
.005FB360: E8EBB8E2FF                   call       .000426C50   -------- (4)   
.005FB365: A138F68C00                   mov         eax,[0008CF638]            
.005FB36A: 8B984C1C0000                 mov         ebx,[eax][000001C4C]       
.005FB370: 8898D7070000                 mov         [eax][0000007D7],bl        
.005FB376: 8B0D38F68C00                 mov         ecx,[0008CF638]            
.005FB37C: 51                           push        ecx                        
.005FB37D: C681D907000002               mov         b,[ecx][0000007D9],002 ;" "
.005FB384: 8D542418                     lea         edx,[esp][18]              
.005FB388: 8BCC                         mov         ecx,esp                    
.005FB38A: 89642428                     mov         [esp][28],esp              
.005FB38E: 52                           push        edx                        
.005FB38F: 897C2454                     mov         [esp][54],edi              
.005FB393: E897172000                   call       .0007FCB2F   -------- (5)   
.005FB398: A138F68C00                   mov         eax,[0008CF638]            
.005FB39D: 8D8842050000                 lea         ecx,[eax][000000542]       
.005FB3A3: E8A8090000                   call       .0005FBD50   -------- (1)   
.005FB3A8: 8B0D38F68C00                 mov         ecx,[0008CF638]            
.005FB3AE: C681D607000001               mov         b,[ecx][0000007D6],001 ;" "
.005FB3B5: 8B1538F68C00                 mov         edx,[0008CF638]            
.005FB3BB: 68585C8C00                   push        0008C5C58   -------- (2)   
.005FB3C0: 8D4C241C                     lea         ecx,[esp][1C]              
.005FB3C4: C682D807000001               mov         b,[edx][0000007D8],001 ;" "
.005FB3CB: E8581A2000                   call       .0007FCE28   -------- (3)   
.005FB3D0: 8B0D38F68C00                 mov         ecx,[0008CF638]            
.005FB3D6: 8B01                         mov         eax,[ecx]                  
.005FB3D8: 57                           push        edi                        
.005FB3D9: 53                           push        ebx                        
.005FB3DA: 6A01                         push        001                        
.005FB3DC: 8D542424                     lea         edx,[esp][24]              
.005FB3E0: 52                           push        edx                        
.005FB3E1: 57                           push        edi                        
.005FB3E2: 57                           push        edi                        
.005FB3E3: 6A01                         push        001                        
.005FB3E5: C644246801                   mov         b,[esp][68],001 ;" "       
.005FB3EA: FF5068                       call        d,[eax][68]                
.005FB3ED: 8D4C2418                     lea         ecx,[esp][18]              
.005FB3F1: C644244C00                   mov         b,[esp][4C],000 ;" "       
.005FB3F6: E8BF192000                   call       .0007FCDBA   -------- (4)   
.005FB3FB: 8B2DA8748400                 mov         ebp,GetAsyncKeyState ;USER3
.005FB401: 32DB                         xor         bl,bl                      
.005FB403: 885C2413                     mov         [esp][13],bl               
.005FB407: 84DB                         test        bl,bl                      

.005FB409: 755C                         jne        .0005FB467  ;Force this jump with JMP 5FB467
            SKIP ALL THIS CODE
.005FB40B: A138F68C00                   mov         eax,[0008CF638]            
.005FB410: 6A1B                         push        01B                        
.005FB412: 47                           inc         edi                        
.005FB413: C7803A19000001000000         mov         d,[eax][00000193A],00000000
.005FB41D: FFD5                         call        ebp                        
.005FB41F: 6685C0                       test        ax,ax                      
.005FB422: 7402                         je         .0005FB426   -------- (2)   
.005FB424: B301                         mov         bl,001 ;" "                
.005FB426: 8B0D38F68C00                 mov         ecx,[0008CF638]            
.005FB42C: 83B93219000001               cmp         d,[ecx][000001932],001 ;" "
.005FB433: 0F84AE000000                 je         .0005FB4E7   -------- (3)   
.005FB439: 6A64                         push        064                        
.005FB43B: FF15C4728400                 call        Sleep ;KERNEL32.dll  ;Pauses for display of "Insert CD Disk 2..." message
.005FB441: 33D2                         xor         edx,edx                    
.005FB443: 8BC7                         mov         eax,edi                    
.005FB445: B919000000                   mov         ecx,000000019 ;"    "      
.005FB44A: F7F1                         div         ecx                        
.005FB44C: 85D2                         test        edx,edx                    
.005FB44E: 750F                         jne        .0005FB45F   -------- (1)   
.005FB450: 8B0D3CF68C00                 mov         ecx,[0008CF63C]            
.005FB456: E855B5E2FF                   call       .0004269B0  ; CD check is in here
.005FB45B: 88442413                     mov         [esp][13],al               
.005FB45F: 8A442413                     mov         al,[esp][13]               
.005FB463: 84C0                         test        al,al                      
.005FB465: 74A0                         je         .0005FB407   -------- (3)   
.005FB467: 80FB01                       cmp         bl,001 ;" "                
           WE CONTINUE ON FROM HERE...
.005FB46A: 68585C8C00                   push        0008C5C58   -------- (4)   
.005FB46F: 0F8596000000                 jne        .0005FB50B   -------- (5)   
.005FB475: 8D4C241C                     lea         ecx,[esp][1C]              
.005FB479: E8AA192000                   call       .0007FCE28   -------- (6)   
.005FB47E: 8B0D38F68C00                 mov         ecx,[0008CF638]            
.005FB484: 8B11                         mov         edx,[ecx]                  
.005FB486: 6A00                         push        000                        
.005FB488: 6A00                         push        000                        
.005FB48A: 6A01                         push        001                        
.005FB48C: 8D442424                     lea         eax,[esp][24]              
.005FB490: 50                           push        eax                        
.005FB491: 6A00                         push        000                        
.005FB493: 6A00                         push        000                        
.005FB495: 6A00                         push        000                        
.005FB497: C644246802                   mov         b,[esp][68],002 ;" "       
.005FB49C: FF5268                       call        d,[edx][68]                
.005FB49F: 8D4C2418                     lea         ecx,[esp][18]              
.005FB4A3: C644244C00                   mov         b,[esp][4C],000 ;" "       
.005FB4A8: E80D192000                   call       .0007FCDBA   -------- (1)   
.005FB4AD: A13CF68C00                   mov         eax,[0008CF63C]            
.005FB4B2: C780A6490000032E0000         mov         d,[eax][0000049A6],000002E0
.005FB4BC: C780A249000010000000         mov         d,[eax][0000049A2],00000001
.005FB4C6: 83C078                       add         eax,078 ;"x"               
.005FB4C9: 85C0                         test        eax,eax                    
.005FB4CB: 7403                         je         .0005FB4D0   -------- (2)   
.005FB4CD: 8B401C                       mov         eax,[eax][1C]              
.005FB4D0: 6A00                         push        000                        
.005FB4D2: 6A00                         push        000                        
.005FB4D4: 6A10                         push        010                        
.005FB4D6: 50                           push        eax                        
.005FB4D7: FF15DC748400                 call        PostMessageA ;USER32.dll   
.005FB4DD: C786A80F000000000000         mov         d,[esi][000000FA8],00000000
.005FB4E7: 8D4C2414                     lea         ecx,[esp][14]              
.005FB4EB: C744244CFFFFFFFF             mov         d,[esp][4C],0FFFFFFFF ;"ÿÿÿ
.005FB4F3: E8C2182000                   call       .0007FCDBA   -------- (3)   
.005FB4F8: 8B4C2444                     mov         ecx,[esp][44]              
.005FB4FC: 64890D00000000               mov         fs:[000000000],ecx         
.005FB503: 5F                           pop         edi                        
.005FB504: 5E                           pop         esi                        
.005FB505: 5D                           pop         ebp                        
.005FB506: 5B                           pop         ebx                        
.005FB507: 83C440                       add         esp,040 ;"@"               
.005FB50A: C3                           retn