Function at 0x406610
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4e3840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
call fcn.004c86da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], 0
call fcn.004c86da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0x44], 1
call fcn.004c86da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x44], 2
call fcn.004c86da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x5180a4
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 3
call fcn.00402490
push 0x5180ac
lea ecx, [esp + 0x10]
call fcn.00402490
push 0x5180b4
lea ecx, [esp + 0x18]
call fcn.00402490
push 0x5180bc
lea ecx, [esp + 0x1c]
call fcn.00402490
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x406778
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x54]
push 0
mov dword [esp + 0x28], 4
mov dword [esp + 0x34], ecx
mov eax, dword [eax + 0x1c]
push 0x1060
push eax
call edi
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x54]
lea edx, [esp + 0x20]
push edx
push 1
mov dword [esp + 0x34], ecx
mov eax, dword [eax + 0x1c]
push 0x1060
push eax
call edi
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x54]
lea ecx, [esp + 0x20]
push ecx
push 2
mov dword [esp + 0x34], ebx
mov edx, dword [eax + 0x1c]
push 0x1060
push edx
call edi
mov ebp, dword [esp + 0x1c]
mov esi, dword [esi + 0x54]
lea eax, [esp + 0x20]
push eax
push 3
mov dword [esp + 0x34], ebp
mov ecx, dword [esi + 0x1c]
push 0x1060
push ecx
call edi
pop edi
jmp 0x4067d2
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x54]
push 0xffffffffffffffff
push 0xf0
push 0x800
push edx
push 0
call fcn.004c2bb9
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x54]
push 0xffffffffffffffff
push 0x64
push 0
push eax
push 1
call fcn.004c2bb9
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0x54]
push 0xffffffffffffffff
push 0x46
push 0
push ebx
push 2
call fcn.004c2bb9
mov ebp, dword [esp + 0x18]
mov ecx, dword [esi + 0x54]
push 0xffffffffffffffff
push 0x78
push 0
push ebp
push 3
call fcn.004c2bb9
add ebp, 0xfffffff0
mov byte [esp + 0x44], 2
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067f2
mov ecx, dword [ebp]
mov eax, dword [ecx]
push ebp
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [esp + 0x44], 1
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406811
mov ecx, dword [ebx]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
pop ebp
pop ebx
jg 0x406837
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40685d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 4