Function at 0x10016240
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 0x10021cdd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x100290c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
cmp dword [0x10042648], 0
mov ecx, dword [0x10042010]
mov dword [ebp - 0x18], ecx
lea edi, [ecx + 0xc]
mov dword [0x10042684], edi
je 0x100167d3
mov eax, dword [0x10042688]
cmp dword [eax], 0
jbe 0x100167d3
mov eax, dword [0x100421f0]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [0x10042644]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x11dd6998]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
lea ecx, [eax + edx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x34]
mov eax, dword [0x100422ac]
mov ecx, dword [eax + ecx]
call fcn.10004b00
test eax, eax
jle 0x100167b9
cmp byte [0x1004243a], 0
jne 0x10016382
mov eax, dword [0x100421f0]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [0x10042644]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [0x11dd6998]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
lea ecx, [eax + edx]
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x100422ac]
mov eax, dword [ebp - 0x18]
push 0
mov edx, dword [eax + ecx]
mov ecx, 0x11dd7af0
call fcn.10006180
mov esi, dword [0x10042684]
lea eax, [ebp - 0x18]
mov edi, dword [0x10042010]
add esp, 4
sub esi, edi
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push 0x10016230
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movq xmm0, qword [0x11dd7af0]
xor edi, edi
mov eax, dword [0x11dd7af8]
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [0x100421f0]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [0x10042644]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [0x11dd6998]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
lea ecx, [eax + edx]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x100422ac]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + ecx]
call fcn.10009e60
mov ecx, edi
mov esi, eax
call fcn.10009e60
cmp eax, esi
je 0x1001645b
push 7
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.10006180
add esp, 4
test al, al
je 0x1001645b
mov ecx, edi
call fcn.10004b00
test eax, eax
jle 0x1001645b
movss xmm2, dword [ebp - 0x4c]
movss xmm0, dword [ebp - 0x50]
subss xmm0, dword [ebp - 0x28]
subss xmm2, dword [ebp - 0x24]
movss xmm1, dword [ebp - 0x48]
subss xmm1, dword [ebp - 0x20]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
call fcn.10001d90
movsd xmm1, qword [0x10026708]
mov esi, dword [ebp - 0x18]
cvtss2sd xmm0, xmm0
comisd xmm1, xmm0
cmova esi, edi
mov dword [ebp - 0x18], esi
jmp 0x1001645e
mov esi, dword [ebp - 0x18]
inc edi
cmp edi, 0xf
jle 0x100163a0
cmp esi, 0xffffffff
je 0x1001677d
cmp dword [0x100421fc], 0
mov eax, dword [0x10042674]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [0x100421ec]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
je 0x1001656f
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
mov edi, 0x1004245c
push esi
call edi
mov ecx, dword [0x10042678]
add ecx, eax
mov eax, 0x100424bc
call eax
push 0
mov edx, 0x1004247c
mov ecx, eax
call edx
movss xmm0, dword [eax + 0x30]
mov eax, dword [0x10042674]
movups xmmword [ebp - 0x60], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [0x100421ec]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
push esi
call edi
mov ecx, dword [0x10042678]
add ecx, eax
mov eax, 0x100424bc
call eax
mov ecx, eax
mov eax, 0x1004247c
push 0
call eax
movss xmm0, dword [eax + 0x34]
mov eax, dword [0x10042674]
movss dword [ebp - 0x18], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [0x100421ec]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
push esi
call edi
mov ecx, dword [0x10042678]
add ecx, eax
mov eax, 0x100424bc
call eax
mov ecx, eax
mov eax, 0x1004247c
push 0
call eax
movups xmm1, xmmword [ebp - 0x60]
movss xmm0, dword [ebp - 0x18]
addss xmm1, dword [0x10026588]
subss xmm0, dword [0x10026578]
movups xmmword [ebp - 0x60], xmm1
jmp 0x1001663b
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
mov edi, 0x1004245c
push esi
call edi
mov ecx, dword [0x10042678]
add ecx, eax
mov eax, 0x100424bc
call eax
push 0
mov edx, 0x1004247c
mov ecx, eax
call edx
movss xmm0, dword [eax + 0x30]
mov eax, dword [0x10042674]
movups xmmword [ebp - 0x60], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [0x100421ec]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
push esi
call edi
mov ecx, dword [0x10042678]
add ecx, eax
mov eax, 0x100424bc
call eax
mov ecx, eax
mov eax, 0x1004247c
push 0
call eax
movss xmm0, dword [eax + 0x34]
mov eax, dword [0x10042674]
movss dword [ebp - 0x18], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [0x100421ec]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
push esi
call edi
mov ecx, dword [0x10042678]
add ecx, eax
mov eax, 0x100424bc
call eax
mov ecx, eax
mov eax, 0x1004247c
push 0
call eax
movss xmm0, dword [ebp - 0x18]
addss xmm0, dword [0x10026578]
movups xmm1, xmmword [ebp - 0x60]
movss xmm2, dword [eax + 0x38]
push 0x14
movss dword [ebp - 0x18], xmm0
movss dword [ebp - 0x1c], xmm2
movss dword [0x11dd7afc], xmm1
movss dword [0x11dd7b00], xmm0
movss dword [0x11dd7b04], xmm2
movss dword [0x10042638], xmm2
mov dword [0x100426b4], 0x10002450
call fcn.10002450
cwde
shr eax, 0x10
test eax, eax
je 0x100166b1
cmp byte [0x11dd7bc0], 0
je 0x100166a3
cmp dword [0x11dd7bc4], 0
je 0x100166b8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x11dd7bc4], eax
ja 0x100166b8
mov byte [0x11dd7bc0], 1
mov eax, 1
jmp 0x100166ba
mov byte [0x11dd7bc0], 0
xor eax, eax
test eax, eax
je 0x100166cf
cmp byte [0x1004243a], 0
sete al
mov byte [0x1004243a], al
jmp 0x100166d4
mov al, byte [0x1004243a]
cmp al, 1
jne 0x100166f3
mov eax, dword [0x10042684]
mov edx, 0x10016210
mov ecx, dword [0x10042010]
sub eax, ecx
push eax
call fcn.100020a0
add esp, 4
push dword [ebp - 0x38]
movss xmm0, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
movss xmm1, dword [ebp - 0x1c]
subss xmm0, dword [0x1002654c]
push eax
movss dword [ebp - 0x48], xmm1
sub esp, 0xc
movups xmm1, xmmword [ebp - 0x60]
mov eax, dword [ebp - 0x48]
mov ecx, esp
unpcklps xmm1, xmm0
movq qword [ecx], xmm1
mov dword [ecx + 8], eax
call fcn.10004510
test al, al
je 0x1001680a
mov dword [ebp - 0x3c], 0x47524154
mov dword [ebp - 0x38], 0x215445
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
movss xmm0, dword [ebp - 0x28]
addss xmm0, dword [0x100269d0]
push eax
cvttss2si eax, dword [ebp - 0x24]
push 0xffffff00
push eax
cvttss2si eax, xmm0
push eax
push dword [0x10041ff4]
call fcn.10003a30
add esp, 0x14
jmp 0x1001680a
mov esi, dword [0x10042684]
lea eax, [ebp - 0x1c]
mov edi, dword [0x10042010]
sub esi, edi
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push 0x10016230
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10016803
mov eax, dword [0x10042010]
lea ecx, [ebp - 0x1c]
mov edi, dword [0x10042684]
push ecx
push 0x40
sub edi, eax
mov dword [ebp - 0x18], eax
push edi
push eax
jmp 0x100167dd
lea eax, [ebp - 0x1c]
sub edi, ecx
push eax
push 0x40
push edi
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
push edi
push 0x10016230
push dword [ebp - 0x18]
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push edi
push dword [ebp - 0x18]
call esi
mov byte [0x1004243a], 0
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.10020ae5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret