Function at 0x47eddb
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 [0x49f688]
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 0x47ee4c
jmp 0x47ee0b
inc edx
add ebx, ebx
shr eax, 1
mov ecx, edx
jne 0x47ee0b
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
cmp ecx, 0x1b
jl 0x47ee4c
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.00407e0c
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
jmp 0x47ee43
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 0x47ee83
cmp ecx, 0xffffffff
jne 0x47ee6c
push 0
call ebp
jmp 0x47ee7d
or edx, 0xffffffff
mov eax, ecx
lock cmpxchg dword [edi], edx
cmp eax, ecx
je 0x47ef6f
mov ecx, dword [edi]
test ecx, ecx
jne 0x47ee61
call fcn.0049998e
mov edx, eax
mov dword [esp + 0x1c], edx
mov ecx, dword [edx + 0x147]
cmp ebx, ecx
jbe 0x47efce
test ecx, ecx
je 0x47ef28
shr ecx, 5
xor ebx, ebx
test ecx, ecx
je 0x47eeb2
inc ebx
shr ecx, 1
jne 0x47eead
mov eax, dword [edx + 0x143]
shr eax, 5
push 8
push 8
mov byte [eax + esi + 0x84], bl
push dword [0x4a01c8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x47eee1
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
jmp 0x47eee3
xor esi, esi
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x143]
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 0x47ef08
push 0
call ebp
jmp 0x47eefb
mov dword [esi], edx
mov ecx, esi
mov eax, edx
lock cmpxchg dword [ebx], ecx
cmp eax, edx
jne 0x47eefb
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [eax + 0x147], 0
mov eax, ebx
mov esi, ebx
and eax, 0x1ffffff
je 0x47ef3b
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 0x47efba
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 0x47ef87
mov esi, dword [esp + 0x10]
jmp 0x47ee5b
mov eax, dword [ecx]
push ecx
mov dword [edi], eax
mov esi, dword [ecx + 4]
push 0
push dword [0x4a01c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x47eff7
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x14], 0
jne 0x47efb1
push 0x4d186c
mov byte [eax + 0x14], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
push 0
push esi
call fcn.00407e0c
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x3e8
call ebp
jmp 0x47efb1
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x147], esi
mov esi, dword [esp + 0x10]
mov dword [edx + 0x143], eax
mov eax, dword [edx + 0x143]
mov ecx, dword [esp + 0x14]
shr eax, 5
mov byte [eax + esi + 0x84], cl
mov esi, dword [edx + 0x143]
sub dword [edx + 0x147], ebx
lea eax, [esi + ebx]
mov dword [edx + 0x143], eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x47f006
mov edx, esi
call fcn.004961ff
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4