Function at 0x484112
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x60], ecx
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x484132
xor eax, eax
jmp 0x484512
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0
push 0
push 0x8000000
push 3
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54299c]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x484197
mov eax, dword [ebp - 0x30]
jmp 0x484512
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0x8000004
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4841da
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
jmp 0x484512
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x484214
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
jmp 0x484512
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 0x4d
jne 0x484393
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax + 1]
cmp ecx, 0x5a
jne 0x484393
mov edx, dword [ebp - 0x14]
add edx, 0x3c
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x50
jne 0x484393
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov al, byte [edx + 1]
cmp eax, 0x45
jne 0x484393
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + 6]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xf8
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x40], 0
jmp 0x4842d5
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x28
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x28]
jge 0x484393
push 4
push str..MMM
mov eax, dword [ebp - 0x18]
push eax
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x48438e
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x24], 0xe00000e0
jne 0x48438e
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp - 0x38]
add eax, dword [ecx + edx + 4]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
push ecx
mov ecx, dword [ebp - 0x60]
call fcn.00484518
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 8]
jae 0x484385
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.ntdll.dll_memcmp
add esp, 0xc
mov dword [ebp - 0x30], 1
jmp 0x484393
jmp 0x4842c3
cmp dword [ebp - 0x30], 0
je 0x4844f1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x28], ecx
mov eax, dword [ebp - 0x28]
sub eax, 1
mov ecx, dword [ebp - 0x20]
mov word [ecx + 6], ax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x50], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
push 0x28
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp + 8]
push ecx
call dword [0x542978]
push 0
push 0x8000000
push 4
push 0
push 1
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [0x54299c]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x484486
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.004a4518
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x48447e
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.004a4518
add esp, 4
mov eax, dword [ebp - 0x30]
jmp 0x484512
push 0
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [0x542994]
cmp dword [ebp - 0x10], 0
je 0x4844ce
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [0x542994]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.004a4518
add esp, 4
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.004a4518
add esp, 4
mov eax, 1
jmp 0x484512
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret 4