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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push ebx
push esi
push edi
lea edi, [ebp - 0x178]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4bc080]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
cmp esi, esp
call fcn.00437266
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x44f472
mov eax, 0x200
jmp 0x44f6f1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x54]
and eax, 1
je 0x44f490
mov eax, dword [ebp - 0x60]
or eax, 1
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x54]
and eax, 2
je 0x44f4a1
mov eax, dword [ebp - 0x60]
or eax, 2
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x54]
and eax, 4
je 0x44f4b2
mov eax, dword [ebp - 0x60]
or eax, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x54]
and eax, 0x10
je 0x44f4c3
mov eax, dword [ebp - 0x60]
or eax, 0x10
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x54]
and eax, 0x20
je 0x44f4d4
mov eax, dword [ebp - 0x60]
or eax, 0x20
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x54]
and eax, 0x10
je 0x44f4e9
mov eax, dword [ebp - 0x60]
or eax, 0x40000000
mov dword [ebp - 0x60], eax
jmp 0x44f4f4
mov eax, dword [ebp - 0x60]
or eax, 0x80000000
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
or eax, 0x1000000
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x54]
and eax, 1
je 0x44f509
jmp 0x44f514
mov eax, dword [ebp - 0x60]
or eax, 0x800000
mov dword [ebp - 0x60], eax
mov esi, esp
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.00437266
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0x28
jbe 0x44f647
mov esi, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.00437266
mov esi, esp
push 0
lea eax, [ebp - 0x6c]
push eax
push 2
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.00437266
mov esi, esp
push 0
push 0
push 0x24
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.00437266
mov esi, esp
push 0
lea eax, [ebp - 0x6c]
push eax
push 4
lea ecx, [ebp - 0x90]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.00437266
movzx eax, word [ebp - 0x84]
cmp eax, 0x54ad
jne 0x44f647
mov eax, dword [ebp - 0x90]
add eax, 0x34
cmp dword [ebp - 0x78], eax
jbe 0x44f647
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x90]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.00437266
mov esi, esp
push 0
lea eax, [ebp - 0x6c]
push eax
push 4
lea ecx, [ebp - 0x9c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.00437266
cmp dword [ebp - 0x9c], 0x5a4d
je 0x44f63c
cmp dword [ebp - 0x9c], 0x454e
je 0x44f63c
cmp dword [ebp - 0x9c], 0x454c
je 0x44f63c
cmp dword [ebp - 0x9c], 0x4550
jne 0x44f647
mov eax, dword [ebp - 0x60]
or eax, 0x400000
mov dword [ebp - 0x60], eax
cmp dword [ebp + 0xc], 0
je 0x44f655
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x44f663
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x78]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x44f6b3
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00436ec4
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00436ec4
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00436ec4
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
cmp dword [ebp + 0x18], 0
je 0x44f6ef
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.0043794b
add esp, 0x10
movzx eax, word [ebp - 0xb4]
movzx ecx, word [ebp - 0xa8]
shl ecx, 0x10
or eax, ecx
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x44f720]
call fcn.00436807
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436276
add esp, 0x178
cmp ebp, esp
call fcn.00437266
mov esp, ebp
pop ebp
ret