Function at 0x405429
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f9d28
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x70b744]
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.0040706a
xor ebx, ebx
push eax
mov dword [esp + 0x8c], ebx
call fcn.00410d92
or dword [esp + 0x8c], 0xffffffff
pop ecx
mov edi, eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], edi
call fcn.0041175a
mov eax, dword [edi]
push 0x25
mov ecx, edi
call dword [eax + 0x28]
or dword [esp + 0x20], 0xffffffff
movzx edi, ax
mov al, byte [esi + 0x50]
mov byte [esp + 0x2c], al
push dword [esp + 0x2c]
mov byte [esp + 0x19], 1
push dword [esp + 0x34]
push edi
push dword [ebp + 8]
call fcn.0040722c
add esp, 0x10
push eax
mov ecx, esi
call fcn.00407160
mov ecx, dword [ebp + 8]
movzx eax, di
push 1
mov dword [esp + 0x30], eax
push ebx
lea eax, [esp + 0x34]
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.00405267
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40567b
movzx eax, di
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x405512
lea eax, [esi + 0x34]
jmp 0x40551e
dec eax
push eax
mov ecx, esi
call fcn.00406239
add eax, 0x20
mov ecx, dword [ebp + 8]
lea edi, [ebx + 1]
push edi
mov dword [esp + 0x2c], eax
call fcn.00404d58
mov ecx, dword [ebp + 8]
push ebx
mov dword [esp + 0x3c], eax
call fcn.00404d58
mov ecx, dword [esp + 0x38]
mov cx, word [ecx]
cmp cx, word [eax]
jne 0x405566
push edi
push dword [esp + 0x20]
push dword [ebp + 8]
push dword [esp + 0x34]
call fcn.00407384
add esp, 0x10
inc ebx
inc ebx
mov dword [esp + 0x1c], ebx
jmp 0x405658
cmp ebx, dword [esp + 0x1c]
je 0x405584
push ebx
push dword [esp + 0x20]
push dword [ebp + 8]
push dword [esp + 0x34]
call fcn.00407384
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.004062b1
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x44], eax
mov al, byte [esi + 0x50]
mov byte [esp + 0x3c], al
push dword [esp + 0x3c]
mov ecx, esi
push edi
push dword [esp + 0x38]
push dword [esp + 0x24]
call fcn.00406239
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.004073df
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.00403a9b
cmp byte [esp + 0x17], 0
mov ebx, eax
je 0x405658
push dword [esp + 0x18]
mov ecx, esi
mov dword [esp + 0x20], ebx
call fcn.00406239
mov ecx, eax
call fcn.00407ace
push dword [esp + 0x18]
mov ecx, esi
call fcn.00406239
mov eax, dword [eax]
cmp eax, 0xfffffffd
je 0x405658
cmp eax, 0xffffffff
jne 0x40563a
mov byte [esp + 0x15], 0
jmp 0x405650
cmp eax, 0xfffffffe
jne 0x405646
mov byte [esp + 0x16], 1
jmp 0x405650
cmp eax, dword [esp + 0x20]
jle 0x405650
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 + 0x34]
push eax
call fcn.00405267
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405505
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x405680
lea eax, [esi + 0x34]
jmp 0x40568c
dec eax
push eax
mov ecx, esi
call fcn.00406239
add eax, 0x20
mov ecx, dword [ebp + 8]
push dword [ecx + 0x14]
push dword [esp + 0x20]
push ecx
push eax
call fcn.00407384
add esp, 0x10
cmp byte [esp + 0x15], 0
jne 0x4056fe
xor edi, edi
cmp dword [esp + 0x20], edi
jl 0x4056d4
test byte [esi + 0x50], 1
je 0x4056d4
push edi
push dword [esp + 0x24]
lea ecx, [esp + 0x70]
call fcn.0040ee90
push eax
mov dword [esp + 0x8c], 1
call fcn.0040eeb8
xor ebx, ebx
cmp dword [esp + 0x24], edi
jle 0x4056fb
push ebx
mov ecx, esi
call fcn.00406239
cmp dword [eax], 0xffffffff
jne 0x4056f4
push ebx
mov ecx, esi
call fcn.00406239
mov dword [eax], edi
inc edi
inc ebx
cmp ebx, dword [esp + 0x24]
jl 0x4056dc
dec edi
jmp 0x405702
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
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.004062df
push dword [esp + 0x88]
mov ecx, esi
call fcn.004061a5
cmp byte [esp + 0x16], 0
je 0x40573b
or dword [esi + 0x24], 4
inc edi
cmp byte [esp + 0x15], 0
mov dword [esi + 0x2c], edi
je 0x40574c
or dword [esi + 0x24], 1
jmp 0x405750
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