Function at 0x1005e510
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 0x1006ec4d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
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 eax, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
mov edi, dword [0x1008a104]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add edi, 0x11266dc
push eax
push 0x40
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push 4
push eax
call esi
cmp dword [ebp - 0x1c], 0
jne 0x1005e5fe
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.10054800
mov eax, esi
jmp 0x1005e724
mov edi, dword [0x1008a104]
lea ecx, [ebp - 0x18]
push ecx
push ecx
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x18
add edi, 0x11266dc
mov dword [ebp - 0x1c], 0
push edx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], edi
call fcn.10054440
mov esi, dword [ebp - 0x3c]
xor ecx, ecx
mov edx, dword [ebp - 0x40]
sub esi, edx
sar esi, 2
test esi, esi
je 0x1005e64f
nop dword [eax]
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x1005e640
mov dword [ebp - 0x18], eax
test edx, edx
je 0x1005e685
mov ecx, dword [ebp - 0x38]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1005e67b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005e67b
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 esi, dword [0x1008a104]
lea ecx, [ebp - 0x34]
push ecx
push ecx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x1c
push edx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x38], 0
add esi, 0x11266dc
call fcn.10054440
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov edx, dword [ebp - 0x50]
sub eax, edx
sar eax, 2
test eax, eax
je 0x1005e6d2
mov edi, eax
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x1005e6c3
mov edi, dword [ebp - 0x18]
test edx, edx
je 0x1005e708
mov ecx, dword [ebp - 0x48]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1005e6fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005e6fe
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 - 0x30]
sub esp, 8
mov edx, edi
push esi
call fcn.1005c220
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.10054800
mov eax, dword [ebp - 0x30]
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