Function at 0x1005d6c0
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
sub esp, 0x78
mov eax, dword [0x10084040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x1008a104]
lea edx, [ebp - 0x28]
push esi
push edi
push ecx
lea eax, [ecx + 0x12e3e0]
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x6c], eax
lea esi, [ecx + 0x11266dc]
lea eax, [ecx + 0x9e9e40]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x5c], eax
lea eax, [ecx + 0x12e4c0]
mov dword [ebp - 0x60], eax
lea eax, [ecx + 0x31b180]
mov dword [ebp - 0x74], eax
lea eax, [ecx + 0x145490]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x38]
mov eax, dword [0x1008a074]
shl eax, 2
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
push eax
push edx
call fcn.10054440
mov edi, dword [ebp - 0x34]
xor ecx, ecx
mov edx, dword [ebp - 0x38]
sub edi, edx
sar edi, 2
test edi, edi
je 0x1005d76c
nop dword [eax]
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x1005d760
test edx, edx
je 0x1005d7b7
mov ecx, dword [ebp - 0x30]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1005d798
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005d798
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 dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 8]
mov dword [ebp - 0x44], esi
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.10054440
mov edi, dword [ebp - 0x54]
add esi, 0x24
mov edx, dword [ebp - 0x58]
xor ecx, ecx
sub edi, edx
sar edi, 2
test edi, edi
je 0x1005d7f2
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x1005d7e6
test edx, edx
je 0x1005d828
mov ecx, dword [ebp - 0x50]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1005d81e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005d81e
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
movzx ecx, si
cmp ecx, 0xffff
je 0x1005d8aa
mov dword [ebp - 8], 0
lea edi, [ebp - 4]
call fcn.1005c080
push ecx
mov esi, eax
lea ecx, [ebp - 0x58]
push edi
lea eax, [ebp - 8]
push eax
call fcn.10054440
mov edi, dword [ebp - 0x54]
xor ecx, ecx
mov edx, dword [ebp - 0x58]
sub edi, edx
sar edi, 2
test edi, edi
je 0x1005d86f
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x1005d863
test edx, edx
je 0x1005d8a5
mov ecx, dword [ebp - 0x50]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1005d89b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005d89b
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 dword [ebp - 0x10], esi
jmp 0x1005d8b1
mov dword [ebp - 0x10], 0
mov esi, dword [0x1008a104]
lea ecx, [ebp - 0x2c]
push ecx
push ecx
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], 0
add esi, 0x1126508
call fcn.10054440
mov edi, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
sub edi, edx
sar edi, 2
test edi, edi
je 0x1005d8fc
nop dword [eax]
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x1005d8f0
test edx, edx
je 0x1005d947
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1005d928
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005d928
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 dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [esi + 0xd0]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x40], eax
lea edi, [esi + 0x230]
lea eax, [esi + 0x602]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x70], eax
lea esi, [edi + 0x38]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov dword [esi], 0
push eax
push dword [ebp - 8]
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0
push eax
push 0x40
push 4
lea eax, [ebp - 0x14]
push eax
call esi
mov eax, dword [edi + 0x18]
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push 0x40
push 4
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push 4
push eax
call edi
add dword [ebp - 0xc], 0x14
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push esi
call edi
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
push 1
call dword [ebp - 0x5c]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 4
push esi
call edi
mov eax, dword [ebp - 0x40]
call dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
call dword [ebp - 0x68]
mov edx, eax
mov ecx, dword [ebp - 0x3c]
push dword [ebp - 0x44]
push dword [ebp - 0x40]
call dword [ebp - 0x6c]
mov edi, dword [ebp - 0x70]
mov edx, dword [ebp - 0x44]
call dword [ebp - 0x74]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
pop esi
call fcn.1006c1ab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret