Function at 0x452070
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7e0
mov eax, dword [0x4e20c0]
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 0x45236e
push 0xf8
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.004709e0
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 0x45236e
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 0x45236e
mov eax, 0x5a4d
cmp word [ebp - 0x164], ax
jne 0x452367
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x1c]
ja 0x452367
cmp eax, 0x40
jb 0x452367
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 0x45236e
cmp dword [ebp - 0x124], 0x4550
jne 0x452367
mov eax, dword [ebp - 0x128]
add eax, edi
je 0x45236e
push 0x678
lea eax, [ebp - 0x7dc]
push 0
push eax
call fcn.004709e0
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 0x452375
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 0x452375
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 0x452375
push 0
push eax
lea eax, [ebp - 0x780]
push eax
push dword [ebp - 0x7c8]
push esi
call ebx
test eax, eax
je 0x452375
mov ax, word [ebp - 0x768]
mov ecx, 0x10b
cmp ax, cx
jne 0x452251
mov eax, dword [ebp - 0x698]
test eax, eax
je 0x452278
cmp dword [ebp - 0x694], 0
je 0x452278
add eax, edi
mov dword [ebp - 0x7c4], eax
jmp 0x45227e
mov ecx, 0x20b
cmp ax, cx
jne 0x452278
mov eax, dword [ebp - 0x688]
test eax, eax
je 0x452278
cmp dword [ebp - 0x684], 0
je 0x452278
add eax, edi
mov dword [ebp - 0x7c4], eax
jmp 0x45227e
mov eax, dword [ebp - 0x7c4]
test eax, eax
je 0x4522a3
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 0x452375
cmp dword [ebp + 8], 0
je 0x45235d
push ecx
push dword [ebp - 0xc]
mov edx, edi
mov ecx, esi
call fcn.00451890
add esp, 8
test eax, eax
je 0x452375
mov edx, dword [ebp - 0x7c4]
test edx, edx
je 0x45232c
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.00455bd0
test eax, eax
je 0x452375
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 0x452375
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 0x452375
push 0x678
lea eax, [ebp - 0x7dc]
mov edx, 0x4d05b0
push eax
mov ecx, esi
call fcn.00452390
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0046ea75
mov esp, ebp
pop ebp
ret 0xc
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x452375
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.0046ea75
mov esp, ebp
pop ebp
ret 0xc