Function at 0x4bb5a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov edx, dword [0x4bafbc]
mov eax, 0x1c
call fcn.00405f24
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 0x1c
call fcn.004036e8
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0x19770605
mov edi, dword [ebp + 8]
mov esi, edi
cmp word [esi], 0x5a4d
je 0x4bb60c
mov edx, dword [0x4bafbc]
mov eax, dword [ebp - 0xc]
call fcn.00405f38
mov eax, 0x4bb848
call fcn.004bafdc
jmp 0x4bb82e
mov eax, dword [esi + 0x3c]
lea ebx, [edi + eax]
cmp dword [ebx], 0x4550
je 0x4bb637
mov edx, dword [0x4bafbc]
mov eax, dword [ebp - 0xc]
call fcn.00405f38
mov eax, 0x4bb884
call fcn.004bafdc
jmp 0x4bb82e
cmp word [ebx + 4], 0x14c
je 0x4bb65c
mov edx, dword [0x4bafbc]
mov eax, dword [ebp - 0xc]
call fcn.00405f38
mov eax, 0x4bb8bc
call fcn.004bafdc
jmp 0x4bb82e
push 0x40
push 0x3000
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x34]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
jne 0x4bb697
push 0x40
push 0x2000
mov eax, dword [ebx + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
jne 0x4bb6bd
mov edx, dword [0x4bafbc]
mov eax, dword [ebp - 0xc]
call fcn.00405f38
mov eax, 0x4bb8dc
call fcn.004bafdc
jmp 0x4bb82e
push 0x40
push 0x1000
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_VirtualAlloc_1
push 0x40
push 0x1000
mov eax, dword [ebx + 0x54]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov eax, dword [esi + 0x3c]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
lea eax, [edx + eax]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.004082cc
mov eax, dword [esi + 0x3c]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
lea eax, [edx + eax]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0xc]
mov ecx, eax
mov edx, ebx
mov eax, edi
call fcn.004bafe4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x34]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x4bb75c
cmp dword [ebp - 0x18], 0
je 0x4bb76c
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004bb270
mov eax, dword [ebp - 0xc]
call fcn.004bb0b4
test al, al
jne 0x4bb789
lea eax, [ebp - 0xc]
xor edx, edx
push edx
push eax
call fcn.004bba40
jmp 0x4bb82e
mov eax, dword [ebp - 0xc]
call fcn.004bb3d0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004bb524
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4bb823
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
lea ebx, [edx + eax]
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], ebx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
je 0x4bb80e
xor eax, eax
push ebp
push 0x4bb802
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call ebx
test eax, eax
jne 0x4bb7f8
lea eax, [ebp - 0xc]
xor edx, edx
push edx
push eax
call fcn.004bba40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bb82e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bb81c
lea eax, [ebp - 0xc]
xor edx, edx
push edx
push eax
call fcn.004bba40
jmp 0x4bb82e
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x14], 1
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4