Function at 0x10046ab0
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, 0x80
mov eax, dword [0x10069040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x1006ef68]
lea edx, [ebp - 0x40]
push esi
push edi
push ecx
lea eax, [ecx + 0x12f360]
mov dword [ebp - 0x40], 8
mov dword [ebp - 0x80], eax
lea esi, [ecx + 0x11266dc]
lea eax, [ecx + 0x9e9e40]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], eax
lea eax, [ecx + 0x9ef9d0]
mov dword [ebp - 0x74], eax
lea eax, [ecx + 0x31b180]
mov dword [ebp - 0x6c], eax
lea eax, [ecx + 0x9eb0a0]
mov dword [ebp - 0x64], eax
lea eax, [ecx + 0x9ed7c0]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x50]
mov eax, dword [0x1006eefc]
shl eax, 2
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
push edx
mov dword [ebp - 0x14], esi
call fcn.10042460
mov edi, dword [ebp - 0x4c]
xor ecx, ecx
mov edx, dword [ebp - 0x50]
sub edi, edx
sar edi, 2
test edi, edi
je 0x10046b67
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x10046b58
mov dword [ebp - 0x14], eax
test edx, edx
je 0x10046bb2
mov ecx, dword [ebp - 0x48]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10046b93
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046b93
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 8]
mov dword [ebp - 0x60], esi
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10042460
mov eax, dword [ebp - 0x24]
lea edi, [esi + 0x2c]
mov edx, dword [ebp - 0x28]
xor ecx, ecx
sub eax, edx
sar eax, 2
test eax, eax
je 0x10046bf2
mov esi, eax
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x10046be3
mov esi, dword [ebp - 0x14]
test edx, edx
je 0x10046c28
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10046c1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046c1e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
movzx ecx, di
cmp ecx, 0xffff
je 0x10046caf
mov dword [ebp - 8], 0
call fcn.10044ec0
mov edi, eax
lea eax, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.10042460
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
sub eax, edx
sar eax, 2
test eax, eax
je 0x10046c74
mov esi, eax
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x10046c65
mov esi, dword [ebp - 0x14]
test edx, edx
je 0x10046caa
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10046ca0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046ca0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
mov dword [ebp - 0x54], edi
jmp 0x10046cb6
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
lea eax, [ebp - 4]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10042460
mov eax, dword [ebp - 0x24]
lea edi, [esi + 0x2e]
mov edx, dword [ebp - 0x28]
xor ecx, ecx
sub eax, edx
sar eax, 2
test eax, eax
je 0x10046cf3
mov esi, eax
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x10046ce4
mov esi, dword [ebp - 0x14]
test edx, edx
je 0x10046d29
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10046d1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046d1f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
movzx ecx, di
cmp ecx, 0xffff
je 0x10046db0
mov dword [ebp - 8], 0
call fcn.10044ec0
mov edi, eax
lea eax, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.10042460
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
sub eax, edx
sar eax, 2
test eax, eax
je 0x10046d75
mov esi, eax
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x10046d66
mov esi, dword [ebp - 0x14]
test edx, edx
je 0x10046dab
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10046da1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046da1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
mov dword [ebp - 0x58], edi
jmp 0x10046db7
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
lea eax, [ebp - 4]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10042460
mov eax, dword [ebp - 0x24]
lea edi, [esi + 0x32]
mov edx, dword [ebp - 0x28]
xor ecx, ecx
sub eax, edx
sar eax, 2
test eax, eax
je 0x10046df4
mov esi, eax
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x10046de5
mov esi, dword [ebp - 0x14]
test edx, edx
je 0x10046e2a
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10046e20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046e20
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
movzx ecx, di
cmp ecx, 0xffff
je 0x10046eb1
mov dword [ebp - 8], 0
call fcn.10044ec0
mov edi, eax
lea eax, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.10042460
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
sub eax, edx
sar eax, 2
test eax, eax
je 0x10046e76
mov esi, eax
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x10046e67
mov esi, dword [ebp - 0x14]
test edx, edx
je 0x10046eac
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10046ea2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046ea2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
mov dword [ebp - 0x5c], edi
jmp 0x10046eb8
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
lea eax, [ebp - 4]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10042460
mov edi, dword [ebp - 0x24]
add esi, 0x30
mov edx, dword [ebp - 0x28]
xor ecx, ecx
sub edi, edx
sar edi, 2
test edi, edi
je 0x10046ef0
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x10046ee4
test edx, edx
je 0x10046f26
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10046f1c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046f1c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
movzx ecx, si
cmp ecx, 0xffff
je 0x10046fa8
mov dword [ebp - 8], 0
lea edi, [ebp - 4]
call fcn.10044ec0
push ecx
mov esi, eax
lea ecx, [ebp - 0x28]
push edi
lea eax, [ebp - 8]
push eax
call fcn.10042460
mov edi, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
sub edi, edx
sar edi, 2
test edi, edi
je 0x10046f6d
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x10046f61
test edx, edx
je 0x10046fa3
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10046f99
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046f99
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
mov dword [ebp - 0xc], esi
jmp 0x10046faf
mov dword [ebp - 0xc], 0
mov esi, dword [0x1006ef68]
lea ecx, [ebp - 0x44]
push ecx
push ecx
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x10
push edx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x48], 0
add esi, 0x1126508
call fcn.10042460
mov edi, dword [ebp - 0x3c]
xor ecx, ecx
mov edx, dword [ebp - 0x40]
sub edi, edx
sar edi, 2
test edi, edi
je 0x10046ffc
nop dword [eax + eax]
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x10046ff0
test edx, edx
je 0x10047047
mov ecx, dword [ebp - 0x38]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10047028
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10047028
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea eax, [esi + 0x230]
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 4]
lea eax, [esi + 0x1a0]
mov dword [ebp - 0x7c], eax
lea edx, [ebp - 8]
lea eax, [esi + 0x600]
push ecx
mov dword [ebp - 0x68], eax
lea eax, [esi + 0x610]
mov esi, dword [0x1006ef68]
push ecx
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x78], eax
add esi, 0x11265c8
call fcn.10042460
mov edi, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
sub edi, edx
sar edi, 2
test edi, edi
je 0x100470ac
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x100470a0
test edx, edx
je 0x100470e2
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100470d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100470d8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
mov dword [ebp - 0x70], esi
mov esi, dword [ebp - 0x14]
call dword [ebp - 0x64]
push 1
mov ecx, dword [ebp - 0x14]
add ecx, 0x24
call dword [ebp - 0x2c]
add ecx, 4
push 1
call dword [ebp - 0x2c]
add ecx, 4
push 1
call dword [ebp - 0x2c]
add ecx, 4
push 1
call dword [ebp - 0x2c]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esi, 0x24
push eax
push 0x40
push 0x10
push esi
call edi
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
push dword [ebp - 8]
movups xmmword [esi], xmm0
push 0x10
push esi
call edi
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
push 0x40
push 4
lea eax, [ebp - 0x10]
push eax
call edi
mov esi, dword [ebp - 0x14]
add esi, 0x18
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push 4
push eax
call edi
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push esi
call edi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x14]
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push esi
call edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x54]
push 1
call dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x58]
push 1
call dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x5c]
push 1
call dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
push 1
call dword [ebp - 0x30]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 4
push esi
call edi
mov edi, dword [ebp - 0x68]
mov edx, dword [ebp - 0x60]
call dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x70]
call dword [ebp - 0x74]
push dword [ebp - 0x60]
push dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
call dword [ebp - 0x80]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
pop esi
call fcn.1005465b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret