Function at 0x5484d2
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 [0x589de4]
push edi
sar eax, 5
mov edi, 0x20
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
test eax, eax
je 0x548533
jmp 0x548502
inc edx
add edi, edi
shr eax, 1
mov ecx, edx
jne 0x548502
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
cmp ecx, 0x1b
jl 0x548533
xor edx, edx
mov ecx, str.TWINBASIC_COMPILER_ERROR:_codegen_memory_block_request_too_large.
call fcn.0055fcd5
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
jmp 0x54852a
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebp, [esi + 0x18]
lea ebp, [ebp + edx*4]
mov edi, edi
mov ecx, dword [ebp]
test ecx, ecx
je 0x54856d
cmp ecx, 0xffffffff
jne 0x548554
push 0
call ebx
jmp 0x548566
or edx, 0xffffffff
mov eax, ecx
lock cmpxchg dword [ebp], edx
cmp eax, ecx
je 0x548666
mov ecx, dword [ebp]
test ecx, ecx
jne 0x548549
call fcn.0055ff80
mov edx, eax
mov dword [esp + 0x1c], edx
mov ecx, dword [edx + 0x13e]
cmp edi, ecx
jbe 0x5486b7
test ecx, ecx
je 0x54861f
shr ecx, 5
xor ebx, ebx
test ecx, ecx
je 0x54859c
inc ebx
shr ecx, 1
jne 0x548597
mov eax, dword [edx + 0x13a]
shr eax, 5
push 8
push 8
mov byte [eax + esi + 0x84], bl
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x5485cc
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
jmp 0x5485ce
xor esi, esi
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x13a]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
add eax, 0x18
lea edi, [eax + ebx*4]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
mov edx, dword [edi]
cmp edx, 0xffffffff
jne 0x5485ff
push 0
call ebx
jmp 0x5485f2
mov dword [esi], edx
mov ecx, esi
mov eax, edx
lock cmpxchg dword [edi], ecx
cmp eax, edx
jne 0x5485f2
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov dword [eax + 0x13e], 0
mov eax, edi
mov esi, edi
and eax, 0x1ffffff
je 0x548632
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 0x5486a3
mov eax, dword [esp + 0x14]
add edi, edi
inc eax
mov dword [esp + 0x18], edi
add ebp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x1b
jge 0x548680
mov esi, dword [esp + 0x10]
jmp 0x548542
mov eax, dword [ecx]
push ecx
mov dword [ebp], eax
mov esi, dword [ecx + 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5486e0
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x14], 0
jne 0x54869a
xor edx, edx
mov byte [eax + 0x14], 1
mov ecx, str.TWINBASIC_COMPILER_ERROR:_codegen_memory_block_is_fragmented.__Please_restart_the_compiler.
call fcn.0055fcd5
push 0x3e8
call ebx
jmp 0x54869a
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x13e], esi
mov esi, dword [esp + 0x10]
mov dword [edx + 0x13a], eax
mov eax, dword [edx + 0x13a]
mov ecx, dword [esp + 0x14]
shr eax, 5
mov byte [eax + esi + 0x84], cl
mov esi, dword [edx + 0x13a]
sub dword [edx + 0x13e], edi
lea eax, [esi + edi]
mov dword [edx + 0x13a], eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x5486ef
mov edx, esi
call fcn.0055d86a
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4