Function at 0x5115f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x57a8c6
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004cd160
mov ecx, dword [esi + 0x28]
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x54]
call edx
test al, al
jne 0x511690
mov ecx, edi
call fcn.004cd6e0
movzx edx, word [edi + 0x3c]
mov eax, 0x574e
mov ebp, dword [edi + 0x44]
test dx, dx
mov ebx, dword [edi + 0x6c]
mov ecx, dword [esi + 0x28]
cmove edx, eax
test ebp, ebp
mov eax, 0x64
push edx
cmove ebp, eax
mov eax, 0x4000000
test ebx, ebx
cmove ebx, eax
mov eax, dword [ecx]
call dword [eax + 0x58]
cmp dword [esi + 0x38], 2
je 0x51168a
mov ecx, dword [esi + 0x28]
push ebp
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov eax, dword [esi + 0x28]
mov dword [eax + 0x10], ebx
lea ecx, [esp + 0x34]
call fcn.00515980
mov dword [esp + 0xc8], 0
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x18], 0x4442f8
lea ebx, [edi + 0x7c]
mov byte [esp + 0xc8], 1
mov ecx, ebx
mov eax, 0x44ea4c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5116f3
test dl, dl
je 0x5116ef
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5116f3
add eax, 2
add ecx, 2
test dl, dl
jne 0x5116d3
xor eax, eax
jmp 0x5116f8
sbb eax, eax
or eax, 1
test eax, eax
jne 0x511824
movzx eax, word [edi + 0x64]
push eax
call fcn.00515250
mov ebx, eax
add esp, 4
test bl, 8
je 0x511743
lea ecx, [esp + 0x34]
call fcn.00516ac0
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x18]
push 0x7d0
push edx
lea edx, [esp + 0x1c]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x40]
push edx
mov eax, dword [eax + 0xc]
call eax
test al, al
jne 0x511854
test bl, 4
je 0x511777
lea ecx, [esp + 0x34]
call fcn.005169d0
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x18]
push 0x7d0
push edx
lea edx, [esp + 0x1c]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x40]
push edx
mov eax, dword [eax + 0xc]
call eax
test al, al
jne 0x511854
test bl, 2
je 0x5117a2
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x18]
push 0x7d0
push edx
lea edx, [esp + 0x1c]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x40]
push edx
mov eax, dword [eax + 0xc]
call eax
test al, al
jne 0x511854
test ebx, 0xe
jne 0x5117b4
mov eax, dword [esi + 0x28]
mov dword [eax + 0xc], 0x64
xor bl, bl
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0x18], 0x4442f8
jb 0x5117d1
push dword [esp + 0x1c]
call fcn.00549eaf
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0xc8], 0xffffffff
call fcn.00515a80
mov al, bl
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0054a992
add esp, 0xb8
ret
push ebx
lea ecx, [esp + 0x38]
call fcn.00516870
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x18]
push 0x7d0
push edx
lea edx, [esp + 0x1c]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x40]
push edx
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x5117b4
mov bl, 1
jmp 0x5117b6