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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x184
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4e9238
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x49bcf0
mov edx, dword fs:[0]
mov dword [ebp - 0x1c], edx
mov dword fs:[0], ecx
mov dword [ebp - 0x2c], 0xffffffff
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x68], xmm0
movdqu xmmword [ebp - 0x78], xmm0
movdqu xmmword [ebp - 0x88], xmm0
movdqu xmmword [ebp - 0x98], xmm0
movdqu xmmword [ebp - 0xb0], xmm0
movdqu xmmword [ebp - 0xc0], xmm0
movdqu xmmword [ebp - 0xd0], xmm0
movdqu xmmword [ebp - 0xe0], xmm0
movdqu xmmword [ebp - 0xf0], xmm0
movdqu xmmword [ebp - 0x100], xmm0
movdqu xmmword [ebp - 0x110], xmm0
movdqu xmmword [ebp - 0x120], xmm0
movdqu xmmword [ebp - 0x130], xmm0
movdqu xmmword [ebp - 0x140], xmm0
movdqu xmmword [ebp - 0x150], xmm0
movdqu xmmword [ebp - 0x160], xmm0
movdqu xmmword [ebp - 0x170], xmm0
movdqu xmmword [ebp - 0x180], xmm0
movdqu xmmword [ebp - 0x190], xmm0
mov dword [ebp - 0x9c], 0xffffffff
mov dword [ebp - 0xa0], 0xffffffff
movdqu xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x44], 0xffffffff
sub esp, 0x1c
movaps xmm0, xmmword [0x4dec30]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
cmp eax, 0xffffffff
je 0x467eab
mov edi, eax
lea ebx, [ebp - 0x2c]
lea eax, [ebp - 0x98]
push 0
push ebx
push 0x40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x467ea4
cmp dword [ebp - 0x2c], 0x40
jne 0x467ea4
movzx eax, word [ebp - 0x98]
cmp eax, 0x5a4d
jne 0x467ea4
push 0
push 0
push dword [ebp - 0x5c]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebp - 0x5c]
jne 0x467ea4
lea eax, [ebp - 0x190]
push 0
push ebx
push 0xf8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x467ea4
cmp dword [ebp - 0x2c], 0xf8
jne 0x467ea4
cmp dword [ebp - 0x190], 0x4550
jne 0x467ea4
cmp word [ebp - 0x18a], 0
je 0x467ea4
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x467ea4
mov dword [ebp - 0x30], eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
push 4
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x467ea4
push 0
push 0
push 0
push edi
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebx
push dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x467e96
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x5c]
add ecx, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x30]
call fcn.00467fa0
mov edx, dword [ebp - 0x28]
movzx ecx, word [eax + edx + 0xe]
movzx esi, word [eax + edx + 0xc]
add esi, ecx
mov edi, edx
je 0x467e7d
add eax, edi
neg esi
xor ecx, ecx
jmp 0x467e3c
inc ecx
mov edx, esi
add edx, ecx
je 0x467e7d
mov edx, dword [eax + ecx*8 + 0x10]
test edx, edx
js 0x467e35
movzx edx, dx
cmp edx, 0xa
jne 0x467e35
mov ebx, 0x7fffffff
and ebx, dword [eax + ecx*8 + 0x14]
movzx edx, word [ebx + eax + 0xe]
movzx ecx, word [ebx + eax + 0xc]
add ecx, edx
je 0x467e7d
add ebx, eax
neg ecx
xor edx, edx
movzx esi, word [ebx + edx*8 + 0x10]
cmp esi, 0x360
je 0x467ec1
inc edx
mov esi, ecx
add esi, edx
jne 0x467e69
xor esi, esi
mov dword [ebp - 0x10], 0xffffffff
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x467eab
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x184
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebx + edx*8 + 0x14]
test ecx, ecx
mov dword [ebp - 0x3c], eax
js 0x467ed1
mov dword [ebp - 0x34], ecx
jmp 0x467ee5
and ecx, 0x7fffffff
mov ecx, dword [ecx + eax + 0x14]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x98], 0
mov dword [ecx + 0x9c], 0
mov dword [ebp - 0x54], 0x18
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x10], 0
call fcn.00467fa0
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + ecx + 4]
mov dword [ebp - 0x40], eax
mov edx, dword [edx + ecx]
mov ecx, dword [ebp - 0x38]
call fcn.00467fa0
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov dword [ebp - 0x44], ecx
lea eax, [ebp - 0x54]
push eax
call fcn.00468000
add esp, 4
mov esi, eax
mov edi, dword [ebp - 0x28]
jmp 0x467e7f