Function at 0x5c9144
Capabilities:
Get file size
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
test dl, dl
je 0x5c9173
add esp, 0xfffffff0
call fcn.004041c8
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x5c9401
push dword fs:[eax]
mov dword fs:[eax], esp
cmp di, 0xffff
jne 0x5c91f1
mov eax, esi
call fcn.0040a42c
mov edi, eax
mov dword [ebx + 8], edi
cmp edi, 0xffffffff
jne 0x5c91eb
lea edx, [ebp - 0x40]
mov eax, esi
call fcn.0040aaf8
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x44]
call fcn.0040dea0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x5f66e8]
mov dl, 1
mov eax, dword [0x41be4c]
call fcn.0040e944
call fcn.00404630
mov byte [ebx + 0x48], 0
jmp 0x5c9257
movzx edx, di
mov eax, esi
call fcn.0040a3bc
mov dword [ebx + 8], eax
cmp dword [ebx + 8], 0xffffffff
jne 0x5c924c
lea edx, [ebp - 0x48]
mov eax, esi
call fcn.0040aaf8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x4c]
call fcn.0040dea0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x5f60d4]
mov dl, 1
mov eax, dword [0x41bea8]
call fcn.0040e944
call fcn.00404630
test di, 3
sete al
mov byte [ebx + 0x48], al
lea eax, [ebx + 0x4c]
mov edx, esi
call fcn.00404d14
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
jne 0x5c929f
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x54]
call fcn.0040dea0
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov edx, 0x5c9434
call fcn.00404fe8
mov ecx, dword [ebp - 0x50]
mov dl, 1
mov eax, dword [0x408c08]
call fcn.0040e824
call fcn.00404630
jmp 0x5c9345
lea edx, [ebp - 8]
push edx
push eax
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
push 1
push 0
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405da0
push edx
push eax
mov eax, esi
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
cmp dword [ebx + 0x14], 0
jne 0x5c92d9
cmp dword [ebx + 0x10], 0
je 0x5c933e
cmp byte [ebx + 0x48], 0
je 0x5c92e8
mov esi, 2
jmp 0x5c92ed
mov esi, 4
push 0
push 0
push 0
push esi
push 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebx + 0xc], eax
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x5c9345
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x5c]
call fcn.0040dea0
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, 0x5c9434
call fcn.00404fe8
mov ecx, dword [ebp - 0x58]
mov dl, 1
mov eax, dword [0x408c08]
call fcn.0040e824
call fcn.00404630
jmp 0x5c9345
mov dword [ebx + 0xc], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
mov eax, 0xe0
xor edx, edx
call fcn.00405da0
cmp edx, dword [ebx + 0x14]
jne 0x5c9385
cmp eax, dword [ebx + 0x10]
ja 0x5c93a1
jmp 0x5c9387
jg 0x5c93a1
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
mov eax, 0xe0
xor edx, edx
call fcn.00405da0
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
jmp 0x5c93b9
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
mov eax, 0x10
xor edx, edx
call fcn.00405da0
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov eax, ebx
call fcn.005c9610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c9408
lea eax, [ebp - 0x5c]
mov edx, 8
call fcn.00404ce4
ret