Function at 0x40b160
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46402c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0x2c]
call fcn.0041b850
xor ebx, ebx
push 5
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], ebx
call fcn.0041c4d0
push 2
lea ecx, [esp + 0x30]
call fcn.0041c510
push 3
lea ecx, [esp + 0x30]
call fcn.0041c4e0
mov ecx, dword [ebp + 0x80]
cmp ecx, ebx
jne 0x40b1be
mov dword [esp + 0x14], ebx
jmp 0x40b1cd
mov eax, dword [ebp + 0x84]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
jbe 0x40b3c5
jmp 0x40b1e0
push 0
push 1
push 0
push 0
call fcn.00406e70
mov eax, dword [ebp + 0x80]
mov ecx, dword [esp + 0x2c]
mov esi, dword [eax + ecx*4]
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], esi
call dword [0x46e148]
mov eax, dword [0x4b3a40]
push esi
lea edx, [esi + 0x40]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_s_s
push ecx
mov byte [esp + 0x68], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x14
push 0x2e
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x30]
call fcn.0041c530
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
call fcn.0041c540
lea ecx, [esp + 0x18]
call dword [0x46e148]
push 0x45
push str.IDS_MESSAGE
mov byte [esp + 0x5c], 4
call fcn.0040ee00
add esp, 8
push eax
lea ecx, [esp + 0x1c]
call dword [0x46e374]
push 0x100
call sub.MFC71.DLL_operator_new
add esp, 4
push esi
lea ecx, [esp + 0x1c]
mov edi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
push str._s__s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp + 0x58]
add esp, 0x10
push edi
push 0
push 0x46d
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
add ebx, 0x1e
mov eax, ebx
xor edx, edx
div dword [esp + 0x14]
xor ecx, ecx
push ecx
push 0x64
push ecx
add eax, 0xa
push eax
call fcn.00406ef0
add esp, 0x10
lea eax, [esi + 0xc4]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x40b36b
mov edi, dword [ebp + 0x90]
test edi, edi
lea ecx, [ebp + 0x8c]
jne 0x40b336
xor edx, edx
jmp 0x40b33e
mov edx, dword [ecx + 8]
sub edx, edi
sar edx, 2
test edi, edi
je 0x40b35b
mov eax, dword [ecx + 0xc]
sub eax, edi
sar eax, 2
cmp edx, eax
jae 0x40b35b
mov eax, dword [ecx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ecx + 8], eax
jmp 0x40b36b
mov eax, dword [ecx + 8]
lea edx, [esp + 0x28]
push edx
push 1
push eax
call fcn.004076a0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0
push 1
push 0
push 1
call fcn.00406e70
add esp, 0x10
mov ecx, ebp
call fcn.0040c3f0
test eax, eax
jne 0x40b3fb
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x40b1e0
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret