Function at 0x4a2b50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x50b164]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4a2b77
push 6
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x4a2e7d
mov eax, dword [ebp + 0x14]
add eax, 0x1b8
mov dword [ebp - 0x1cc], eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x1cc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_VirtualAllocEx
mov dword [ebp - 0x1c8], eax
cmp dword [ebp - 0x1c8], 0
jne 0x4a2bb4
xor eax, eax
jmp 0x4a2e7d
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1c4], 0
push 0x40
push 0
lea ecx, [ebp - 0xc4]
push ecx
call fcn.004aa820
add esp, 0xc
mov edx, 0x5a4d
mov word [ebp - 0xc4], dx
mov dword [ebp - 0x88], 0x40
lea eax, [ebp - 0x1c4]
push eax
push 0x40
lea ecx, [ebp - 0xc4]
push ecx
mov edx, dword [ebp - 0x1c0]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x4a2c20
cmp dword [ebp - 0x1c4], 0x40
je 0x4a2c27
xor eax, eax
jmp 0x4a2e7d
mov ecx, dword [ebp - 0x1c0]
add ecx, 0x40
mov dword [ebp - 0x1c0], ecx
push 0xf8
push 0
lea edx, [ebp - 0x1bc]
push edx
call fcn.004aa820
add esp, 0xc
mov dword [ebp - 0x1bc], 0x4550
mov eax, 0xe0
mov word [ebp - 0x1a8], ax
mov ecx, 0x2000
mov word [ebp - 0x1a6], cx
mov edx, 1
mov word [ebp - 0x1b6], dx
mov eax, 0x10b
mov word [ebp - 0x1a4], ax
lea ecx, [ebp - 0x1c4]
push ecx
push 0xf8
lea edx, [ebp - 0x1bc]
push edx
mov eax, dword [ebp - 0x1c0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x4a2cb9
cmp dword [ebp - 0x1c4], 0xf8
je 0x4a2cc0
xor eax, eax
jmp 0x4a2e7d
mov edx, dword [ebp - 0x1c0]
add edx, 0xf8
mov dword [ebp - 0x1c0], edx
push 0x28
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.004aa820
add esp, 0xc
push 8
push 0x4e50dc
lea ecx, [ebp - 0x44]
push ecx
call fcn.004a9d20
add esp, 0xc
mov edx, dword [ebp - 0x1c0]
add edx, 0x28
sub edx, dword [ebp - 0x1c8]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 0x14]
add eax, 0x58
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x1c4]
push ecx
push 0x28
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x1c0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x4a2d3a
cmp dword [ebp - 0x1c4], 0x28
je 0x4a2d41
xor eax, eax
jmp 0x4a2e7d
mov edx, dword [ebp - 0x1c0]
add edx, 0x28
mov dword [ebp - 0x1c0], edx
push 0x40
push 0
lea eax, [ebp - 0x84]
push eax
call fcn.004aa820
add esp, 0xc
mov dword [ebp - 0x84], 0x40
mov dword [ebp - 0x80], 0x727444
mov dword [ebp - 0x7c], 0x40
mov ecx, dword [ebp + 0x14]
add ecx, 0x58
mov dword [ebp - 0x78], ecx
lea edx, [ebp - 0x1c4]
push edx
push 0x40
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x1c0]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x4a2db1
cmp dword [ebp - 0x1c4], 0x40
je 0x4a2db8
xor eax, eax
jmp 0x4a2e7d
mov eax, dword [ebp - 0x1c0]
add eax, 0x40
mov dword [ebp - 0x1c0], eax
push 0x18
push 0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004aa820
add esp, 0xc
mov edx, dword [ebp + 0x14]
add edx, 0x18
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x1c4]
push eax
push 0x18
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c0]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x4a2e2b
cmp dword [ebp - 0x1c4], 0x18
je 0x4a2e2f
xor eax, eax
jmp 0x4a2e7d
mov ecx, dword [ebp - 0x1c0]
add ecx, 0x18
mov dword [ebp - 0x1c0], ecx
lea edx, [ebp - 0x1c4]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x1c0]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x4a2e6c
mov ecx, dword [ebp - 0x1c4]
cmp ecx, dword [ebp + 0x14]
je 0x4a2e70
xor eax, eax
jmp 0x4a2e7d
push 0
call sub.KERNEL32.dll_SetLastError
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a807d
mov esp, ebp
pop ebp
ret 0x10