Function at 0x4891b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp + 0x14]
add eax, 0x1b8
mov dword [ebp - 0x144], eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x144]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jne 0x489204
xor eax, eax
jmp 0x48950a
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x168], 0
push 0x40
push 0
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.004737c0
add esp, 0xc
mov edx, 0x5a4d
mov word [ebp - 0x1a8], dx
mov dword [ebp - 0x16c], 0x40
lea eax, [ebp - 0x168]
push eax
push 0x40
lea ecx, [ebp - 0x1a8]
push ecx
mov edx, dword [ebp - 0xfc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x489271
cmp dword [ebp - 0x168], 0x40
je 0x489278
xor eax, eax
jmp 0x48950a
mov ecx, dword [ebp - 0xfc]
add ecx, 0x40
mov dword [ebp - 0xfc], ecx
push 0xf8
push 0
lea edx, [ebp - 0xf8]
push edx
call fcn.004737c0
add esp, 0xc
mov dword [ebp - 0xf8], 0x4550
mov eax, 0xe0
mov word [ebp - 0xe4], ax
mov ecx, 0x2000
mov word [ebp - 0xe2], cx
mov edx, 1
mov word [ebp - 0xf2], dx
mov eax, 0x10b
mov word [ebp - 0xe0], ax
lea ecx, [ebp - 0x168]
push ecx
push 0xf8
lea edx, [ebp - 0xf8]
push edx
mov eax, dword [ebp - 0xfc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x48930b
cmp dword [ebp - 0x168], 0xf8
je 0x489312
xor eax, eax
jmp 0x48950a
mov edx, dword [ebp - 0xfc]
add edx, 0xf8
mov dword [ebp - 0xfc], edx
push 0x28
push 0
lea eax, [ebp - 0x1d0]
push eax
call fcn.004737c0
add esp, 0xc
push 8
push str..detour
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.00475820
add esp, 0xc
mov edx, dword [ebp - 0xfc]
add edx, 0x28
sub edx, dword [ebp - 0x148]
mov dword [ebp - 0x1c4], edx
mov eax, dword [ebp + 0x14]
add eax, 0x58
mov dword [ebp - 0x1c0], eax
lea ecx, [ebp - 0x168]
push ecx
push 0x28
lea edx, [ebp - 0x1d0]
push edx
mov eax, dword [ebp - 0xfc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x48939c
cmp dword [ebp - 0x168], 0x28
je 0x4893a3
xor eax, eax
jmp 0x48950a
mov edx, dword [ebp - 0xfc]
add edx, 0x28
mov dword [ebp - 0xfc], edx
push 0x40
push 0
lea eax, [ebp - 0x140]
push eax
call fcn.004737c0
add esp, 0xc
mov dword [ebp - 0x140], 0x40
mov dword [ebp - 0x13c], 0x727444
mov dword [ebp - 0x138], 0x40
mov ecx, dword [ebp + 0x14]
add ecx, 0x58
mov dword [ebp - 0x134], ecx
lea edx, [ebp - 0x168]
push edx
push 0x40
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0xfc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x48941d
cmp dword [ebp - 0x168], 0x40
je 0x489424
xor eax, eax
jmp 0x48950a
mov eax, dword [ebp - 0xfc]
add eax, 0x40
mov dword [ebp - 0xfc], eax
push 0x18
push 0
lea ecx, [ebp - 0x164]
push ecx
call fcn.004737c0
add esp, 0xc
mov edx, dword [ebp + 0x14]
add edx, 0x18
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x15c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x158], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x154], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x150], edx
lea eax, [ebp - 0x168]
push eax
push 0x18
lea ecx, [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0xfc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4894b0
cmp dword [ebp - 0x168], 0x18
je 0x4894b4
xor eax, eax
jmp 0x48950a
mov ecx, dword [ebp - 0xfc]
add ecx, 0x18
mov dword [ebp - 0xfc], ecx
lea edx, [ebp - 0x168]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xfc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4894f2
mov ecx, dword [ebp - 0x168]
cmp ecx, dword [ebp + 0x14]
je 0x4894f6
xor eax, eax
jmp 0x48950a
mov edx, dword [ebp - 0xfc]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0xfc], edx
mov eax, 1
mov ecx, dword [ebp - 0x14c]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret 0x10