Function at 0x49ecf0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x3c]
add dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x40
push 0x1000
mov edx, dword [ebp - 8]
push dword [edx + 0x50]
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [ebp - 8]
push dword [eax + 0x54]
push dword [ebp + 8]
push esi
call fcn.0049ef2e
add esp, 0xc
mov edx, dword [ebp - 8]
movzx ecx, word [edx + 0x14]
add ecx, 0x18
add dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x49ed91
mov ebx, dword [ebp - 0xc]
shl ebx, 3
lea ebx, [ebx + ebx*4]
add ebx, dword [ebp - 4]
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
mov edx, dword [ebx + 0xc]
add edx, esi
mov dword [ebp - 0x28], edx
push edi
push dword [ebp - 0x28]
call fcn.0049ef68
add esp, 8
cmp edi, dword [ebp - 0x24]
jl 0x49ed7b
mov edi, dword [ebp - 0x24]
push edi
mov eax, dword [ebx + 0x14]
add eax, dword [ebp + 8]
push eax
push dword [ebp - 0x28]
call fcn.0049ef2e
add esp, 0xc
inc dword [ebp - 0xc]
mov edx, dword [ebp - 8]
movzx ecx, word [edx + 6]
cmp ecx, dword [ebp - 0xc]
jg 0x49ed4a
mov eax, dword [ebp - 8]
mov edx, esi
sub edx, dword [eax + 0x34]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xa4]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0xa0]
add ecx, esi
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x49ee0e
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x1c]
add eax, 8
xor edx, edx
cmp edx, dword [ebp - 0x2c]
jge 0x49ee0b
test byte [eax + 1], 0xf0
je 0x49ee02
movzx ecx, word [eax]
and ecx, 0xfff
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
lea ebx, [esi + ebx]
mov edi, dword [ebp - 0x10]
add dword [ebx + ecx], edi
add eax, 2
inc edx
cmp edx, dword [ebp - 0x2c]
jl 0x49ede5
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jl 0x49edca
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x80]
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x49ee84
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xc]
add eax, esi
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 4], 0
jne 0x49ee4d
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ecx + 0x10]
add ebx, esi
jmp 0x49ee7b
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
add ebx, esi
jmp 0x49ee7b
test byte [ebx + 3], 0x80
je 0x49ee66
mov edi, dword [ebx]
and edi, 0xffff
jmp 0x49ee6d
mov edi, dword [ebx]
add edi, esi
add edi, 2
push edi
push dword [ebp - 0x30]
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebx], eax
add ebx, 4
cmp dword [ebx], 0
jne 0x49ee56
add dword [ebp - 0x20], 0x14
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0xc], 0
jne 0x49ee29
mov edx, dword [ebp - 8]
push dword [edx + 0x50]
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x28], 0
je 0x49eec2
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x28]
add ebx, esi
test ebx, ebx
je 0x49eec2
push 0
push 1
push esi
call ebx
push 0
push 2
push esi
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret