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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x404f76
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 4], eax
push ebp
push 0x404ec9
push dword fs:[0]
mov dword fs:[0], esp
mov esi, dword [ebp - 8]
mov eax, esi
cmp word [eax], 0x5a4d
je 0x404bfa
call fcn.00401cc0
jmp 0x404f60
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jg 0x404c0b
call fcn.00401cc0
jmp 0x404f60
cmp edx, ecx
jae 0x404c19
call fcn.00401cc0
jmp 0x404f60
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x4550
je 0x404c46
call fcn.00401cc0
jmp 0x404f60
push dword [0x419008]
push 0x404f90
push 0x404f9c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040249c
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x2c]
call fcn.004025dc
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404c91
call fcn.00401cc0
jmp 0x404f60
push 0
push 0
push ebx
call sub.kernel32.dll_GetFileSize
push eax
push 0
push 0x1000002
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
jne 0x404cbb
call fcn.00401cc0
jmp 0x404f60
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
push eax
push 0
push 0
push 0x80000000
push esi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404ce4
call fcn.00401cc0
jmp 0x404f60
push ebx
call sub.kernel32.dll_CloseHandle
push 0
call sub.kernel32.dll_Sleep
push esi
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x28]
push eax
push 4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x404d1b
call fcn.00401cc0
jmp 0x404f60
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004015e4
mov eax, dword [ebp - 0x14]
lea esi, [eax + 0x18]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x14]
add esi, eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x404dc0
inc eax
mov dword [ebp - 0x30], eax
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
lea edx, [ebx + ebx*4]
mov edx, dword [esi + edx*8 + 0x10]
mov dword [ebp - 0x24], edx
cmp eax, dword [ebp - 0x24]
jae 0x404d72
xor eax, dword [ebp - 0x24]
xor dword [ebp - 0x24], eax
xor eax, dword [ebp - 0x24]
lea edx, [ebx + ebx*4]
mov edx, dword [esi + edx*8 + 0xc]
add edx, eax
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx + 0x50]
jbe 0x404d8d
call fcn.00401cc0
jmp 0x404f60
lea edx, [ebx + ebx*4]
mov edx, dword [esi + edx*8 + 0xc]
add edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x18]
xor ecx, ecx
xchg edx, eax
call fcn.004016c0
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x14]
add eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
call fcn.004015e4
inc ebx
dec dword [ebp - 0x30]
jne 0x404d53
mov eax, dword [ebp - 0x14]
push dword [eax + 0x34]
mov eax, dword [ebp - 4]
pop edx
sub eax, edx
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xa0], 0
je 0x404df1
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00404988
mov eax, 0x110
call fcn.004014c0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x104], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x108], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x100], edx
mov dl, 1
mov eax, dword [0x402de8]
call fcn.00402edc
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10c], eax
test byte [ebp - 0xc], 4
je 0x404e6b
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x80], 0
je 0x404e6b
push ebp
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x80]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00404b0c
pop ecx
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x404ea6
inc eax
mov dword [ebp - 0x30], eax
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
lea edi, [ebx + ebx*4]
mov eax, dword [esi + edi*8 + 0x24]
call fcn.00404a9c
push eax
mov eax, dword [esi + edi*8 + 8]
push eax
mov eax, dword [esi + edi*8 + 0xc]
add eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
inc ebx
dec dword [ebp - 0x30]
jne 0x404e7d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ed0
cmp dword [ebp - 0x10], 0
jne 0x404ec8
cmp dword [ebp - 4], 0
je 0x404ec8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f7d
lea eax, [ebp - 0x2c]
call fcn.00402274
ret