Function at 0x42a0c0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x588790]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x4c]
push eax
push esi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x60], edx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x42a10a
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4c]
mov edx, eax
xor ebx, ebx
and edx, 1
je 0x42a120
mov dword [ebp - 0x50], 1
mov ebx, dword [ebp - 0x50]
test al, 2
je 0x42a127
or ebx, 2
test al, 4
je 0x42a12e
or ebx, 4
mov ecx, eax
and ecx, 0x10
je 0x42a138
or ebx, 0x10
test al, 0x20
je 0x42a13f
or ebx, 0x20
test ecx, ecx
je 0x42a14b
or ebx, 0x40000000
jmp 0x42a151
or ebx, 0x80000000
or ebx, 0x1000000
mov dword [ebp - 0x50], ebx
test edx, edx
jne 0x42a167
or ebx, 0x800000
mov dword [ebp - 0x50], ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x58], eax
cmp eax, 0x28
jbe 0x42a214
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call ebx
push 0
lea ecx, [ebp - 0x5c]
push ecx
push 2
lea edx, [ebp - 0x54]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push esi
call ebx
push 0
lea eax, [ebp - 0x5c]
push eax
push 4
lea ecx, [ebp - 0x70]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, 0x54ad
cmp word [ebp - 0x54], dx
jne 0x42a211
mov eax, dword [ebp - 0x70]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x58], ecx
jbe 0x42a211
push 0
push 0
push eax
push esi
call ebx
push 0
lea edx, [ebp - 0x5c]
push edx
push 4
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x68]
cmp eax, 0x5a4d
je 0x42a20a
cmp eax, 0x454e
je 0x42a20a
cmp eax, 0x454c
je 0x42a20a
cmp eax, 0x4550
jne 0x42a211
or dword [ebp - 0x50], 0x400000
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x42a21d
mov dword [eax], ebx
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x42a229
mov ecx, dword [ebp - 0x58]
mov dword [eax], ecx
mov esi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
test edi, edi
je 0x42a2a0
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
push 0
sub edx, 0xd53e8000
push 0x989680
sbb eax, 0x19db1de
push eax
push edx
call fcn.005134a0
mov dword [edi + 4], edx
push 0
mov ecx, ebx
sub ecx, 0xd53e8000
mov edx, esi
push 0x989680
sbb edx, 0x19db1de
push edx
push ecx
mov dword [edi], eax
call fcn.005134a0
mov ecx, dword [ebp - 0x44]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x48]
push 0
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
mov dword [edi + 0xc], edx
call fcn.005134a0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x42a300
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], esi
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x16]
add ecx, 0xffffffc4
and edx, 0xf
shl ecx, 4
or ecx, edx
mov edx, dword [ebp - 0xe]
shl ecx, 5
movzx eax, cx
mov ecx, dword [ebp - 0x12]
and ecx, 0x1f
or eax, ecx
mov ecx, dword [ebp - 0x10]
and edx, 0x3f
shl ecx, 6
or edx, ecx
mov ecx, dword [ebp - 0xc]
shl edx, 5
movzx edx, dx
shl eax, 0x10
or eax, edx
lea edx, [ecx + ecx]
and edx, 0x1f
or eax, edx
mov dword [edi], eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00503edf
mov esp, ebp
pop ebp
ret