Function at 0x497d90
Capabilities:
Get number of processors
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4efe86
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x2dc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x2f4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x304]
mov ebx, dword [esp + 0x308]
mov ebp, dword [esp + 0x30c]
mov esi, ecx
push 0x4fea44
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebp
call fcn.004c97af
mov edi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x30], edi
cmp edi, eax
jne 0x497e47
cmp ebx, eax
je 0x497e40
lea edi, [esp + 0x34]
call fcn.00498d70
push 0xffffffffffffffff
push 0
push eax
mov eax, ebx
mov dword [esp + 0x308], 0
call fcn.00401850
cmp dword [esp + 0x4c], 8
jb 0x497e40
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004c8f17
add esp, 4
xor al, al
jmp 0x4980a6
cmp ebp, eax
je 0x497e54
mov edx, dword [ebp]
mov dword [esp + 0x1c], edx
jmp 0x497e58
mov dword [esp + 0x1c], eax
xor ecx, ecx
mov dword [esp + 0x6e], eax
mov dword [esp + 0x72], eax
mov dword [esp + 0x76], eax
mov dword [esp + 0x7a], eax
mov dword [esp + 0x7e], eax
mov dword [esp + 0x82], eax
mov dword [esp + 0x86], eax
mov dword [esp + 0x8a], eax
mov dword [esp + 0x8e], eax
mov word [esp + 0x92], ax
push eax
or eax, 0xffffffff
mov word [esp + 0x70], cx
call fcn.00401a10
push 2
push 0
push edi
call fcn.004cbfa2
push edi
call fcn.004cbeaa
push 0
push 0
push edi
mov ebx, eax
call fcn.004cbfa2
add esp, 0x1c
xor ebp, ebp
test ebx, ebx
je 0x49803c
push ebx
call fcn.004c85fa
push edi
push 1
mov esi, eax
push ebx
push esi
mov dword [esp + 0x3c], esi
call fcn.004c9ab9
add esp, 0x14
cmp ebx, 0x64
mov eax, ebx
jle 0x497eee
mov eax, 0x64
push eax
lea edx, [esp + 0x160]
push esi
push edx
call fcn.00498480
xor ecx, ecx
add esp, 8
mov word [esp + eax*2 + 0x160], cx
mov eax, esp
lea edx, [esp + 0x160]
lea edi, [esp + 0x54]
mov dword [esp + 0x18], 0xfde9
mov dword [esp + 0x24], esp
mov dword [eax], edx
call fcn.004985a0
add esp, 4
mov dword [esp + 0x2fc], 1
cmp dword [esp + 0x64], 0
je 0x497f69
cmp dword [esp + 0x68], 8
mov ecx, dword [esp + 0x54]
jae 0x497f4e
lea ecx, [esp + 0x54]
push 5
mov eax, 0x50f2c8
call fcn.00497a50
add esp, 4
test eax, eax
je 0x497f69
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
push 0
push 0
push ebx
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebp, eax
mov eax, 0x51eb851f
imul ebp
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
add edi, ebp
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c85fa
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 4
add eax, edi
mov dword [esp + 0x20], esi
call fcn.0045e9d0
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
push ebp
push esi
push ebx
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push esi
mov esi, dword [esp + 0x20]
call fcn.00401760
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004ca215
push edi
call fcn.004ca215
add esp, 8
mov dword [esp + 0x2fc], 0xffffffff
cmp dword [esp + 0x68], 8
jb 0x498021
mov edx, dword [esp + 0x54]
push edx
call fcn.004c8f17
add esp, 4
mov edi, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
push ebp
push ebx
lea ecx, [esp + 0x74]
push ecx
push str._s_d_bytes_to__d_wide_chars
lea edx, [esp + 0xa4]
call fcn.0049aa70
mov esi, dword [esp + 0x34]
add esp, 0x10
test esi, esi
je 0x49808d
lea eax, [esp + 0x94]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x498070
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x98]
push edx
call fcn.00401760
push edi
call fcn.004c9c66
mov eax, dword [esp + 0x30]
add esp, 4
test eax, eax
je 0x4980a4
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov al, 1
mov ecx, dword [esp + 0x2f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2dc]
xor ecx, esp
call fcn.004c8f08
add esp, 0x2ec
ret