Function at 0x404ce0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ef1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
push 0x51a3d8
lea ecx, [esp + 0x60]
call fcn.00406e40
xor edi, edi
push 0x51a3d8
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], edi
call fcn.00406e40
push 0x51a3d8
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 1
call fcn.00406e40
mov bl, 2
lea eax, [esp + 0x30]
mov byte [esp + 0x54], bl
mov ecx, dword [ebp + 0x74]
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.004028a0
mov esi, 8
mov byte [esp + 0x54], 3
cmp dword [eax + 0x18], esi
jb 0x404d6f
mov eax, dword [eax + 4]
jmp 0x404d72
add eax, 4
push eax
lea ecx, [ebp + 0x7d6]
call fcn.004b9146
mov byte [esp + 0x54], bl
cmp dword [esp + 0x48], esi
jb 0x404d95
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004aef39
add esp, 4
mov esi, dword [ebp + 0x74]
mov eax, dword [esi + 0x1bc]
cmp eax, edi
je 0x404daf
mov edx, dword [esi + 0x1c0]
sub edx, eax
sar edx, 2
jne 0x404db5
xor ecx, ecx
xor eax, eax
jmp 0x404dd9
mov edi, eax
cmp edi, dword [esi + 0x1c0]
jbe 0x404dca
call fcn.004c000c
cmp edi, dword [esi + 0x1c0]
jb 0x404dd1
call fcn.004c000c
mov eax, dword [edi]
mov ecx, dword [eax + 0x12]
mov eax, dword [eax + 0x16]
lea ebx, [ebp + 0x9e]
lea esi, [ebp + 0xc22]
mov dword [ebp + 0x82], ecx
mov dword [ebp + 0x86], eax
call fcn.00407980
mov eax, dword [ebp + 0xa6]
test eax, eax
je 0x404e0e
mov ecx, dword [eax + 0x40]
mov edx, dword [eax + 0x44]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [ebp + 0x86]
mov ecx, dword [ebp + 0x82]
push eax
push ecx
lea edi, [esp + 0x20]
call fcn.00405370
mov esi, eax
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
mov bl, 4
push eax
lea edi, [esp + 0x24]
mov byte [esp + 0x5c], bl
call fcn.00405370
mov byte [esp + 0x54], 5
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x64]
push str._s____s
push eax
call fcn.00406da0
mov byte [esp + 0x64], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404e81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x54], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ea6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp + 0xcfe]
lea ebx, [esp + 0x5c]
call fcn.00407980
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, edi
or ecx, eax
je 0x404f58
mov esi, dword [ebp + 0x82]
mov ebx, dword [ebp + 0x86]
mov edx, esi
or edx, ebx
je 0x404f58
push 0
push 0x64
push eax
push edi
call fcn.004c1500
push ebx
push esi
push edx
push eax
call fcn.004c8fe0
mov esi, eax
push esi
lea eax, [esp + 0x60]
push str._d___
push eax
call fcn.00406da0
add esp, 0xc
cmp dword [ebp + 0x1232], esi
jg 0x404f29
cmp esi, dword [ebp + 0x1236]
jg 0x404f29
mov ecx, dword [ebp + 0x11ee]
push 1
push 0
push ecx
mov dword [ebp + 0x123a], esi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 0x123a]
mov edx, dword [ebp + 0x11ee]
push 0
push eax
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [ebp + 0xdda]
lea ebx, [esp + 0x5c]
call fcn.00407980
jmp 0x404fe7
cmp dword [ebp + 0x1232], 0
jg 0x404f85
cmp dword [ebp + 0x1236], 0
jl 0x404f85
mov eax, dword [ebp + 0x11ee]
push 1
push 0
push eax
mov dword [ebp + 0x123a], 0
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 0x123a]
mov ecx, dword [ebp + 0x11ee]
push 0
push eax
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x519f40
lea ecx, [esp + 0x20]
call fcn.00406e40
lea esi, [ebp + 0xdda]
lea ebx, [esp + 0x1c]
mov byte [esp + 0x54], 6
call fcn.00407980
mov byte [esp + 0x54], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404fe7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x7a]
test eax, eax
jle 0x40507f
mov ecx, dword [ebp + 0x82]
mov esi, dword [ebp + 0x86]
cdq
sub ecx, edi
sbb esi, dword [esp + 0x2c]
push edx
push eax
push esi
push ecx
call fcn.004c8fe0
push 0
push 0x3c
mov edi, edx
mov esi, eax
push edi
push esi
call fcn.004c9280
push 0
push 0x3c
push edx
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], ecx
call fcn.004db4a0
push 0
push 0xe10
push edi
push esi
mov ebx, eax
call fcn.004c8fe0
test eax, eax
jl 0x40504f
test ebx, ebx
jl 0x40504f
cmp dword [esp + 0x18], 0
jge 0x405057
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x18]
push edx
push ebx
push eax
lea eax, [esp + 0x68]
push str._02d:_02d:_02d
push eax
call fcn.00406da0
add esp, 0x14
lea esi, [ebp + 0xb46]
lea ebx, [esp + 0x5c]
call fcn.00407980
mov edi, ebp
call fcn.00405110
mov byte [esp + 0x54], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4050ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4050d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4050f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4