Function at 0x505a90
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5a73a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x6131b0]
push esi
push edi
mov esi, ecx
mov dword [esp + 8], eax
push 0x68
mov dword [esp + 0x30], 0
call fcn.005742aa
mov ecx, dword [esi + 0x158]
mov edi, eax
mov eax, dword [ecx + 0x28]
cmp eax, 2
jne 0x505adb
push 0x4e23
jmp 0x505af0
cmp eax, 1
jne 0x505ae7
push 0x4e25
jmp 0x505af0
test eax, eax
jne 0x505af9
push 0x4e24
lea ecx, [esp + 0xc]
call fcn.00576ee0
mov edx, dword [esp + 8]
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push edx
push 0xffffffffffffffff
push 0x14d
push eax
call ebx
mov eax, dword [esi + 0x158]
lea ebp, [esi + 0x98]
mov edi, dword [eax + 0x34]
mov ecx, dword [eax + 0x30]
and edi, 0xff
mov dword [esp + 0x24], ecx
push edi
mov ecx, ebp
call fcn.005746c8
push edi
lea ecx, [esi + 0x118]
call fcn.005746c8
mov eax, dword [esi + 0x158]
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
test cl, cl
mov dword [esp + 0x24], edx
je 0x505b71
test ch, ch
jne 0x505b71
mov eax, dword [eax + 0x34]
mov ecx, edx
mov dword [esp + 0x28], eax
lea eax, [ecx + 1]
mov ecx, ebp
cdq
push edx
push eax
call fcn.004dcd10
mov ecx, dword [esi + 0x158]
push 0x6d
mov dl, byte [ecx + 0x50]
mov ecx, esi
mov byte [esp + 0x18], dl
call fcn.005742aa
mov edi, eax
mov eax, dword [esp + 0x14]
and eax, 0xff
mov ecx, edi
push eax
call fcn.005746c8
mov eax, dword [esi + 0x158]
lea ecx, [eax + 0x4c]
mov al, byte [eax + 0x50]
test al, al
je 0x505c64
mov al, byte [ecx + 5]
test al, al
jne 0x505c64
lea edx, [esp + 0x1c]
push edx
call fcn.00408df0
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x3c], 1
call fcn.0056be44
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00504390
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 3
call fcn.00575bd5
mov ecx, dword [esi + 0x158]
lea edx, [esp + 0x20]
push edx
add ecx, 0x4c
call fcn.00408df0
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s___s_
push edx
mov byte [esp + 0x44], 4
call fcn.0056ad27
add esp, 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 3
call fcn.00575bd5
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x1c]
push eax
push 0xffffffffffffffff
push 0x14c
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x505c48
xor eax, eax
mov edx, dword [edi + 0x1c]
push 0
push eax
push 0x14e
push edx
call ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.00575bd5
mov eax, dword [esi + 0x158]
push 0x6f
mov ecx, dword [eax + 0x54]
mov edi, dword [eax + 0x58]
mov dword [esp + 0x28], ecx
mov ecx, esi
call fcn.005742aa
mov ebp, eax
and edi, 0xff
push edi
mov ecx, ebp
call fcn.005746c8
mov eax, dword [esi + 0x158]
mov ecx, dword [eax + 0x58]
mov edx, dword [eax + 0x54]
test cl, cl
mov dword [esp + 0x24], edx
je 0x505cbc
test ch, ch
jne 0x505cbc
mov eax, dword [eax + 0x58]
mov ecx, edx
push 0
push ecx
mov ecx, dword [ebp + 0x1c]
push 0x14e
push ecx
mov dword [esp + 0x38], eax
call ebx
mov eax, dword [esi + 0x158]
push 0x71
mov ecx, esi
mov edx, dword [eax + 0x5c]
mov edi, dword [eax + 0x60]
mov dword [esp + 0x28], edx
call fcn.005742aa
mov ebp, eax
and edi, 0xff
push edi
mov ecx, ebp
call fcn.005746c8
mov eax, dword [esi + 0x158]
mov ecx, dword [eax + 0x5c]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x60]
test cl, cl
je 0x505d15
test ch, ch
jne 0x505d15
mov ecx, dword [eax + 0x5c]
mov edx, dword [eax + 0x60]
mov eax, dword [ebp + 0x1c]
push 0
push ecx
push 0x14e
push eax
mov dword [esp + 0x38], edx
call ebx
mov eax, dword [esi + 0x158]
pop ebp
pop ebx
lea ecx, [eax + 0x18]
mov al, byte [eax + 0x1c]
test al, al
je 0x505d5e
mov al, byte [ecx + 5]
test al, al
jne 0x505d5e
lea edx, [esp + 0x18]
push edx
call fcn.00408df0
mov eax, dword [eax]
mov ecx, esi
push eax
push 0x73
mov byte [esp + 0x34], 5
call fcn.005742aa
mov ecx, eax
call fcn.00574541
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call fcn.00575bd5
mov eax, dword [esi + 0x158]
lea ecx, [eax + 0x20]
mov al, byte [eax + 0x24]
test al, al
je 0x505da5
mov al, byte [ecx + 5]
test al, al
jne 0x505da5
lea eax, [esp + 0x18]
push eax
call fcn.00408df0
mov eax, dword [eax]
mov ecx, esi
push eax
push 0x75
mov byte [esp + 0x34], 6
call fcn.005742aa
mov ecx, eax
call fcn.00574541
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call fcn.00575bd5
mov ecx, dword [esi + 0x158]
push 0x79
mov dl, byte [ecx + 0x68]
mov ecx, esi
mov byte [esp + 0x10], dl
call fcn.005742aa
mov edi, eax
mov eax, dword [esp + 0xc]
and eax, 0xff
mov ecx, edi
push eax
call fcn.005746c8
mov esi, dword [esi + 0x158]
mov al, byte [esi + 0x68]
lea ecx, [esi + 0x64]
test al, al
je 0x505e0c
mov al, byte [ecx + 5]
test al, al
jne 0x505e0c
lea edx, [esp + 0x18]
push edx
call fcn.00408df0
mov eax, dword [eax]
mov ecx, edi
push eax
mov byte [esp + 0x30], 7
call fcn.00574541
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call fcn.00575bd5
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00575bd5
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret