Function at 0x40d890
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x410297
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x43ce6c]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x43ce6c]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x30], eax
call fcn.0040c7a0
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], 0
call dword [0x411330]
mov ebx, eax
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
call dword [0x411880]
push 0x414244
push ebx
mov dword [esp + 0x258], 0
call dword [0x411128]
add esp, 8
test eax, eax
jne 0x40d95b
lea edx, [esp + 0x14]
push 0x414b10
push edx
call dword [0x411884]
add esp, 8
lea ecx, [esp + 0x14]
call dword [0x411878]
mov ebx, dword [0x411338]
push eax
push 0
push 1
call ebx
add esp, 0xc
jmp 0x40d961
mov ebx, dword [0x411338]
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call dword [0x41132c]
cmp byte [ebp + 0x28], 0
mov byte [esp + 0x250], 1
jne 0x40de3d
lea ecx, [esp + 0x18]
call dword [0x411328]
test al, al
je 0x40de83
mov dword [esp + 0x20], 0
test esi, esi
je 0x40d9f8
push esi
call fcn.00401460
add esp, 4
mov dword [esp + 0x20], eax
call fcn.0040e308
mov eax, dword [eax + 4]
mov byte [esp + 0x13], 0
test eax, eax
je 0x40d9d7
add eax, 0xa5
push esi
push eax
call dword [0x4110a8]
add esp, 8
test eax, eax
jne 0x40d9d7
mov byte [esp + 0x13], 1
cmp dword [esp + 0x20], 0
je 0x40d9f8
cmp dword [0x43ee74], 0
jne 0x40d9f8
cmp byte [esp + 0x13], 0
je 0x40d9f8
mov ecx, dword [esp + 0x20]
mov dword [0x43ee74], ecx
mov edx, dword [0x4112e0]
lea ecx, [esp + 0x18]
mov byte [edx], 0
call dword [0x411318]
movzx esi, ax
mov eax, 0xa661
cmp si, ax
je 0x40da6b
push 0xef19
lea ecx, [esp + 0x18]
call dword [0x411774]
push 0
push 0x10
lea ecx, [esp + 0x1c]
call dword [0x411878]
push eax
call fcn.0040e1d6
mov edx, dword [esp + 0x1c]
movzx ecx, si
push ecx
push edx
lea eax, [esp + 0x1c]
push 0x414ac8
push eax
call dword [0x411884]
add esp, 0x10
lea ecx, [esp + 0x14]
call dword [0x411878]
push eax
push 0
push 0
call ebx
add esp, 0xc
mov esi, dword [0x411318]
lea ecx, [esp + 0x18]
call esi
movzx eax, ax
cmp ax, 2
je 0x40dad3
push 0xef19
lea ecx, [esp + 0x18]
call dword [0x411774]
push 0
push 0x10
lea ecx, [esp + 0x1c]
call dword [0x411878]
push eax
call fcn.0040e1d6
mov ecx, dword [esp + 0x1c]
push 2
push 2
push ecx
lea edx, [esp + 0x20]
push 0x414a78
push edx
call dword [0x411884]
push 0x5a0
call dword [0x411344]
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x250], 2
test eax, eax
je 0x40de7b
mov edx, dword [0x43ee74]
mov ecx, dword [esp + 0x2c]
push 0
push edx
mov edx, dword [ebp + 0x1c]
push ecx
push edx
mov ecx, eax
call dword [0x411280]
mov dword [esp + 0x24], eax
jmp 0x40deb6
xor eax, eax
mov dword [esp + 0x24], eax
jmp 0x40deb6
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
lea eax, [esp + 0x15c]
push 0x414608
push eax
call dword [0x411320]
lea ecx, [esp + 0x164]
push ecx
push 0
push 2
call ebx
add esp, 0x34