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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 1
je 0x4e4bba
mov eax, 0x1000000
jmp 0x4e4f30
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x4e4bdb
mov eax, 0x200
jmp 0x4e4f30
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 8
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.005379c0
add esp, 0xc
push 8
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.005379c0
add esp, 0xc
mov ecx, dword [ebp - 0x5c]
sub ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
sbb edx, dword [ebp - 0x50]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], edx
lea eax, [ebp - 0x20]
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xa0], ecx
lea edx, [ebp - 0x30]
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x78], 0
jmp 0x4e4c80
mov eax, dword [ebp - 0x78]
add eax, 1
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 3
jge 0x4e4ce4
push 8
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp + ecx*4 - 0xa4]
push edx
lea eax, [ebp - 0xac]
push eax
call fcn.005379c0
add esp, 0xc
mov ecx, dword [ebp - 0xac]
sub ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0xa8]
sbb edx, dword [ebp - 0x94]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb0], edx
push 8
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp + ecx*4 - 0xa4]
push edx
call fcn.005379c0
add esp, 0xc
jmp 0x4e4c77
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x4c]
and ecx, 1
test ecx, ecx
je 0x4e4d04
mov edx, dword [ebp - 0x3c]
or edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x4c]
and eax, 2
test eax, eax
je 0x4e4d17
mov ecx, dword [ebp - 0x3c]
or ecx, 2
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x4c]
and edx, 4
test edx, edx
je 0x4e4d29
mov eax, dword [ebp - 0x3c]
or al, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x4c]
and ecx, 0x10
test ecx, ecx
je 0x4e4d3c
mov edx, dword [ebp - 0x3c]
or edx, 0x10
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x4c]
and eax, 0x20
test eax, eax
je 0x4e4d4f
mov ecx, dword [ebp - 0x3c]
or ecx, 0x20
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x4c]
and edx, 0x10
test edx, edx
je 0x4e4d66
mov eax, dword [ebp - 0x3c]
or eax, 0x40000000
mov dword [ebp - 0x3c], eax
jmp 0x4e4d72
mov ecx, dword [ebp - 0x3c]
or ecx, 0x80000000
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
or edx, 0x1000000
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x4c]
and eax, 1
test eax, eax
je 0x4e4d8a
jmp 0x4e4d96
mov ecx, dword [ebp - 0x3c]
or ecx, 0x800000
mov dword [ebp - 0x3c], ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x28
jbe 0x4e4e8c
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x48]
push ecx
push 2
lea edx, [ebp - 0xbc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x48]
push edx
push 4
lea eax, [ebp - 0xb8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0xbc]
and edx, 0xffff
cmp edx, 0x54ad
jne 0x4e4e8c
mov eax, dword [ebp - 0xb8]
add eax, 0x34
cmp dword [ebp - 0x38], eax
jbe 0x4e4e8c
push 0
push 0
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x48]
push eax
push 4
lea ecx, [ebp - 0xc0]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc0], 0x5a4d
je 0x4e4e81
cmp dword [ebp - 0xc0], 0x454e
je 0x4e4e81
cmp dword [ebp - 0xc0], 0x454c
je 0x4e4e81
cmp dword [ebp - 0xc0], 0x4550
jne 0x4e4e8c
mov eax, dword [ebp - 0x3c]
or eax, 0x400000
mov dword [ebp - 0x3c], eax
cmp dword [ebp + 0xc], 0
je 0x4e4e9a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x3c]
mov dword [ecx], edx
cmp dword [ebp + 0x10], 0
je 0x4e4ea8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x4e4eef
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.004e4ad1
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004e4ad1
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.004e4ad1
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
cmp dword [ebp + 0x18], 0
je 0x4e4f2e
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov edx, dword [ebp - 0xc8]
and edx, 0xffff
mov eax, dword [ebp - 0xc4]
and eax, 0xffff
shl eax, 0x10
or edx, eax
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edx
xor eax, eax
mov esp, ebp
pop ebp
ret