Function at 0x40e3e0
Capabilities:
Get number of processors
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445e91
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x4584b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0040efb0
mov dword [edi], eax
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
call fcn.00411ba0
mov byte [ebp - 4], 1
lea ecx, [edi + 0x98]
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x4c], 0x4cbebc20
mov dword [edi + 0x48], 0x4cbebc20
mov dword [edi + 0x44], 0x4cbebc20
mov dword [edi + 0x40], 0x4cbebc20
mov dword [edi + 0x3c], 0x4cbebc20
mov dword [edi + 0x38], 0x4cbebc20
mov dword [edi + 0x34], 0x4cbebc20
mov dword [edi + 0x5c], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x64], 0x60
mov dword [edi + 0x68], 0x61
mov dword [edi + 0x6c], 0x62
mov dword [edi + 0x70], 0x63
mov dword [edi + 0x74], 0x64
mov dword [edi + 0x78], 0x65
mov dword [edi + 0x7c], 0x66
mov dword [edi + 0x80], 0x67
mov dword [edi + 0x84], 0x68
mov dword [edi + 0x88], 0x69
mov dword [edi + 0x8c], 0x6e
mov dword [edi + 0x90], 0x6b
mov dword [edi + 0x94], 0x6d
call fcn.00412450
mov byte [ebp - 4], 2
lea esi, [edi + 0xcc]
mov dword [edi + 0xc0], 0xffffffff
mov dword [edi + 0xc4], 9
mov byte [edi + 0xc8], 0
call fcn.00401c40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40e54e
push 0x80004005
call fcn.004019f0
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
call fcn.00401c40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40e57c
push 0x80004005
call fcn.004019f0
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0xd0], eax
mov byte [ebp - 4], 4
call fcn.00401c40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40e5ae
push 0x80004005
call fcn.004019f0
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0xd4], eax
mov byte [ebp - 4], 5
call fcn.00401c40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40e5e0
push 0x80004005
call fcn.004019f0
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0xd8], eax
push 0x15
push str.Tales_of_Zestiria.exe
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004085a0
push esi
lea ecx, [edi + 0xd0]
call fcn.0040bc00
push 0xc
push str.NOT_SET:_1.0
lea ecx, [edi + 0xd8]
call fcn.004085a0
push ecx
mov ecx, dword [edi + 0xd0]
mov esi, esp
sub ecx, 0x10
mov dword [ebp - 0x10], esp
call fcn.00401240
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 7
mov esi, esp
mov ecx, dword [edi + 0xcc]
sub ecx, 0x10
call fcn.00401240
add eax, 0x10
lea ecx, [edi + 8]
mov dword [esi], eax
mov byte [ebp - 4], 6
call fcn.00411ce0
lea eax, [edi + 8]
mov dword [ebp - 0x3c], 0
lea esi, [edi + 0x2c]
xorps xmm0, xmm0
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
movdqu xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x10], 0
movdqu xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x10], 0
lea eax, [ebp - 0x3c]
push eax
je 0x40e6a7
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
jmp 0x40e6ad
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x38]
mov dword [esi + 4], eax
mov eax, edi
mov dword [edi + 0x60], esi
mov dword [edi + 0xa0], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret