Function at 0x1004a6e0
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 0x1005d3a7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x10071040]
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 0x1004a98c
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.100457e0
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 0x1004a7c1
mov ecx, dword [edx + eax*4]
inc eax
add ecx, dword [edi]
mov edi, ecx
cmp eax, esi
jb 0x1004a7b2
mov dword [ebp - 0x4c], ecx
test edx, edx
je 0x1004a811
mov eax, dword [ebp - 0x60]
sub eax, edx
sar eax, 2
lea ecx, [eax*4]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004a7f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a9ac
push ecx
push edx
call fcn.1005b378
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.100457e0
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 0x1004a850
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x1004a844
test edx, edx
je 0x1004a8a0
mov eax, dword [ebp - 0x70]
sub eax, edx
sar eax, 2
lea ecx, [eax*4]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004a881
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a9ac
push ecx
push edx
call fcn.1005b378
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.10056bf0
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 0x1004a933
mov ecx, eax
call fcn.1003cb30
add dword [esi + 4], 0x18
jmp 0x1004a93b
push eax
mov ecx, esi
call fcn.10052270
and dword [ebp - 0x3c], 0xfffffffd
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x1004a973
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004a969
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a9ac
push ecx
push edx
call fcn.1005b378
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 0x1004a77f
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.1005ae5b
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