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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ebbd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10084040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x25], cl
movss dword [ebp - 0x20], xmm0
mov dword [ebp - 4], 0
mov eax, dword [0x1008a178]
cmp dword [eax + 0xb0], 0
jne 0x1005d323
cmp dword [ebp + 0x1c], 7
lea ecx, [ebp + 8]
mov edi, dword [ebp + 0x18]
cmova ecx, dword [ebp + 8]
mov eax, dword [0x1008a8f4]
cmp edi, eax
ja 0x1005d1ee
cmp eax, 7
mov dword [0x1008a8f0], edi
lea eax, [edi + edi]
mov esi, 0x1008a8e0
cmova esi, dword [0x1008a8e0]
push eax
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x1005d201
push ecx
mov byte [ebp - 0x14], 0
mov ecx, 0x1008a8e0
push dword [ebp - 0x14]
push edi
call fcn.10061580
mov esi, dword [0x1008a0dc]
lea eax, [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
mov dword [ebp - 0x18], 0
call ebx
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push 4
push eax
call ebx
mov esi, dword [0x1008a0dc]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
lea eax, [ebp - 0x18]
push eax
call ebx
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push 4
push eax
call ebx
mov eax, dword [ebp - 0x24]
mov ecx, dword [0x1008a178]
cmp dword [eax], ecx
je 0x1005d285
mov edx, dword [ebp - 0x18]
cmp eax, edx
jae 0x1005d285
add eax, 4
mov dword [ebp - 0x24], eax
cmp dword [eax], ecx
jne 0x1005d277
movzx eax, word [ecx + 0xd0]
movsx ecx, ax
call fcn.1005c080
sub esp, 0x18
mov ecx, esp
mov esi, dword [eax]
push 0x1008a8e0
call fcn.10048b10
mov ecx, esi
call fcn.1005d4b0
mov esi, dword [0x1008a178]
lea eax, [ebp - 0x14]
add esp, 0x18
add esi, 0xe0
push eax
push 0x40
push 4
push esi
call ebx
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 4
push esi
call ebx
mov eax, dword [0x1008a0dc]
mov dword [ebp - 0x14], eax
mov eax, dword [0x1008a178]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
call dword [0x1008a148]
mov esi, dword [0x1008a18c]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push esi
call ebx
movzx ecx, byte [ebp - 0x25]
xor ecx, 1
movzx eax, cl
shl cx, 8
or cx, ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
mov byte [esi], cl
push 1
push esi
call ebx
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x1005d35f
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005d355
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005d355
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1006c5e3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006c1ab
mov esp, ebp
pop ebp
ret