Function at 0x404e70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x41e090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 4
push 0x1000
push 0x308
push 0
push edi
mov dword [ebp - 0x1d0], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 0x1cc], esi
test esi, esi
jne 0x404edc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x308
push str.VirtualAllocEx__d__failed:__d_n
call fcn.00404e00
add esp, 0xc
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040b5e7
mov esp, ebp
pop ebp
ret 4
push 0x40
lea ecx, [ebp - 0xcc]
push 0
push ecx
mov dword [ebp - 0x1c8], 0
call fcn.004128c0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add esp, 0xc
lea eax, [ebp - 0x1c8]
push eax
push 0x40
lea ecx, [ebp - 0xcc]
push ecx
push esi
mov edx, 0x5a4d
push edi
mov word [ebp - 0xcc], dx
mov dword [ebp - 0x90], 0x40
call ebx
test eax, eax
je 0x405134
cmp dword [ebp - 0x1c8], 0x40
jne 0x405134
push 0xf8
lea edx, [ebp - 0x1c4]
push 0
push edx
add esi, 0x40
call fcn.004128c0
add esp, 0xc
lea eax, [ebp - 0x1c8]
push eax
push 0xf8
lea ecx, [ebp - 0x1c4]
push ecx
push esi
mov edx, 1
push edi
mov dword [ebp - 0x1c4], 0x4550
mov dword [ebp - 0x1b0], 0x200000e0
mov word [ebp - 0x1be], dx
call ebx
test eax, eax
je 0x405148
cmp dword [ebp - 0x1c8], 0xf8
jne 0x405148
mov edx, dword [str..detour]
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, dword [0x41b4a8]
mov dword [ebp - 0x48], edx
lea edx, [ebp - 0x1c8]
push edx
add esi, 0xf8
push 0x28
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
mov ecx, esi
sub ecx, dword [ebp - 0x1cc]
push eax
push esi
add ecx, 0x28
push edi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0x1a8
call ebx
test eax, eax
je 0x405148
cmp dword [ebp - 0x1c8], 0x28
jne 0x405148
push 0x40
lea ecx, [ebp - 0x8c]
push 0
push ecx
add esi, 0x28
call fcn.004128c0
add esp, 0xc
mov eax, 0x40
lea edx, [ebp - 0x1c8]
push edx
push eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x8c]
push eax
push esi
push edi
mov dword [ebp - 0x88], 0x727444
mov dword [ebp - 0x80], 0x1a8
call ebx
test eax, eax
je 0x405148
cmp dword [ebp - 0x1c8], 0x40
jne 0x405148
mov edx, dword [0x41b454]
mov ecx, dword [0x41b450]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [0x41b458]
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x1c8]
push edx
push 0x18
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
add esi, 0x40
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x41b45c]
push esi
push edi
mov dword [ebp - 0x20], 0x168
mov dword [ebp - 0xc], ecx
call ebx
test eax, eax
je 0x405148
cmp dword [ebp - 0x1c8], 0x18
jne 0x405148
mov edx, dword [ebp - 0x1d0]
lea ecx, [ebp - 0x1c8]
push ecx
push 0x150
push edx
add esi, 0x18
push esi
push edi
call ebx
test eax, eax
je 0x405148
cmp dword [ebp - 0x1c8], 0x150
jne 0x405148
add esi, 0xfffffe48
push esi
push 0x308
push str.Copied__d_bytes_into_target_process_at__p_n
call fcn.00404e00
add esp, 0xc
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040b5e7
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteProcessMemory_idh__failed:__d_n
call fcn.00404e00
add esp, 8
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040b5e7
mov esp, ebp
pop ebp
ret 4