Function at 0x5e0428
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x5e0430
push ebx
xor eax, eax
push ebp
push 0x5e0744
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.004073d8
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00426460
lea eax, [ebp - 0x1c]
mov edx, 0x5e075c
call fcn.0040b6d0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.0040b5c8
mov eax, dword [ebp - 0x18]
call fcn.005d4a88
test al, al
je 0x5e0711
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.004073d8
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00426460
lea eax, [ebp - 0x24]
mov edx, 0x5e075c
call fcn.0040b6d0
mov eax, dword [ebp - 0x24]
call fcn.0040b4d8
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5e04fb
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.004073d8
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00426460
lea eax, [ebp - 0x2c]
mov edx, 0x5e075c
call fcn.0040b6d0
mov eax, dword [ebp - 0x2c]
call fcn.00426374
jmp 0x5e0711
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.kernel32.dll_GetFileSizeEx
cmp dword [ebp - 0xc], 0
jne 0x5e0513
cmp dword [ebp - 0x10], 0x38
jae 0x5e054a
jmp 0x5e0515
jge 0x5e054a
push ebx
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 0x38]
xor eax, eax
call fcn.004073d8
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00426460
lea eax, [ebp - 0x34]
mov edx, 0x5e075c
call fcn.0040b6d0
mov eax, dword [ebp - 0x34]
call fcn.00426374
jmp 0x5e0711
lea eax, [ebp - 4]
mov edx, dword [0x5d3f80]
call fcn.0040d96c
push 4
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x5d3f80]
call fcn.0040d848
add esp, 4
push 0
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointerEx
push 0
lea eax, [ebp - 0x14]
push eax
push 4
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 0x14], 4
je 0x5e05cb
push ebx
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 0x40]
xor eax, eax
call fcn.004073d8
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00426460
lea eax, [ebp - 0x3c]
mov edx, 0x5e075c
call fcn.0040b6d0
mov eax, dword [ebp - 0x3c]
call fcn.00426374
jmp 0x5e0711
mov eax, dword [ebp - 4]
cmp byte [eax], 0x54
jne 0x5e05ee
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x44
jne 0x5e05ee
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x53
jne 0x5e05ee
mov eax, dword [ebp - 4]
cmp byte [eax + 3], 0x46
je 0x5e0623
push ebx
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 0x48]
xor eax, eax
call fcn.004073d8
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.00426460
lea eax, [ebp - 0x44]
mov edx, 0x5e075c
call fcn.0040b6d0
mov eax, dword [ebp - 0x44]
call fcn.00426374
jmp 0x5e0711
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_SetFilePointerEx
push 0
lea eax, [ebp - 0x14]
push eax
push 4
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 0x14], 4
je 0x5e067e
push ebx
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 0x50]
xor eax, eax
call fcn.004073d8
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.00426460
lea eax, [ebp - 0x4c]
mov edx, 0x5e075c
call fcn.0040b6d0
mov eax, dword [ebp - 0x4c]
call fcn.00426374
jmp 0x5e0711
lea eax, [ebp - 4]
call fcn.005d50b4
mov ecx, eax
mov eax, dword [ebp - 0x10]
cmp ecx, eax
je 0x5e06c1
push ebx
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 0x58]
xor eax, eax
call fcn.004073d8
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.00426460
lea eax, [ebp - 0x54]
mov edx, 0x5e075c
call fcn.0040b6d0
mov eax, dword [ebp - 0x54]
call fcn.00426374
jmp 0x5e0711
push ebx
call sub.kernel32.dll_CloseHandle
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
movzx ecx, word [0x5e0770]
xor edx, edx
mov eax, 0x5e0780
call fcn.0055f1c4
cmp eax, 6
jne 0x5e0711
lea edx, [ebp - 0x60]
xor eax, eax
call fcn.004073d8
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.00426460
lea eax, [ebp - 0x5c]
mov edx, 0x5e075c
call fcn.0040b6d0
mov eax, dword [ebp - 0x5c]
call fcn.00426374
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e074b
lea eax, [ebp - 0x60]
mov edx, 0x12
call fcn.0040a6f8
lea eax, [ebp - 0x18]
call fcn.0040a6e0
lea eax, [ebp - 4]
mov edx, dword [0x5d3f80]
call fcn.0040d96c
pop eax
jmp eax