Function at 0x4052d4
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5db177
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x6dd9a4]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x34]
push eax
call fcn.00406eca
xor ebx, ebx
push eax
mov dword [esp + 0x8c], ebx
call fcn.00410a12
or dword [esp + 0x8c], 0xffffffff
pop ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], eax
call fcn.00411390
push dword [esp + 0x2c]
call fcn.0040708c
mov edx, dword [eax]
pop ecx
push 0x25
mov ecx, eax
mov dword [esp + 0x40], eax
call dword [edx + 0x28]
or dword [esp + 0x20], 0xffffffff
mov ecx, esi
movzx edi, ax
mov byte [esp + 0x15], 1
call fcn.00403e5f
push eax
push dword [esp + 0x30]
push edi
push dword [ebp + 8]
call fcn.00407091
add esp, 0x10
push eax
mov ecx, esi
call fcn.00406fc0
mov ecx, dword [ebp + 8]
movzx eax, di
push 1
mov dword [esp + 0x34], eax
push ebx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x22], bl
mov dword [esp + 0x24], ebx
call fcn.00405112
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40552c
movzx eax, di
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4053c6
lea eax, [esi + 0x34]
jmp 0x4053d2
dec eax
push eax
mov ecx, esi
call fcn.00406113
add eax, 0x20
mov ecx, dword [ebp + 8]
lea edi, [ebx + 1]
push edi
mov dword [esp + 0x2c], eax
call fcn.004f547a
mov ecx, dword [ebp + 8]
push ebx
mov dword [esp + 0x3c], eax
call fcn.004f547a
mov ecx, dword [esp + 0x38]
mov cx, word [ecx]
cmp cx, word [eax]
jne 0x40541a
push edi
push dword [esp + 0x20]
push dword [ebp + 8]
push dword [esp + 0x34]
call fcn.004071e9
add esp, 0x10
inc ebx
inc ebx
mov dword [esp + 0x1c], ebx
jmp 0x405509
cmp ebx, dword [esp + 0x1c]
je 0x405438
push ebx
push dword [esp + 0x20]
push dword [ebp + 8]
push dword [esp + 0x34]
call fcn.004071e9
add esp, 0x10
mov dword [esp + 0x1c], ebx
mov ecx, dword [ebp + 8]
push edi
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004015af
mov ecx, eax
call fcn.0040618b
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
mov eax, dword [eax + 4]
mov ecx, esi
mov dword [esp + 0x44], eax
call fcn.00403e5f
mov ecx, esi
push eax
push edi
push dword [esp + 0x34]
push dword [esp + 0x24]
call fcn.00406113
mov ecx, dword [ebp + 8]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004015cf
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00407244
mov ecx, dword [ebp + 8]
mov byte [esp + 0x2f], al
add esp, 0x18
lea eax, [esp + 0x60]
push eax
call fcn.004015af
push eax
lea ecx, [esp + 0x44]
call fcn.00403a36
cmp byte [esp + 0x17], 0
mov ebx, eax
je 0x405509
push dword [esp + 0x18]
mov ecx, esi
mov dword [esp + 0x20], ebx
call fcn.00406113
mov ecx, eax
call fcn.00407950
push dword [esp + 0x18]
mov ecx, esi
call fcn.00406113
mov eax, dword [eax]
cmp eax, 0xfffffffd
je 0x405509
cmp eax, 0xffffffff
jne 0x4054eb
mov byte [esp + 0x15], 0
jmp 0x405501
cmp eax, 0xfffffffe
jne 0x4054f7
mov byte [esp + 0x16], 1
jmp 0x405501
cmp eax, dword [esp + 0x20]
jle 0x405501
mov dword [esp + 0x20], eax
inc dword [esp + 0x24]
inc dword [esp + 0x18]
mov ecx, dword [ebp + 8]
push 1
push ebx
lea eax, [esp + 0x38]
push eax
call fcn.00405112
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4053b9
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x405531
lea eax, [esi + 0x34]
jmp 0x40553d
dec eax
push eax
mov ecx, esi
call fcn.00406113
add eax, 0x20
mov ecx, dword [ebp + 8]
push dword [ecx + 0x14]
push dword [esp + 0x20]
push ecx
push eax
call fcn.004071e9
add esp, 0x10
cmp byte [esp + 0x15], 0
jne 0x4055b4
xor edi, edi
cmp dword [esp + 0x20], edi
jl 0x40558a
mov ecx, esi
call fcn.00403e5f
test al, 1
je 0x40558a
push edi
push dword [esp + 0x24]
lea ecx, [esp + 0x70]
call fcn.0040eb2b
push eax
mov dword [esp + 0x8c], 1
call fcn.0040eb53
xor ebx, ebx
cmp dword [esp + 0x24], edi
jle 0x4055b1
push ebx
mov ecx, esi
call fcn.00406113
cmp dword [eax], 0xffffffff
jne 0x4055aa
push ebx
mov ecx, esi
call fcn.00406113
mov dword [eax], edi
inc edi
inc ebx
cmp ebx, dword [esp + 0x24]
jl 0x405592
dec edi
jmp 0x4055b8
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
push 0x20
call dword [eax + 0x28]
sub esp, 0x64
movzx eax, ax
mov ecx, esp
mov dword [esp + 0xa0], esp
push eax
call fcn.004061b9
push dword [esp + 0x88]
mov ecx, esi
call fcn.0040607f
cmp byte [esp + 0x16], 0
je 0x4055f1
or dword [esi + 0x24], 4
inc edi
cmp byte [esp + 0x15], 0
mov dword [esi + 0x2c], edi
je 0x405602
or dword [esi + 0x24], 1
jmp 0x405606
and dword [esi + 0x24], 0xfffffffe
mov eax, esi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4