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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ea27
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x10084040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x40], edi
mov esi, ecx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x80], esi
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [ebx + 8]
sub eax, edi
mov dword [ebp - 4], 0
shr eax, 2
mov dword [ebp - 0x3c], 1
mov dword [ebx + 8], eax
mov dword [ebp - 0x44], 0
test eax, eax
je 0x1005c4cc
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0xc
push ecx
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push edx
push ecx
lea ecx, [ebp - 0x68]
call fcn.10054440
mov esi, dword [ebp - 0x64]
xor eax, eax
mov edx, dword [ebp - 0x68]
sub esi, edx
sar esi, 2
mov dword [ebp - 0x4c], edi
test esi, esi
je 0x1005c301
mov ecx, dword [edx + eax*4]
inc eax
add ecx, dword [edi]
mov edi, ecx
cmp eax, esi
jb 0x1005c2f2
mov dword [ebp - 0x4c], ecx
test edx, edx
je 0x1005c351
mov eax, dword [ebp - 0x60]
sub eax, edx
sar eax, 2
lea ecx, [eax*4]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c332
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005c4ec
push ecx
push edx
call fcn.1006c5e3
add esp, 8
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], 0x10
push eax
push ecx
lea ecx, [ebp - 0x78]
call fcn.10054440
mov esi, dword [ebp - 0x74]
xor ecx, ecx
mov edx, dword [ebp - 0x78]
sub esi, edx
mov edi, dword [ebp - 0x40]
sar esi, 2
test esi, esi
je 0x1005c390
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x1005c384
test edx, edx
je 0x1005c3e0
mov eax, dword [ebp - 0x70]
sub eax, edx
sar eax, 2
lea ecx, [eax*4]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c3c1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005c4ec
push ecx
push edx
call fcn.1006c5e3
add esp, 8
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x18]
push eax
push 0x40
push 2
lea eax, [ebp - 0x38]
push eax
call esi
movzx eax, word [edi]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x38]
push 2
push eax
call esi
mov dword [ebp - 4], 1
movzx edi, word [ebp - 0x38]
push ecx
push edi
lea ecx, [ebp - 0x34]
call fcn.100679d0
or dword [ebp - 0x3c], 2
lea eax, [ebp - 0x1c]
cmp dword [ebp - 0x20], 0xf
lea esi, [ebp - 0x34]
push eax
cmova esi, dword [ebp - 0x34]
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push dword [ebp - 0x4c]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [ebp - 0x7c]
lea ecx, [ebp - 0x34]
push ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x1005c473
mov ecx, eax
call fcn.10046a10
add dword [esi + 4], 0x18
jmp 0x1005c47b
push eax
mov ecx, esi
call fcn.100630f0
and dword [ebp - 0x3c], 0xfffffffd
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x1005c4b3
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c4a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005c4ec
push ecx
push edx
call fcn.1006c5e3
add esp, 8
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
inc eax
add edi, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edi
cmp eax, dword [ebx + 8]
jb 0x1005c2bf
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006c1ab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3