Function at 0x4ea580
Capabilities:
Get common file path
Get number of processors
Read .ini file
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x578dcc
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov edi, dword [esp + 0x160]
mov esi, ecx
mov ecx, dword [esp + 0x15c]
push 7
push str.English
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edi
call fcn.00401840
lea eax, [esp + 0x40]
push eax
push 0x104
mov dword [edi], 0x64
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esi + 8]
lea edi, [esi + 8]
sub eax, 0x10
push eax
call fcn.004016a0
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x20], esi
push esi
mov dword [esp + 0x154], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x28]
call fcn.00521e16
push 0
push str..lang
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], 1
call fcn.00521ea2
test eax, eax
je 0x4ea7ad
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
nop
lea ecx, [esp + 0x28]
call fcn.00521c1a
mov esi, eax
neg esi
lea ecx, [esp + 0x14]
sbb esi, esi
push ecx
lea ecx, [esp + 0x2c]
add esi, 1
call fcn.005220d1
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push edi
push eax
mov byte [esp + 0x15c], 2
call fcn.004065f0
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x64
push str.LanguageID
push str.Info
call ebx
mov ebp, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ea6be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x158], ebp
mov eax, dword [esp + 0x14]
je 0x4ea6fc
add eax, 0xfffffff0
mov byte [esp + 0x150], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ea6ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4ea650
jmp 0x4ea7a0
cmp dword [eax - 0xc], 0
jge 0x4ea707
or eax, 0xffffffff
jmp 0x4ea722
push 0x57fc88
push eax
call fcn.00532258
add esp, 8
test eax, eax
jne 0x4ea71e
or eax, 0xffffffff
jmp 0x4ea722
sub eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00423e70
mov ecx, dword [esp + 0x24]
push eax
mov byte [esp + 0x154], 3
call fcn.00402060
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x150], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ea76b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x158]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [edx], ecx
add eax, 0xfffffff0
mov byte [esp + 0x150], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ea7a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
call fcn.00521b4a
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x28]
mov byte [esp + 0x150], 0
call fcn.00521e3a
lea eax, [esi - 0x10]
mov dword [esp + 0x150], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ea7f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0053042b
add esp, 0x140
ret 0xc