Function at 0x45e140
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7e0
mov eax, dword [0x4f0100]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc], eax
mov esi, ecx
test edi, edi
je 0x45e43e
push 0xf8
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.0047d590
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
push 0x1c
push eax
push edi
push esi
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x45e43e
push 0
push 0x40
lea eax, [ebp - 0x164]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x45e43e
mov eax, 0x5a4d
cmp word [ebp - 0x164], ax
jne 0x45e437
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x1c]
ja 0x45e437
cmp eax, 0x40
jb 0x45e437
push 0
push 0xf8
lea ecx, [ebp - 0x124]
add eax, edi
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x45e43e
cmp dword [ebp - 0x124], 0x4550
jne 0x45e437
mov eax, dword [ebp - 0x128]
add eax, edi
je 0x45e43e
push 0x678
lea eax, [ebp - 0x7dc]
push 0
push eax
call fcn.0047d590
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x7c0]
add esp, 0xc
mov dword [ebp - 0x7dc], 0x678
mov dword [ebp - 0x7cc], edi
mov dword [ebp - 0x7d8], 0x40
push 0
push 0x40
push eax
push edi
push esi
call ebx
test eax, eax
je 0x45e445
mov eax, dword [ebp - 0x784]
lea ecx, [ebp - 0x780]
add eax, dword [ebp - 0x7cc]
push 0
push 0x18
push ecx
push eax
push esi
mov dword [ebp - 0x7c8], eax
mov dword [ebp - 0x7d4], 0x18
call ebx
test eax, eax
je 0x45e445
movzx eax, word [ebp - 0x77a]
lea ecx, [eax + eax*4]
movzx eax, word [ebp - 0x76c]
lea eax, [eax + ecx*8]
add eax, 0x18
mov dword [ebp - 0x7d4], eax
cmp eax, 0x608
ja 0x45e445
push 0
push eax
lea eax, [ebp - 0x780]
push eax
push dword [ebp - 0x7c8]
push esi
call ebx
test eax, eax
je 0x45e445
mov ax, word [ebp - 0x768]
mov ecx, 0x10b
cmp ax, cx
jne 0x45e321
mov eax, dword [ebp - 0x698]
test eax, eax
je 0x45e348
cmp dword [ebp - 0x694], 0
je 0x45e348
add eax, edi
mov dword [ebp - 0x7c4], eax
jmp 0x45e34e
mov ecx, 0x20b
cmp ax, cx
jne 0x45e348
mov eax, dword [ebp - 0x688]
test eax, eax
je 0x45e348
cmp dword [ebp - 0x684], 0
je 0x45e348
add eax, edi
mov dword [ebp - 0x7c4], eax
jmp 0x45e34e
mov eax, dword [ebp - 0x7c4]
test eax, eax
je 0x45e373
push 0
push 0x14
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x7d0], 0x14
push ecx
push eax
push esi
call ebx
test eax, eax
je 0x45e445
cmp dword [ebp + 8], 0
je 0x45e42d
push ecx
push dword [ebp - 0xc]
mov edx, edi
mov ecx, esi
call fcn.0045d960
add esp, 8
test eax, eax
je 0x45e445
mov edx, dword [ebp - 0x7c4]
test edx, edx
je 0x45e3fc
mov eax, dword [ebp - 0x168]
mov ecx, esi
movups xmm0, xmmword [ebp - 0x178]
and eax, 0xfffffffe
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 4
push 0x14
movups xmmword [ebp - 0x20], xmm0
call fcn.00462690
test eax, eax
je 0x45e445
push 0
push 0x14
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x7c4]
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x45e445
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 0x14
push dword [ebp - 0x7c4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x45e445
push 0x678
lea eax, [ebp - 0x7dc]
mov edx, 0x4de8ac
push eax
mov ecx, esi
call fcn.0045e460
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047b4e2
mov esp, ebp
pop ebp
ret 0xc
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x45e445
push 0xc1
call ebx
push 0x10dd
call ebx
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b4e2
mov esp, ebp
pop ebp
ret 0xc