Function at 0x46e801
Capabilities:
Clear file content
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov dword [ebp - 0x160], ecx
push 0
push 0
push 3
push 0
push 1
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x40000000
or eax, 0x80000000
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54299c]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
jne 0x46e84c
xor eax, eax
jmp 0x46eaff
push 0
lea edx, [ebp - 0x108]
push edx
push 0x40
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [0x542984]
test eax, eax
je 0x46e8dd
mov edx, dword [ebp - 0x148]
and edx, 0xffff
cmp edx, 0x5a4d
jne 0x46e8dd
push 0
push 0
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [0x5429a4]
push 0
lea edx, [ebp - 0x108]
push edx
push 0xf8
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [0x542984]
test eax, eax
je 0x46e8dd
cmp dword [ebp - 0xfc], 0x4550
jne 0x46e8dd
mov edx, dword [ebp - 0xf6]
and edx, 0xffff
test edx, edx
jne 0x46e8f1
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x46eaff
mov ecx, dword [ebp - 0xf6]
and ecx, 0xffff
imul ecx, ecx, 0x28
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x100], edx
cmp dword [ebp - 0x100], 0
jne 0x46e938
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x46eaff
mov ecx, dword [ebp - 0xf6]
and ecx, 0xffff
imul ecx, ecx, 0x28
mov dword [ebp - 0x108], ecx
push 0
push 0
mov edx, dword [ebp - 0xe8]
and edx, 0xffff
mov eax, dword [ebp - 0x10c]
lea ecx, [eax + edx + 0x18]
push ecx
mov edx, dword [ebp - 0x14c]
push edx
call dword [0x5429a4]
push 0
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x100]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call dword [0x542984]
test eax, eax
jne 0x46e9cc
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x158], ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.004a4518
add esp, 4
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x46eaff
mov dword [ebp - 0x104], 0
mov ecx, dword [ebp - 0xd4]
push ecx
mov edx, dword [ebp - 0xac]
push edx
mov eax, dword [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xf6]
push ecx
mov edx, dword [ebp - 0x100]
push edx
mov eax, dword [ebp - 0x14c]
push eax
mov ecx, dword [ebp - 0x160]
call fcn.0046e66a
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xd4]
je 0x46ead1
mov dword [ebp - 0x104], 0x65
cmp dword [ebp + 0xc], 0
je 0x46ead1
mov edx, dword [ebp - 0xf6]
and edx, 0xffff
imul edx, edx, 0x28
mov eax, dword [ebp - 0x100]
add eax, edx
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xd4], ecx
mov edx, dword [ebp - 0x150]
mov eax, dword [edx - 0x1c]
mov ecx, dword [ebp - 0x150]
add eax, dword [ecx - 0x20]
mov dword [ebp - 0xac], eax
push 0
push 0
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call dword [0x5429a4]
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0xf8
lea edx, [ebp - 0xfc]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call dword [0x542994]
push 0
push 0
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call dword [0x5429a4]
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x15c], edx
mov eax, dword [ebp - 0x15c]
push eax
call fcn.004a4518
add esp, 4
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x104]
mov esp, ebp
pop ebp
ret 8