Function at 0x488a5b
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7a38
push 0x4a8984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffb8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x54], ecx
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x488a9b
xor eax, eax
jmp 0x488d37
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x48], 0
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54b4dc]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x488af9
mov eax, dword [ebp - 0x38]
jmp 0x488d37
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x8000002
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x488b3c
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
jmp 0x488d37
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x488b73
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
jmp 0x488d37
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 0x4d
jne 0x488cf1
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov cl, byte [eax + 1]
cmp ecx, 0x5a
jne 0x488cf1
mov edx, dword [ebp - 0x20]
add edx, 0x3c
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x50
jne 0x488cf1
mov edx, dword [ebp - 0x28]
xor eax, eax
mov al, byte [edx + 1]
cmp eax, 0x45
jne 0x488cf1
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dx, word [ecx + 6]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x2c]
add eax, 0xf8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x50], 0
jmp 0x488c2a
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x24]
add edx, 0x28
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x30]
jge 0x488c60
push 4
push 0x543444
mov ecx, dword [ebp - 0x24]
push ecx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x488c5e
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x24], 0xe00000e0
jne 0x488c5e
mov dword [ebp - 0x38], 1
jmp 0x488c60
jmp 0x488c18
cmp dword [ebp - 0x38], 0
je 0x488cd5
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x48]
add ecx, dword [eax + 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x48]
add eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x24]
add eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
jmp 0x488c8f
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x20]
jae 0x488cd5
push 0x15
push 0x5428f0
mov ecx, dword [ebp - 0x28]
push ecx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x488cb5
mov dword [ebp - 0x40], 1
push 0x12
push 0x542908
mov edx, dword [ebp - 0x28]
push edx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x488cd3
mov dword [ebp - 0x44], 1
jmp 0x488c86
cmp dword [ebp - 0x40], 0
je 0x488cea
cmp dword [ebp - 0x44], 0
je 0x488cea
mov dword [ebp - 0x38], 1
jmp 0x488cf1
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 4], 0xffffffff
jmp 0x488d34
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4