Function at 0x4c4e7a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
xor edx, edx
push ebx
push ebp
push esi
mov esi, dword [0x4cefc4]
mov ebx, 0x20
sar eax, 5
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
push edi
test eax, eax
je 0x4c4eeb
jmp 0x4c4eaa
inc edx
add ebx, ebx
shr eax, 1
mov ecx, edx
jne 0x4c4eaa
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
cmp ecx, 0x1b
jl 0x4c4eeb
push str.TWINBASIC_COMPILER_ERROR:_codegen_memory_block_request_too_large.
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
push 0
push esi
call fcn.0040564e
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
jmp 0x4c4ee2
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [esi + 0x18]
lea edi, [edi + edx*4]
lea ecx, [ecx]
mov ecx, dword [edi]
test ecx, ecx
je 0x4c4f22
cmp ecx, 0xffffffff
jne 0x4c4f0b
push 0
call ebp
jmp 0x4c4f1c
or edx, 0xffffffff
mov eax, ecx
lock cmpxchg dword [edi], edx
cmp eax, ecx
je 0x4c500e
mov ecx, dword [edi]
test ecx, ecx
jne 0x4c4f00
call fcn.004c50b1
mov edx, eax
mov dword [esp + 0x1c], edx
mov ecx, dword [edx + 0x1a5]
cmp ebx, ecx
jbe 0x4c506d
test ecx, ecx
je 0x4c4fc7
shr ecx, 5
xor ebx, ebx
test ecx, ecx
je 0x4c4f51
inc ebx
shr ecx, 1
jne 0x4c4f4c
mov eax, dword [edx + 0x1a1]
shr eax, 5
push 8
push 8
mov byte [eax + esi + 0x84], bl
push dword [0x4cefc8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4c4f80
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
jmp 0x4c4f82
xor esi, esi
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x1a1]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
add eax, 0x18
lea ebx, [eax + ebx*4]
nop
mov edx, dword [ebx]
cmp edx, 0xffffffff
jne 0x4c4fa7
push 0
call ebp
jmp 0x4c4f9a
mov dword [esi], edx
mov ecx, esi
mov eax, edx
lock cmpxchg dword [ebx], ecx
cmp eax, edx
jne 0x4c4f9a
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [eax + 0x1a5], 0
mov eax, ebx
mov esi, ebx
and eax, 0x1ffffff
je 0x4c4fda
sub esi, eax
add esi, 0x2000000
push 0x40
push 0x3000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4c5059
mov eax, dword [esp + 0x14]
add ebx, ebx
inc eax
mov dword [esp + 0x18], ebx
add edi, 4
mov dword [esp + 0x14], eax
cmp eax, 0x1b
jge 0x4c5026
mov esi, dword [esp + 0x10]
jmp 0x4c4efa
mov eax, dword [ecx]
push ecx
mov dword [edi], eax
mov esi, dword [ecx + 4]
push 0
push dword [0x4cefc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4c5096
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x14], 0
jne 0x4c5050
push str.TWINBASIC_COMPILER_ERROR:_codegen_memory_block_is_fragmented.__Please_restart_the_compiler.
mov byte [eax + 0x14], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
push 0
push esi
call fcn.0040564e
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x3e8
call ebp
jmp 0x4c5050
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x1a5], esi
mov esi, dword [esp + 0x10]
mov dword [edx + 0x1a1], eax
mov eax, dword [edx + 0x1a1]
mov ecx, dword [esp + 0x14]
shr eax, 5
mov byte [eax + esi + 0x84], cl
mov esi, dword [edx + 0x1a1]
sub dword [edx + 0x1a5], ebx
lea eax, [esi + ebx]
mov dword [edx + 0x1a1], eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4c50a5
mov edx, esi
call fcn.004c4e70
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4