Function at 0x40d5a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f5e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x38], ebp
call fcn.00460104
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 0x4a40]
cmp eax, ebp
mov byte [esp + 0x38], 1
je 0x40d5f7
mov eax, dword [eax + 0x1c]
push ebp
push ebp
push 0x402
push eax
call dword [sym.imp.user32.dll_SendMessageA]
mov edi, dword [esp + 0x40]
push 0x473bb0
push edi
call fcn.004481c9
add esp, 8
cmp eax, ebp
mov dword [esi], eax
jne 0x40d649
push edi
push 0x474c1c
call fcn.00448589
add esp, 8
call fcn.00450cf0
lea eax, [ebx - 0x10]
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d641
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
jmp 0x40d9f2
mov edi, dword [esp + 0x44]
cmp edi, ebp
je 0x40d676
push 0x474db8
push edi
call fcn.004481c9
add esp, 8
cmp eax, ebp
mov dword [esi + 8], eax
jne 0x40d679
push edi
push 0x474d90
call fcn.00448589
add esp, 8
jmp 0x40d679
mov dword [esi + 8], ebp
mov edi, dword [esi]
push edi
call fcn.004483f5
push 2
push ebp
push edi
mov ebx, eax
call fcn.00448124
push edi
call fcn.004483f5
push 0
push ebx
push edi
mov ebp, eax
call fcn.00448124
mov edi, dword [esp + 0x6c]
lea eax, [esp + 0x30]
push 0x474d7c
shr ebp, 0xd
push eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x3c], edi
xor ebx, ebx
call fcn.00402a00
mov ecx, dword [esi + 0x4a44]
add esp, 0x28
test ecx, ecx
je 0x40d6d4
mov edx, dword [esp + 0x10]
push edx
call fcn.0045f49d
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x44], eax
jbe 0x40d8a0
mov dword [esp + 0x18], eax
lea eax, [esi + edi*8 + 0x441c]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
push eax
push 0x2000
push 1
lea ebp, [esi + 0x2414]
push ebp
call fcn.00448049
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
add esp, 0x10
push ecx
push edx
mov ecx, esi
mov edi, eax
call fcn.0040c2f0
test eax, eax
jne 0x40d880
cmp edi, 0x2000
jne 0x40d91d
mov al, byte [esi + 0x4a3c]
test al, al
jne 0x40d952
mov eax, dword [esp + 0x48]
push eax
push edi
push ebp
lea ecx, [esp + 0x28]
push ecx
lea edx, [esi + 0x14]
push edx
mov dword [esp + 0x30], 0x2400
call fcn.0042c110
add esp, 0x14
test eax, eax
jne 0x40d9b5
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x1c], eax
jb 0x40d794
test ebx, ebx
je 0x40d77e
inc dword [esp + 0x2c]
jmp 0x40d816
mov ecx, dword [esp + 0x44]
mov ebx, 1
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
jmp 0x40d816
test ebx, ebx
je 0x40d816
cmp dword [esp + 0x14], 0xc0
jge 0x40d7c9
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x14]
inc edx
mov dword [eax], ecx
add eax, 8
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
jmp 0x40d814
mov ebp, dword [esp + 0x4c]
mov edx, dword [esi + ebp*8 + 0x441c]
mov eax, ebp
inc eax
cmp eax, 0xc0
jge 0x40d7fa
lea edi, [esi + eax*8 + 0x441c]
mov ecx, dword [edi]
cmp ecx, edx
jae 0x40d7ef
mov edx, ecx
mov ebp, eax
inc eax
add edi, 8
cmp eax, 0xc0
jl 0x40d7e5
mov eax, dword [esp + 0x2c]
cmp eax, edx
jbe 0x40d814
mov edx, dword [esp + 0x28]
mov dword [esi + ebp*8 + 0x4418], edx
mov dword [esi + ebp*8 + 0x441c], eax
xor ebx, ebx
mov eax, dword [esp + 0x18]
xor edx, edx
div dword [esp + 0x24]
mov edi, eax
mov eax, dword [esi + 0x4a40]
test eax, eax
je 0x40d880
mov ecx, dword [eax + 0x1c]
mov ebp, dword [sym.imp.user32.dll_SendMessageA]
push 0
push 0
push 0x408
push ecx
call ebp
cmp eax, edi
jge 0x40d880
push edi
lea edx, [esp + 0x14]
push 0x473f00
push edx
call fcn.00402a00
mov ecx, dword [esi + 0x4a48]
add esp, 0xc
test ecx, ecx
je 0x40d86c
mov eax, dword [esp + 0x10]
push eax
call fcn.0045f49d
mov eax, dword [esi + 0x4a40]
mov ecx, dword [eax + 0x1c]
push 0
push edi
push 0x402
push ecx
call ebp
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
inc eax
add edx, 0x64
cmp eax, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], edx
jb 0x40d6f1
mov eax, dword [esi]
push eax
call fcn.00447f0f
mov esi, dword [esi + 8]
add esp, 4
test esi, esi
je 0x40d8bb
push esi
call fcn.00447f0f
add esp, 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d8de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x40]
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 0x40d904
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
mov esi, dword [esp + 0x40]
push esi
push 0x474d5c
call fcn.00448589
add esp, 8
call fcn.00450cf0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40d9e5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d975
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x40]
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 0x40d99b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
mov esi, dword [esp + 0x40]
push esi
push 0x474d5c
call fcn.00448589
add esp, 8
call fcn.00450cf0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d9ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14