Function at 0x43e710
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1cc
mov eax, dword [0x4fa36c]
xor eax, esp
mov dword [esp + 0x1c8], eax
mov eax, dword [esp + 0x1d0]
push ebx
push ebp
push esi
push 4
push 0x1000
push 0x830
push 0
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebp, eax
test ebp, ebp
je 0x43e9ca
mov esi, 0x40
push esi
lea ecx, [esp + 0x194]
push 0
push ecx
mov dword [esp + 0x1c], 0
call fcn.004aef60
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push esi
lea eax, [esp + 0x198]
push eax
push ebp
push edi
mov word [esp + 0x1a4], 0x5a4d
mov dword [esp + 0x1e0], esi
call ebx
test eax, eax
je 0x43e9ca
cmp dword [esp + 0x10], esi
jne 0x43e9ca
push pe_nt_image_headers32
lea ecx, [esp + 0x5c]
push 0
push ecx
lea esi, [ebp + 0x40]
call fcn.004aef60
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push pe_nt_image_headers32
lea eax, [esp + 0x60]
push eax
push esi
push edi
mov dword [esp + 0x6c], 0x4550
mov word [esp + 0x80], 0xe0
mov word [esp + 0x82], 0x2000
mov word [esp + 0x72], 1
mov word [esp + 0x84], 0x10b
call ebx
test eax, eax
je 0x43e9ca
cmp dword [esp + 0x10], 0xf8
jne 0x43e9ca
mov ecx, dword [str..detour]
mov edx, dword [0x4dbcac]
xor eax, eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov dword [esp + 0x168], ecx
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x178], eax
mov dword [esp + 0x17c], eax
mov dword [esp + 0x174], eax
mov dword [esp + 0x180], eax
mov dword [esp + 0x184], eax
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], eax
mov dword [esp + 0x190], eax
push 0x28
add esi, 0xf8
mov dword [esp + 0x174], edx
lea edx, [esp + 0x170]
push edx
mov eax, esi
sub eax, ebp
push esi
add eax, 0x28
push edi
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], 0x6d0
call ebx
test eax, eax
je 0x43e9ca
cmp dword [esp + 0x10], 0x28
jne 0x43e9ca
mov ebp, 0x40
push ebp
lea eax, [esp + 0x1c]
push 0
push eax
add esi, 0x28
call fcn.004aef60
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push ebp
lea edx, [esp + 0x20]
push edx
push esi
push edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 0x727444
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 0x6d0
call ebx
test eax, eax
je 0x43e9ca
cmp dword [esp + 0x10], ebp
jne 0x43e9ca
mov ecx, dword [0x4d9b1c]
mov edx, dword [0x4d9b20]
xor eax, eax
mov dword [esp + 0x15c], eax
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x160], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x158], eax
push 0x18
mov dword [esp + 0x158], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x16c], eax
mov dword [esp + 0x168], edx
mov dword [esp + 0x15c], eax
mov eax, dword [0x4d9b18]
lea edx, [esp + 0x158]
push edx
add esi, ebp
mov dword [esp + 0x164], eax
mov eax, dword [0x4d9b24]
push esi
push edi
mov dword [esp + 0x164], 0x690
mov dword [esp + 0x178], eax
call ebx
test eax, eax
je 0x43e9ca
cmp dword [esp + 0x10], 0x18
jne 0x43e9ca
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x678
push ecx
add esi, 0x18
push esi
push edi
call ebx
test eax, eax
je 0x43e9ca
cmp dword [esp + 0x10], 0x678
jne 0x43e9ca
lea eax, [ebp - 0x3f]
jmp 0x43e9cc
xor eax, eax
mov ecx, dword [esp + 0x1d4]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a9ce9
add esp, 0x1cc
ret 4