Function at 0x403fa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x4ea00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
add eax, 0x1b8
mov dword [ebp - 0x14c], eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x14c]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
jne 0x403ff1
xor eax, eax
jmp 0x4042f7
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x16c], 0
push 0x40
push 0
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00432e20
add esp, 0xc
mov edx, 0x5a4d
mov word [ebp - 0x1b0], dx
mov dword [ebp - 0x174], 0x40
lea eax, [ebp - 0x16c]
push eax
push 0x40
lea ecx, [ebp - 0x1b0]
push ecx
mov edx, dword [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40405e
cmp dword [ebp - 0x16c], 0x40
je 0x404065
xor eax, eax
jmp 0x4042f7
mov ecx, dword [ebp - 0x104]
add ecx, 0x40
mov dword [ebp - 0x104], ecx
push 0xf8
push 0
lea edx, [ebp - 0x100]
push edx
call fcn.00432e20
add esp, 0xc
mov dword [ebp - 0x100], 0x4550
mov eax, 0xe0
mov word [ebp - 0xec], ax
mov ecx, 0x2000
mov word [ebp - 0xea], cx
mov edx, 1
mov word [ebp - 0xfa], dx
mov eax, 0x10b
mov word [ebp - 0xe8], ax
lea ecx, [ebp - 0x16c]
push ecx
push 0xf8
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp - 0x104]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4040f8
cmp dword [ebp - 0x16c], 0xf8
je 0x4040ff
xor eax, eax
jmp 0x4042f7
mov edx, dword [ebp - 0x104]
add edx, 0xf8
mov dword [ebp - 0x104], edx
push 0x28
push 0
lea eax, [ebp - 0x1d8]
push eax
call fcn.00432e20
add esp, 0xc
push 8
push str..detour
lea ecx, [ebp - 0x1d8]
push ecx
call fcn.004332a0
add esp, 0xc
mov edx, dword [ebp - 0x104]
add edx, 0x28
sub edx, dword [ebp - 0x150]
mov dword [ebp - 0x1cc], edx
mov eax, dword [ebp + 0x14]
add eax, 0x58
mov dword [ebp - 0x1c8], eax
lea ecx, [ebp - 0x16c]
push ecx
push 0x28
lea edx, [ebp - 0x1d8]
push edx
mov eax, dword [ebp - 0x104]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x404189
cmp dword [ebp - 0x16c], 0x28
je 0x404190
xor eax, eax
jmp 0x4042f7
mov edx, dword [ebp - 0x104]
add edx, 0x28
mov dword [ebp - 0x104], edx
push 0x40
push 0
lea eax, [ebp - 0x148]
push eax
call fcn.00432e20
add esp, 0xc
mov dword [ebp - 0x148], 0x40
mov dword [ebp - 0x144], 0x727444
mov dword [ebp - 0x140], 0x40
mov ecx, dword [ebp + 0x14]
add ecx, 0x58
mov dword [ebp - 0x13c], ecx
lea edx, [ebp - 0x16c]
push edx
push 0x40
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40420a
cmp dword [ebp - 0x16c], 0x40
je 0x404211
xor eax, eax
jmp 0x4042f7
mov eax, dword [ebp - 0x104]
add eax, 0x40
mov dword [ebp - 0x104], eax
push 0x18
push 0
lea ecx, [ebp - 0x168]
push ecx
call fcn.00432e20
add esp, 0xc
mov edx, dword [ebp + 0x14]
add edx, 0x18
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x164], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x160], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x15c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x158], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x154], edx
lea eax, [ebp - 0x16c]
push eax
push 0x18
lea ecx, [ebp - 0x168]
push ecx
mov edx, dword [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40429d
cmp dword [ebp - 0x16c], 0x18
je 0x4042a1
xor eax, eax
jmp 0x4042f7
mov ecx, dword [ebp - 0x104]
add ecx, 0x18
mov dword [ebp - 0x104], ecx
lea edx, [ebp - 0x16c]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4042df
mov ecx, dword [ebp - 0x16c]
cmp ecx, dword [ebp + 0x14]
je 0x4042e3
xor eax, eax
jmp 0x4042f7
mov edx, dword [ebp - 0x104]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x104], edx
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e29e
mov esp, ebp
pop ebp
ret 0x10