Function at 0x401d10
Capabilities:
Parse pe header

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x1d8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x74]
push ebx
mov ebx, dword [ebp + 0x70]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp + 0x78]
push edi
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp + 0x7c]
push 4
push 0x1000
mov dword [ebp - 0x164], eax
add eax, 0x1b8
push eax
push 0
push ebx
mov dword [ebp - 0x160], ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov dword [ebp - 0x170], edi
test edi, edi
je 0x401f93
and dword [ebp - 0x158], 0
push esi
push 0x40
pop esi
push esi
lea eax, [ebp - 0x5c]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov eax, 0x5a4d
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x158]
push eax
push esi
lea eax, [ebp - 0x5c]
push eax
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x20], esi
call ebx
test eax, eax
je 0x401f90
cmp dword [ebp - 0x158], esi
jne 0x401f90
add edi, esi
mov dword [ebp - 0x15c], edi
mov edi, 0xf8
push edi
lea eax, [ebp - 0x154]
push 0
push eax
call sub.MSVCR110.dll_memset
lea eax, [edi - 0x18]
mov word [ebp - 0x140], ax
mov eax, 0x2000
mov word [ebp - 0x13e], ax
xor eax, eax
inc eax
add esp, 0xc
mov word [ebp - 0x14e], ax
lea eax, [ebp - 0x158]
push eax
push edi
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x15c]
mov dword [ebp - 0x154], 0x4550
push dword [ebp - 0x160]
call ebx
test eax, eax
je 0x401f90
cmp dword [ebp - 0x158], edi
jne 0x401f90
add dword [ebp - 0x15c], edi
push 0x28
lea eax, [ebp + 0x24]
push 0
push eax
call sub.MSVCR110.dll_memset
push 8
lea eax, [ebp + 0x24]
push str..detour
push eax
call sub.MSVCR110.dll_memcpy
mov eax, dword [ebp - 0x15c]
sub eax, dword [ebp - 0x170]
mov edi, dword [ebp - 0x164]
add eax, 0x28
add esp, 0x18
mov dword [ebp + 0x30], eax
lea eax, [ebp - 0x158]
push eax
push 0x28
lea eax, [ebp + 0x24]
push eax
push dword [ebp - 0x15c]
add edi, 0x58
push dword [ebp - 0x160]
mov dword [ebp + 0x34], edi
call ebx
test eax, eax
je 0x401f90
cmp dword [ebp - 0x158], 0x28
jne 0x401f90
add dword [ebp - 0x15c], 0x28
push esi
lea eax, [ebp - 0x1c]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x15c]
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x160]
mov dword [ebp - 0x18], 0x727444
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
call ebx
test eax, eax
je 0x401f90
cmp dword [ebp - 0x158], esi
jne 0x401f90
add dword [ebp - 0x15c], esi
push 0x18
lea eax, [ebp + 0x4c]
push 0
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [ebp - 0x164]
and dword [ebp + 0x50], 0
mov esi, dword [ebp - 0x168]
add eax, 0x18
mov dword [ebp + 0x4c], eax
lea edi, [ebp + 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x158]
push eax
push 0x18
lea eax, [ebp + 0x4c]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x15c]
push eax
push esi
push dword [ebp - 0x160]
call ebx
test eax, eax
je 0x401f90
cmp dword [ebp - 0x158], 0x18
jne 0x401f90
mov edi, dword [ebp - 0x164]
lea eax, [ebp - 0x158]
push eax
push edi
push dword [ebp - 0x16c]
add esi, 0x18
push esi
push dword [ebp - 0x160]
call ebx
test eax, eax
je 0x401f90
cmp dword [ebp - 0x158], edi
jne 0x401f90
xor eax, eax
inc eax
jmp 0x401f92
xor eax, eax
pop esi
mov ecx, dword [ebp + 0x64]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040118b
add ebp, 0x68
leave
ret 0x10