Function at 0x4052c0
Capabilities:
Check for software breakpoints
Get number of processors

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40bc46
push eax
mov eax, 0x1b28
mov dword fs:[0], esp
call fcn.0040b1f0
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x3c]
call fcn.00407480
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1b40], ebx
mov dword [esp + 0x30], ebx
xor ebp, ebp
mov byte [esp + 0x18], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
call fcn.0040ad96
mov edi, dword [esp + 0x1b48]
mov eax, dword [esi + 0xdc]
push eax
lea edx, [esp + 0x40]
lea ecx, [edi - 0x2000000]
mov byte [esp + 0x1b44], 1
push ecx
push edx
mov ecx, esi
call fcn.00405ad0
push ecx
test al, al
mov ecx, esp
jne 0x405353
mov dword [esp + 0x24], esp
push str.GetSectorList_Error
jmp 0x40581b
mov dword [esp + 0x24], esp
push str.Code_Downloading....
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004062a0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], 0
test eax, eax
jbe 0x40574d
lea eax, [esp + 0x48]
mov dword [esp + 0x1c], eax
jmp 0x405391
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x1b48]
mov al, byte [esi + 0x61d90]
mov dword [esp + 0x2c], 0
test al, al
jne 0x405827
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov eax, dword [edx]
push eax
call fcn.00405c00
test al, al
je 0x4057c4
mov edx, dword [esi + 0xdc]
mov eax, dword [esp + 0x30]
mov ecx, edx
sub ecx, ebp
cmp eax, ecx
jae 0x4053ec
add ebp, eax
push eax
mov dword [esp + 0x2c], ebp
mov ebp, eax
push eax
push edi
mov ecx, esi
mov dword [esp + 0x40], ebp
call fcn.00405ca0
jmp 0x405402
push ecx
mov dword [esp + 0x38], ecx
push eax
push edi
mov ecx, esi
mov dword [esp + 0x34], edx
call fcn.00405ca0
mov ebp, dword [esp + 0x34]
mov eax, ebp
mov dword [esp + 0x38], 0
shr eax, 0xc
mov dword [esp + 0x20], eax
je 0x4054bf
mov al, byte [esi + 0x61d90]
test al, al
jne 0x405827
mov edx, dword [esi + 0x61d94]
lea ecx, [esi + 0x61d94]
lea eax, [esp + 0xb38]
push 0x1000
push eax
call dword [edx + 0x3c]
lea ecx, [esp + 0xb38]
lea ebp, [esi + 0x61dac]
push 0x1000
push ecx
mov ecx, ebp
call fcn.00409d20
xor eax, eax
add ebx, 0x1000
mov edi, dword [esp + 0x2c]
xor edx, edx
mov dl, byte [esp + eax + 0xb38]
add edi, edx
inc eax
cmp eax, 0x1000
mov dword [esp + 0x2c], edi
jb 0x405465
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0xb38]
rep stosd dword es:[edi], eax
mov ecx, ebp
call fcn.00409f10
test eax, eax
je 0x4054a6
mov ecx, ebp
call fcn.00409f10
test eax, eax
jne 0x40549b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jb 0x405419
mov ebp, dword [esp + 0x34]
mov edi, ebp
and edi, 0xfff
je 0x405541
mov eax, dword [esi + 0x61d94]
lea ecx, [esi + 0x61d94]
lea edx, [esp + 0xb38]
push edi
push edx
call dword [eax + 0x3c]
lea eax, [esp + 0xb38]
push edi
lea ecx, [esi + 0x61dac]
push eax
call fcn.00409d20
xor eax, eax
test edi, edi
jbe 0x405515
add ebx, edi
mov edx, dword [esp + 0x2c]
xor ecx, ecx
mov cl, byte [esp + eax + 0xb38]
add edx, ecx
inc eax
cmp eax, edi
mov dword [esp + 0x2c], edx
jb 0x4054fd
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0xb38]
rep stosd dword es:[edi], eax
lea edi, [esi + 0x61dac]
mov ecx, edi
call fcn.00409f10
test eax, eax
je 0x405541
mov ecx, edi
call fcn.00409f10
test eax, eax
jne 0x405536
lea edx, [esp + 0x18]
mov ecx, esi
push edx
push 0x4e20
mov byte [esp + 0x20], 5
call fcn.00404830
mov al, byte [esp + 0x18]
cmp al, 0xcc
je 0x4055c3
cmp al, 0xcd
jne 0x4057e0
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push 0x7d0
call fcn.00404830
mov al, byte [esp + 0x13]
mov dl, byte [esp + 0x12]
inc al
inc dl
cmp al, 3
mov byte [esp + 0x13], al
mov byte [esp + 0x12], dl
je 0x4057d2
mov al, dl
cmp al, 5
je 0x4057d2
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
sub ebx, ebp
sub edx, ebp
dec ecx
sub eax, 4
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
jmp 0x40572d
lea ecx, [esp + 0x18]
push ecx
push 0x7d0
mov ecx, esi
call fcn.00404830
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
push 0x7d0
mov ecx, esi
and edi, 0xff
call fcn.00404830
xor eax, eax
lea ecx, [esp + 0x18]
mov ah, byte [esp + 0x18]
push ecx
push 0x7d0
mov ecx, esi
or edi, eax
call fcn.00404830
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x18]
and edx, 0xff
push eax
shl edx, 0x10
push 0x7d0
mov ecx, esi
or edi, edx
call fcn.00404830
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
and ecx, 0xff
shl ecx, 0x18
or edi, ecx
cmp edi, eax
je 0x40566a
mov al, byte [esp + 0x13]
mov dl, byte [esp + 0x12]
inc al
inc dl
cmp al, 3
mov byte [esp + 0x13], al
mov byte [esp + 0x12], dl
je 0x40580f
mov al, dl
cmp al, 5
je 0x40580f
jmp 0x40559e
lea eax, [ebx + ebx*4]
xor edx, edx
lea edi, [esi + 0x6233c]
lea eax, [eax + eax*4]
mov ecx, edi
shl eax, 2
div dword [esi + 0xdc]
push eax
mov dword [esi + 0x61d8c], eax
call fcn.0040a810
mov edx, dword [esi + 0xdc]
mov eax, dword [esi + 0x61d8c]
push edx
push ebx
push eax
lea ecx, [esp + 0x20]
push str.Bin_:__3d_____d__d_
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x28]
add esp, 0x14
mov ecx, edi
push edx
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov eax, dword [esi + 0x61d8c]
lea ecx, [esp + 0x14]
push eax
push str.Bin_:__3d___Completed.__
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
push 0x42fd00
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x1b48]
lea ecx, [eax + edi - 0x2000001]
lea edx, [edi - 0x2000000]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.DOWNLOAD_:_0x_08X__0x_08X_...OK
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x40]
add esp, 0x10
add edi, eax
mov byte [esp + 0x13], 0
mov dword [esp + 0x1b48], edi
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edx
jb 0x405386
mov edx, dword [esi + 0x61d94]
lea ecx, [esi + 0x61d94]
call dword [edx + 0x54]
add esi, 0x6233c
push str.Done
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 0x64
push 0
mov ecx, esi
call fcn.0040a7f0
push 0x64
mov ecx, esi
call fcn.0040a810
lea ecx, [esp + 0x14]
mov byte [esp + 0x1b40], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1b40], 0xffffffff
call fcn.004074b0
mov al, 1
mov ecx, dword [esp + 0x1b38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1b34
ret 4
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.GetSectorSize
jmp 0x40581b
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.DWL_SOFT_DOWNLOAD_SECTOR_ERR
jmp 0x40581b
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
and ecx, 0xff
push ecx
push str.DWL_SOFT_DOWNLOAD_SECTOR_END_ERR_:_0x_X
push edx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_2
jmp 0x405820
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.DWL_SOFT_DOWNLOAD_SECTOR_CHECKSUM
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004062a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x1b40], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1b40], 0xffffffff
call fcn.004074b0
xor al, al
jmp 0x4057a9