Function at 0x47cb40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ac0b0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x617960]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x617960]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
push eax
mov dword [esp + 0x4c], eax
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.0047d690
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], 1
cmp byte [esi + 0x28], 0
jne 0x47cd7f
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x47cbd0
cmp byte [esi + 0x29], 0
push ebx
je 0x47ccb1
call eax
cmp dword [esi + 8], 0
je 0x47ccb9
mov eax, dword [esi + 4]
mov edi, dword [eax]
lea eax, [esp + 0x18]
add edi, 8
cmp eax, edi
je 0x47cc03
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00437b20
lea eax, [edi + 0x18]
lea ecx, [esp + 0x30]
cmp ecx, eax
je 0x47cc18
mov eax, dword [eax]
push eax
push dword [eax]
call fcn.0047ce10
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call edi
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 8], 0
jne 0x47cc42
push ebx
call edi
jmp 0x47cd70
mov eax, dword [esi + 4]
mov edx, dword [eax]
mov dword [esp + 0x14], edx
mov ecx, dword [edx + 4]
lea edi, [edx + 0x20]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, edi
dec dword [esi + 8]
call fcn.0047d610
push dword [edi]
call fcn.0047e2e9
mov edi, dword [esp + 0x18]
add esp, 4
cmp dword [edi + 0x1c], 8
jb 0x47cc86
push dword [edi + 8]
call fcn.0047e2e9
add esp, 4
xor eax, eax
mov dword [edi + 0x1c], 7
mov dword [edi + 0x18], 0
push edi
mov word [edi + 8], ax
call fcn.0047e2e9
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 4
push ebx
call edi
jmp 0x47cd70
call eax
cmp dword [esi + 8], 0
jg 0x47ccc9
push ebx
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47cd70
mov eax, dword [esi + 4]
mov edi, dword [eax]
lea eax, [esp + 0x18]
add edi, 8
cmp eax, edi
je 0x47cce5
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00437b20
lea eax, [edi + 0x18]
lea ecx, [esp + 0x30]
cmp ecx, eax
je 0x47ccfa
mov eax, dword [eax]
push eax
push dword [eax]
call fcn.0047ce10
mov eax, dword [esi + 4]
mov edx, dword [eax]
mov dword [esp + 0x14], edx
mov ecx, dword [edx + 4]
lea edi, [edx + 0x20]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, edi
dec dword [esi + 8]
call fcn.0047d610
push dword [edi]
call fcn.0047e2e9
mov edi, dword [esp + 0x18]
add esp, 4
cmp dword [edi + 0x1c], 8
jb 0x47cd3e
push dword [edi + 8]
call fcn.0047e2e9
add esp, 4
xor eax, eax
mov dword [edi + 0x1c], 7
mov dword [edi + 0x18], 0
push edi
mov word [edi + 8], ax
call fcn.0047e2e9
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 4
push ebx
call edi
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 4]
cmp byte [esi + 0x28], 0
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
je 0x47cbd0
lea ecx, [esp + 0x30]
call fcn.0047d610
push dword [esp + 0x30]
call fcn.0047e2e9
add esp, 4
cmp dword [esp + 0x2c], 8
jb 0x47cda7
push dword [esp + 0x18]
call fcn.0047e2e9
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0049355b
mov esp, ebp
pop ebp
ret