Function at 0x431350
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4bd2c2
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x494]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4a8]
mov ebp, dword [esp + 0x4a4]
push str.COMMS_CONNECTED
mov esi, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0
call fcn.0046ccd0
mov edi, eax
test edi, edi
je 0x4315d2
push edi
call fcn.0049e31d
add esp, 4
push edi
mov ebx, eax
call fcn.0049081d
add esp, 4
test ebx, ebx
je 0x4315d2
mov eax, dword [esi]
push 0x5c
push eax
call fcn.0049ebc0
add esp, 8
test eax, eax
jne 0x4313ed
or edi, 0xffffffff
jmp 0x4313f3
sub eax, dword [esi]
sar eax, 1
mov edi, eax
mov eax, dword [esi]
push 0x2e
push eax
call fcn.0049ebc0
add esp, 8
test eax, eax
jne 0x431409
or eax, 0xffffffff
jmp 0x43140d
sub eax, dword [esi]
sar eax, 1
cmp edi, 0xffffffff
je 0x4315d2
cmp eax, 0xffffffff
je 0x4315d2
sub eax, edi
dec eax
push eax
lea ecx, [edi + 1]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.00408300
push edi
push 0
lea eax, [esp + 0x28]
push eax
mov ecx, esi
mov dword [esp + 0x4a8], 0
call fcn.00408300
mov byte [esp + 0x49c], 1
mov ecx, dword [0x4ee750]
mov eax, dword [ecx + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add eax, 0x64
push eax
call ebx
mov edx, dword [0x4ee750]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 0x5c]
inc dword [0x4ee7c8]
push ecx
push eax
call fcn.004823b0
mov edi, eax
test edi, edi
je 0x43157f
lea eax, [edi + 0x1c0]
test eax, eax
je 0x4314a0
push eax
call ebx
inc dword [0x4ee7c4]
mov edx, dword [0x4ee750]
mov eax, dword [edx + 0x1c]
call fcn.00483df0
push edi
call fcn.0047ec00
mov ecx, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esp + 0x28]
push eax
push ebx
push ecx
lea edx, [esp + 0x290]
push 0x4c9df4
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x288]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x431564
test byte [esp + 0x34], 0x10
jne 0x431564
push 0x4c395c
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00401c00
add esp, 0xc
lea ecx, [esp + 0x60]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x4a8], 2
call fcn.00401c00
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0x4a0], 3
call fcn.00408120
lea ecx, [esp + 0x30]
call fcn.00401a70
lea ecx, [esp + 0x1c]
mov byte [esp + 0x49c], 1
call fcn.00401a70
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x60]
push eax
call fcn.00401a90
push ebx
call fcn.0049081d
add esp, 4
mov eax, edi
call fcn.00480d40
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x49c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4315a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x49c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4315d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 0x1c0], 0
je 0x4316dc
mov esi, dword [esi]
push 0
push ecx
sub esi, 0x10
mov dword [esp + 0x20], esp
mov edi, esp
push esi
call fcn.004020a0
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [ebp + 0x1c0]
add esp, 4
call fcn.00462650
test eax, eax
je 0x4316dc
cmp dword [ebp + 0x204], 0
jne 0x431629
mov ecx, dword [0x4ee750]
push 1
push str.MESSAGELOADED
call fcn.0046c980
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, 0x4ee7d4
call fcn.00408830
mov edi, 1
push ebp
mov dword [0x4e90dc], edi
call fcn.00430c80
fld1
mov esi, dword [ebp + 0x1c0]
mov eax, dword [esi + 0x8c]
push ecx
fstp dword [esp]
mov dword [ebp + 0x1c8], eax
mov dword [ebp + 0x18c], 0
call fcn.0045e060
mov esi, ebp
call fcn.004305c0
mov ecx, dword [ebp + 0x1c0]
call fcn.004623d0
test eax, eax
jne 0x4316d0
cmp dword [esp + 0x4ac], eax
jne 0x4316d0
push str.FONT_WARNING
lea ecx, [esp + 0x1c]
call fcn.004019b0
mov dword [esp + 0x49c], 4
mov eax, dword [eax]
mov ecx, dword [0x4ee74c]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx + 0x64]
push 0xd
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x49c], 0xffffffff
call fcn.00401a70
push ebp
call fcn.00429ef0
mov dword [esp + 0x2c], edi
jmp 0x431744
cmp dword [esp + 0x4ac], 0
jne 0x431744
push ebp
call fcn.004318f0
push str.LOAD_FAIL
lea ecx, [esp + 0x20]
call fcn.004019b0
mov dword [esp + 0x49c], 5
mov eax, dword [eax]
mov ecx, dword [0x4ee74c]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx + 0x64]
push 0xd
call eax
mov dword [esp + 0x49c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431744
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x188], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x494]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.0049dc2a
add esp, 0x48c
ret 0xc