Function at 0x47e164
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x47e4bd
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 1
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push dword [eax + 8]
push 0x47e4d8
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x28]
call fcn.0040a5b4
push dword [ebp - 0x34]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
call fcn.0047eacc
test al, al
jne 0x47e481
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov ebx, eax
test bl, bl
je 0x47e21e
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x30]
mov edx, dword [0x65d944]
cmp byte [edx + eax], 0
je 0x47e21e
push ebp
mov eax, dword [ebp - 0xc]
call fcn.0047e044
pop ecx
mov dword [ebp - 0x24], eax
jmp 0x47e48d
test bl, bl
jne 0x47e481
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x20]
movzx edx, byte [edx + 0x30]
mov ecx, dword [0x65cddc]
mov edx, dword [ecx + edx*4]
call fcn.00405270
cmp dword [ebp - 0x14], 0
je 0x47e48d
lea eax, [ebp - 0x18]
call fcn.004051d8
lea eax, [ebp - 0x1c]
call fcn.004051d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x24]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x47e3c6
inc esi
xor edi, edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x24]
mov edx, edi
call fcn.00420b58
mov edx, dword [0x47b6ec]
call fcn.0040446c
mov dword [ebp - 8], eax
test edi, edi
jle 0x47e2ac
lea eax, [ebp - 0x18]
mov edx, 0x47e4e4
call fcn.004054a4
lea eax, [ebp - 0x1c]
mov edx, 0x47e4e4
call fcn.004054a4
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0xc]
sub al, 1
jb 0x47e2d4
sub al, 2
jb 0x47e341
dec al
je 0x47e35b
dec al
je 0x47e375
jmp 0x47e38d
mov eax, dword [ebp - 8]
cmp dword [eax + 0x20], 0
jle 0x47e315
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
call fcn.0040a5b4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x30]
mov ecx, dword [0x65d62c]
mov eax, dword [ecx + eax*4]
xor ecx, ecx
call fcn.0040be64
jmp 0x47e38d
lea eax, [ebp - 0x10]
push eax
mov eax, 0x47e4f0
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x30]
mov ecx, dword [0x65d62c]
mov eax, dword [ecx + eax*4]
xor ecx, ecx
call fcn.0040be64
jmp 0x47e38d
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x20]
movzx edx, byte [edx + 0x30]
mov ecx, dword [0x65cc70]
mov edx, dword [ecx + edx*4]
call fcn.00405270
jmp 0x47e38d
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x20]
movzx edx, byte [edx + 0x30]
mov ecx, dword [0x65d50c]
mov edx, dword [ecx + edx*4]
call fcn.00405270
jmp 0x47e38d
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x20]
movzx edx, byte [edx + 0x30]
mov ecx, dword [0x65cc5c]
mov edx, dword [ecx + edx*4]
call fcn.00405270
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
push dword [eax + 8]
push 0x47e4fc
push dword [ebp - 0x10]
push 0x47e508
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.0040556c
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
call fcn.004054a4
inc edi
dec esi
jne 0x47e270
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea edx, [ebp - 0x5c]
mov ecx, 2
mov eax, dword [ebp - 0x14]
call fcn.0040be64
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x14]
call fcn.00405270
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x44]
mov dl, 1
call dword [eax + 0x30]
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x47e47a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 8]
lea edx, [ebp - 0x5c]
or ecx, 0xffffffff
mov eax, dword [ebp - 0x30]
call fcn.0047ed8c
test al, al
je 0x47e45d
push ebp
mov eax, dword [ebp - 0xc]
call fcn.0047e044
pop ecx
mov dword [ebp - 0x24], eax
call fcn.00404bdc
jmp 0x47e48d
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e481
mov eax, dword [ebp - 0x30]
call fcn.004042bc
ret
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0x64
jmp 0x47e1ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e4c4
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004051fc
lea eax, [ebp - 0x34]
call fcn.004051d8
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.004051fc
ret