Function at 0x406e40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x417760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov edi, dword [esi + 8]
lea ecx, [esp + 0x54]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x34], edi
mov eax, dword [edi + 0x20]
mov dword [esp + 0x30], eax
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x84]
push 0
push 0
push ecx
lea ecx, [esp + 0x60]
mov byte [esp + 0x88], 1
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x406ee9
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CFile::GetLength
mov ebp, eax
push ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x406ed3
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CFile::Close
jmp 0x407321
push ebp
push ebx
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CFile::Close
jmp 0x406eed
mov ebx, dword [esp + 0x10]
mov edx, dword [edi + 0x90]
mov ebp, dword [edx + 0x430]
lea eax, [ebp + 4]
mov ecx, eax
mov eax, dword [ecx]
mov dword [esp + 0x48], eax
and eax, 0xff
mov dx, word [ecx + 4]
mov word [esp + 0x4c], dx
mov ecx, dword [esp + 0x4d]
mov edx, dword [esp + 0x4c]
and ecx, 0xff
push ecx
mov ecx, dword [esp + 0x4f]
and edx, 0xff
and ecx, 0xff
push edx
mov edx, dword [esp + 0x52]
push ecx
mov ecx, dword [esp + 0x55]
and edx, 0xff
and ecx, 0xff
push edx
push ecx
push eax
lea edx, [esp + 0x7c]
push str._02X_02X_02X_02X_02X_02X
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
lea eax, [esp + 0x48]
mov ecx, esi
push eax
call fcn.00406a80
cmp ax, 2
jne 0x40727e
add esi, 0x10
mov dword [esp + 0x18], esi
xor ecx, ecx
lea edx, [esp + 0x38]
mov dword [esp + 0x38], ecx
push 8
push edx
push ecx
mov dword [esp + 0x48], ecx
push ecx
mov ecx, dword [esp + 0x28]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 2
lea eax, [esp + 0x5c]
push 1
push eax
push 0x43a5e0
call fcn.00409af0
add esp, 0x20
cmp ax, 2
jne 0x40701b
mov ecx, dword [esp + 0x3c]
push ecx
call sub.WSOCK32.dll_ntohl
mov dword [esp + 0x3c], eax
mov edx, dword [ebx + 0xffe0]
mov esi, eax
and eax, 0xff
mov edi, eax
mov eax, dword [ebx + 0xffe4]
and eax, 0xf0f0f0f
and esi, 0xffff0000
push eax
mov dword [esp + 0x2c], edx
call sub.WSOCK32.dll_ntohl
mov ecx, eax
and eax, 0xff
and ecx, 0xffff0000
cmp eax, edi
jne 0x407284
cmp ecx, esi
jae 0x40701b
push 0
push 0
push str.Your_Files_Boot_Version_is_older_than_Flashs_Boot_Version__nContinue__MB_YESNO
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 7
je 0x40727e
mov edi, dword [ebx + 0xff00]
mov ecx, dword [esp + 0x14]
lea esi, [ebx + 0xff00]
push 0x1c
push esi
mov dword [esp + 0x30], edi
mov dword [esi], 0
call fcn.00406d90
mov edx, eax
push edi
mov dword [esp + 0x28], edx
call sub.WSOCK32.dll_ntohl
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jne 0x40705b
mov dword [esp + 0x20], 1
jmp 0x40708c
mov al, byte [ebp + 0xc]
mov dword [esp + 0x20], 0
cmp al, 1
jne 0x407082
cmp byte [ebp + 0xd], 1
jne 0x407082
mov al, byte [ebp + 0xe]
test al, al
jne 0x407082
mov al, byte [ebp + 0xf]
test al, al
je 0x407298
cmp byte [ebp + 0x1c], 1
je 0x407298
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
cmp eax, 1
mov dword [esi], edx
jne 0x4070c9
mov ecx, dword [esp + 0x48]
lea eax, [esi + 4]
push 0x1c
push esi
mov dword [eax], ecx
mov dx, word [esp + 0x54]
mov ecx, dword [esp + 0x1c]
mov dword [esi], 0
mov word [eax + 4], dx
call fcn.00406d90
push eax
mov dword [esi], eax
call sub.WSOCK32.dll_htonl
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
push ebx
call fcn.00406d90
push eax
mov dword [esp + 0x44], eax
call sub.WSOCK32.dll_htonl
xor ebx, ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], ebx
xor ebp, ebp
mov edi, dword [esp + 0x1c]
cmp ebx, edi
jae 0x4072b0
sub edi, ebx
cmp edi, 0x578
jbe 0x407109
mov edi, 0x578
mov ecx, dword [esp + 0x10]
push edi
lea esi, [ebx + ecx]
mov ecx, dword [esp + 0x1c]
push esi
push ebp
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x3003
lea edx, [esp + 0x5c]
push 0x3001
push edx
push 0x43a5e0
call fcn.00409ce0
movsx eax, ax
add esp, 0x20
test eax, eax
jl 0x4071ce
cmp eax, 1
jle 0x40716d
cmp eax, 3
jne 0x4071ce
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4071c0
push 0xbb8
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407187
push 0
push 0x12
push str.Download_Aborted
call sub.MFC42.DLL_AfxMessageBox
sub eax, 3
je 0x4072a9
dec eax
jne 0x4071bb
mov ecx, dword [esp + 0x18]
push edi
push esi
push ebp
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x3003
lea eax, [esp + 0x5c]
push 0x3001
push eax
push 0x43a5e0
call fcn.00409ce0
movsx eax, ax
add esp, 0x20
test eax, eax
jl 0x4071ce
jmp 0x407146
dec eax
je 0x4071ef
jmp 0x4071ce
push 0
push 0
push str.Download_Failed
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
add ebx, edi
inc ebp
sub ecx, ebx
push ecx
push 3
push 0x467
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4070ee
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x90]
mov ebp, dword [ecx + 0x430]
lea edx, [ebp + 4]
mov eax, dword [ebp + 4]
mov dword [esp + 0x48], eax
and eax, 0xff
mov cx, word [edx + 4]
mov word [esp + 0x4c], cx
mov edx, dword [esp + 0x4d]
mov ecx, dword [esp + 0x4c]
and edx, 0xff
push edx
mov edx, dword [esp + 0x4f]
and ecx, 0xff
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x52]
push edx
mov edx, dword [esp + 0x55]
and ecx, 0xff
and edx, 0xff
push ecx
push edx
push eax
lea eax, [esp + 0x7c]
push str._02X_02X_02X_02X_02X_02X
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00406a80
mov ebx, dword [esp + 0x10]
cmp ax, 2
je 0x406f7a
push ebx
jmp 0x407318
push 0
push 0
push str.Your_Files_FlashType_is_different_Flashs_FlashType_
call sub.MFC42.DLL_AfxMessageBox
push ebx
jmp 0x407318
push 0
push 0
push str.Please_use_final.bin_to_update
call sub.MFC42.DLL_AfxMessageBox
push ebx
jmp 0x407318
mov edx, dword [esp + 0x10]
push edx
jmp 0x407318
cmp dword [esp + 0x20], 1
jne 0x4072bb
push 0
jmp 0x4072c0
push 0x10000
call sub.WSOCK32.dll_htonl
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push 8
push eax
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x3003
lea ecx, [esp + 0x5c]
push 0x3005
push ecx
push 0x43a5e0
call fcn.00409ce0
mov edx, dword [0x43a918]
add esp, 0x20
push 0xc350
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x407347
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 0
call fcn.004164a6
lea ecx, [esp + 0x84]
mov dword [esp + 0x7c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40737c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 0
call fcn.004164a6
lea ecx, [esp + 0x84]
mov dword [esp + 0x7c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret 4