Function at 0x470aa0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f3538
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x54d000]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x54d000]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x58]
mov dword [ebx + 4], 1
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x84], 0xffffffff
mov dword [ebx + 0x78], 0
mov ecx, dword [eax]
push 0
mov eax, dword [ecx]
call dword [eax + 0x40]
push 0x30
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004dc9b0
add esp, 0xc
mov dword [esp + 0x18], vtable.IFunc.0
call fcn.004b64a0
mov dword [esp + 0x1c], eax
call fcn.00496280
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x1c], vtable.IFuncFlag.0
mov dword [esp + 0x30], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x18], vtable.CFuncFlag.0
push ecx
push 0x15c4
push 0
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x68], 0
call fcn.004aab10
push ecx
push 1
push 0x35
push 0
lea ecx, [esp + 0x28]
call fcn.004aacb0
push ecx
push 1
push 0x38
push 0
lea ecx, [esp + 0x28]
call fcn.004aacb0
mov ecx, dword [ebx + 0x64]
lea esi, [ebx + 0xa0]
xor edx, edx
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x30]
mov dword [ebx + 0x98], eax
lea edi, [edx + 0x60]
mov eax, dword [ecx + 0x30]
add eax, 0x15be
mov dword [ebx + 0x9c], eax
movzx ecx, word [eax]
mov eax, dword [ebx + 0x98]
mov dword [esi], ecx
imul ecx, ecx, 0x2e
cmp byte [ecx + eax], 1
jne 0x470c15
cmp dword [esi], edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edx
mov edx, 0x74
cmovg ecx, esi
cmp dword [ebx + 0x7c], 2
cmove edx, edi
lea edi, [esp + 0x14]
mov esi, dword [ecx]
cmp edx, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edx
cmovge ecx, edi
mov dword [esp + 0x14], esi
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
mov dword [ebx + 0x90], 0
xor ecx, ecx
cmp byte [eax], 1
je 0x470c31
inc ecx
add eax, 0x2e
cmp ecx, 0x6e
jl 0x470c21
jmp 0x470c3b
mov dword [ebx + 0x90], 1
push str.saveload.area
lea ecx, [ebx + 0x2c]
call fcn.00492de0
mov edi, dword [ebx + 0x7c]
mov edx, 0x60
cmp edi, 2
mov dword [ebx + 0xa4], 0x61
mov ecx, 0x74
mov eax, 0x1a3
cmove ecx, edx
cdq
idiv ecx
cmp edi, 2
mov ecx, 0x74
mov esi, eax
mov eax, 0x60
cmove ecx, eax
mov eax, 0x1a3
cdq
idiv ecx
cmp edi, 2
mov ecx, 0x74
push 0
push 0x5a4
push 0x500
lea eax, [edx + 0x61]
mov edx, 0x60
cmove ecx, edx
mov dword [ebx + 0xa4], eax
imul ecx, esi
cdq
sub eax, edx
sar eax, 1
add eax, 0x83
mov dword [ebx + 0xa8], ecx
mov ecx, dword [0x57d89c]
add ecx, 0x120
mov dword [ebx + 0xac], eax
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 0xe0]
mov ecx, dword [0x57d898]
push 0
add ecx, 0x120
push 0x5a4
push 0x500
push 0
mov eax, dword [ecx]
push 0
call dword [eax + 0xe0]
mov ecx, dword [0x57d89c]
push 0x1a
push 0x111
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [0x57d898]
push 0x1a
push 0x111
mov eax, dword [ecx]
call dword [eax + 0x48]
mov eax, dword [ebx]
mov ecx, ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0
push dword [0x57d86c]
push str.save_load_bg.akb
call dword [eax + 0xd0]
mov edx, dword [0x57d86c]
test edx, edx
je 0x470d56
add edx, 0x120
jmp 0x470d58
xor edx, edx
mov ecx, dword [0x57d890]
push 1
push 0
push 0
mov eax, dword [ecx + 0x120]
add ecx, 0x120
push edx
push 0x2d0
push 0x500
push 0
push 0
call dword [eax + 0x48]
mov eax, dword [0x57d864]
test eax, eax
je 0x470d93
lea edx, [eax + 0x120]
jmp 0x470d95
xor edx, edx
mov ecx, dword [0x57d89c]
push 1
push 0xd9
push 0x64c
mov eax, dword [ecx + 0x120]
add ecx, 0x120
push edx
push 0x20c
push 0x37
push 0x64
push 0x3ac
call dword [eax + 0x48]
mov ecx, dword [esp + 0x10]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
lea eax, [esi + esi*4]
add eax, eax
sub ecx, eax
push ecx
push esi
mov ecx, ebx
call fcn.00471c30
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
lea eax, [esp + 0x30]
mov dword [esp + 0x18], vtable.IFuncFlag.0
push eax
mov dword [esp + 0x30], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret