Function at 0x404b1f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
push 0x404e96
call fcn.00403da5
pop ecx
mov dword [0x410790], eax
call fcn.0040396b
mov eax, dword [ebp + 8]
mov dword [0x410a34], eax
cmp byte [eax], 0x4d
je 0x404b57
cmp byte [eax + 1], 0x5a
jne 0x404c54
add eax, 0x3c
push 4
push eax
push 0x410a44
call sub.MSVCRT.dll_memcpy
mov eax, dword [0x410a34]
mov ecx, dword [0x410a44]
add eax, ecx
add esp, 0xc
cmp byte [eax], 0x50
je 0x404b86
cmp byte [eax + 1], 0x45
jne 0x404c54
mov ebx, 0xf8
push ebx
push eax
lea eax, [ebp - 0x120]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0xa0]
add esp, 0xc
mov dword [0x410a50], eax
movzx eax, word [ebp - 0x11a]
cmp eax, 0x14
mov dword [0x410a48], eax
ja 0x404c54
mov eax, dword [ebp - 0xf8]
mov ecx, dword [0x410a44]
mov dword [0x410a5c], eax
mov eax, dword [ebp - 0xec]
mov dword [0x410a58], eax
mov eax, dword [0x410a34]
add ecx, eax
push ebx
lea eax, [ebp - 0x120]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [0x410a44]
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x120]
push ebx
push eax
mov eax, dword [0x410a34]
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
push dword [0x410a50]
push dword [0x410a34]
call fcn.00403eb9
push eax
push dword [0x410a34]
call fcn.00404571
add esp, 0x28
test eax, eax
je 0x404c54
push dword [0x410a34]
call fcn.00404896
pop ecx
mov esi, eax
push 0xa
lea edi, [ebp - 0x28]
pop ecx
test eax, eax
rep movsd dword es:[edi], dword [esi]
jne 0x404c5b
xor eax, eax
jmp 0x404e91
mov eax, dword [0x410a34]
mov ecx, dword [0x410a44]
add ecx, eax
push ebx
lea eax, [ebp - 0x120]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
push 0x404e96
call fcn.00403df9
push eax
mov dword [0x410a24], eax
call fcn.0040436b
push dword [0x410a24]
call fcn.004042a5
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
push esi
push eax
push dword [0x410a34]
mov dword [0x410a4c], eax
call fcn.004046f3
push esi
push dword [0x410a34]
call fcn.004047f4
push 0x30
pop edi
push edi
call fcn.00405bc0
push edi
mov dword [0x4107ac], eax
call fcn.00405bc0
push edi
push eax
push dword [0x4107ac]
mov dword [0x410804], eax
call fcn.00403bdd
mov eax, dword [0x410a24]
mov ecx, dword [0x41089c]
add esp, 0x40
add ecx, eax
push edi
push dword [0x410804]
push ecx
call sub.MSVCRT.dll_memcpy
push 0
push dword [0x410a34]
call fcn.00404a1a
mov eax, dword [0x410a34]
mov ecx, dword [0x410a44]
add ecx, eax
push ebx
lea eax, [ebp - 0x120]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [esi + 0x60]
mov ecx, dword [0x410a44]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x20]
add eax, esi
push ebx
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [0x410a34]
add ecx, eax
mov dword [ebp - 0xa0], esi
push ecx
call sub.MSVCRT.dll_memcpy
mov eax, dword [0x410a4c]
mov ecx, dword [0x410790]
push dword [0x410a24]
lea ecx, [eax + ecx + 0x60]
lea esi, [eax + 0x60]
mov eax, dword [ebp + 0xc]
mov dword [0x410a40], ecx
mov dword [0x410a60], eax
call fcn.00403eda
push dword [0x410a24]
call fcn.00404423
mov eax, dword [0x4107ac]
add esp, 0x34
test eax, eax
je 0x404da3
push eax
call fcn.00405bf0
pop ecx
mov eax, dword [0x410804]
test eax, eax
je 0x404db3
push eax
call fcn.00405bf0
pop ecx
push edi
call fcn.00405bc0
push edi
mov dword [0x4107ac], eax
call fcn.00405bc0
push edi
push eax
push dword [0x4107ac]
mov dword [0x410804], eax
call fcn.00403bdd
mov eax, dword [0x410a24]
mov ecx, dword [0x410810]
push edi
add ecx, eax
push dword [0x410804]
push ecx
call sub.MSVCRT.dll_memcpy
mov ecx, dword [0x410790]
mov eax, dword [0x410810]
sub ecx, eax
add eax, 0x33
sub ecx, 0x54
push ecx
push eax
push dword [0x410a24]
call fcn.00403aed
push dword [0x410790]
mov eax, dword [0x410a34]
add eax, esi
push dword [0x410a24]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [0x410844]
lea eax, [esi + eax - 1]
push eax
push dword [0x410a34]
call fcn.004044a5
mov dword [0x410aa0], eax
mov eax, dword [0x41085c]
add esp, 0x40
add esi, eax
add esi, dword [0x410a34]
push 4
push 0x410aa0
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [0x4107ac]
add esp, 0xc
test eax, eax
je 0x404e73
push eax
call fcn.00405bf0
pop ecx
mov eax, dword [0x410804]
test eax, eax
je 0x404e83
push eax
call fcn.00405bf0
pop ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x410a40]
push 1
mov dword [eax], ecx
pop eax
pop edi
pop esi
pop ebx
leave
ret