Function at 0x14003ae20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x78]
sub rsp, 0x170
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
movaps xmmword [rax - 0x58], xmm10
movaps xmmword [rax - 0x68], xmm11
movaps xmmword [rax - 0x78], xmm12
movaps xmmword [rax - 0x88], xmm14
movaps xmmword [rax - 0x98], xmm15
mov rax, qword [0x140051040]
xor rax, rsp
mov qword [rbp - 0x28], rax
xor esi, esi
mov dword [rsp + 0x20], esi
mov rbx, qword [0x140051d08]
test rbx, rbx
je 0x14003b562
cmp byte [0x140051cf5], sil
jne 0x14003aec5
lea rcx, [rbx + 0x2e8]
call fcn.1400400b0
movaps xmm6, xmm0
lea rcx, [rbx + 0x2f0]
call fcn.1400400b0
addss xmm0, dword [0x140049bac]
comiss xmm0, xmm6
jb 0x14003b562
mov r8d, dword [0x1400513c0]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140038750
movups xmm14, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x70], xmm14
movsd xmm15, qword [rsp + 0x40]
movsd qword [rbp - 0x80], xmm15
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140038320
mov eax, dword [0x140051d98]
cdq
sub eax, edx
sar eax, 1
movd xmm7, eax
cvtdq2pd xmm7, xmm7
mov eax, dword [0x140051d6c]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd xmm12, qword [rsp + 0x50]
subsd xmm0, xmm12
movsd xmm1, qword [0x140049c30]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movaps xmm9, xmm0
movsd xmm8, qword [rsp + 0x58]
subsd xmm7, xmm8
movsd xmm1, qword [0x140049c30]
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm9, xmm0
xorps xmm1, xmm1
ucomisd xmm1, xmm9
ja 0x14003af79
xorps xmm0, xmm0
sqrtsd xmm0, xmm9
jmp 0x14003af82
movaps xmm0, xmm9
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
movss xmm1, dword [0x1400513b8]
cvtps2pd xmm1, xmm1
xorps xmm11, xmm11
comisd xmm0, xmm1
ja 0x14003afa9
ucomisd xmm12, xmm11
jp 0x14003afa0
je 0x14003afa9
ucomisd xmm8, xmm11
jp 0x14003afba
jne 0x14003afba
mov dword [0x140051d28], 0x7f7fffff
mov qword [0x140051d08], rsi
xorps xmm10, xmm10
xorps xmm9, xmm9
cmp byte [0x140051cf1], sil
je 0x14003b3bd
lea rcx, [rbp - 0x50]
call fcn.1400388c0
nop
mov ebx, 1
mov dword [rsp + 0x20], ebx
cmp qword [rax + 0x18], 0xf
jbe 0x14003afec
mov rax, qword [rax]
lea rcx, str.Hunting_Rifle
cmp rax, rcx
je 0x14003b0a2
lea rcx, [rbp - 0x70]
call fcn.1400388c0
nop
mov ebx, 3
mov dword [rsp + 0x20], ebx
cmp qword [rax + 0x18], 0xf
jbe 0x14003b019
mov rax, qword [rax]
lea rcx, str.Reaper_Sniper_Rifle
cmp rax, rcx
je 0x14003b0a2
lea rcx, [rsp + 0x50]
call fcn.1400388c0
nop
mov ebx, 7
mov dword [rsp + 0x20], ebx
cmp qword [rax + 0x18], 0xf
jbe 0x14003b043
mov rax, qword [rax]
lea rcx, str.Heavy_Sniper_Rifle
cmp rax, rcx
je 0x14003b0a2
lea rcx, [rsp + 0x30]
call fcn.1400388c0
nop
mov ebx, 0xf
mov dword [rsp + 0x20], ebx
cmp qword [rax + 0x18], rbx
jbe 0x14003b06c
mov rax, qword [rax]
lea rcx, str.Heavy_Impact_Sniper_Rifle
cmp rax, rcx
je 0x14003b0a2
lea rcx, [rsp + 0x70]
call fcn.1400388c0
mov ebx, 0x1f
cmp qword [rax + 0x18], 0xf
jbe 0x14003b091
mov rax, qword [rax]
lea rcx, str.Bolt_Action_Sniper_Rifle
cmp rax, rcx
je 0x14003b0a2
xor dil, dil
jmp 0x14003b0a5
mov dil, 1
movdqa xmm6, xmmword [0x140049d90]
test bl, 0x10
je 0x14003b0fe
and ebx, 0xffffffef
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14003b0f4
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003b0ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003b0ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004106c
movdqu xmmword [rbp - 0x80], xmm6
mov byte [rsp + 0x70], 0
test bl, 8
je 0x14003b159
and ebx, 0xfffffff7
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14003b14e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003b141
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003b141
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004106c
movdqa xmm6, xmmword [0x140049d90]
movdqu xmmword [rsp + 0x40], xmm6
mov byte [rsp + 0x30], 0
test bl, 4
je 0x14003b1b4
and ebx, 0xfffffffb
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x14003b1a9
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003b19c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003b19c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004106c
movdqa xmm6, xmmword [0x140049d90]
movdqu xmmword [rsp + 0x60], xmm6
mov byte [rsp + 0x50], 0
test bl, 2
je 0x14003b20b
and ebx, 0xfffffffd
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14003b202
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003b1f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003b1f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004106c
movdqa xmm6, xmmword [0x140049d90]
movdqu xmmword [rbp - 0x60], xmm6
mov byte [rbp - 0x70], 0
test bl, 1
je 0x14003b24e
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x14003b24e
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003b249
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003b249
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004106c
test dil, dil
je 0x14003b3bd
movss xmm8, dword [0x140049d18]
andps xmm8, xmmword [0x14004a1d0]
movaps xmm12, xmm14
unpckhpd xmm12, xmm14
movaps xmm0, xmm12
subsd xmm0, qword [0x140051420]
cvtsd2ss xmm0, xmm0
movss xmm6, dword [0x140049c28]
movaps xmm1, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
movaps xmm7, xmm0
movaps xmm0, xmm14
subsd xmm0, qword [0x140051418]
cvtsd2ss xmm0, xmm0
movaps xmm1, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
addss xmm7, xmm0
movaps xmm2, xmm15
subsd xmm2, qword [0x140051428]
cvtpd2ps xmm0, xmm2
movaps xmm1, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
addss xmm7, xmm0
xorps xmm1, xmm1
ucomiss xmm1, xmm7
ja 0x14003b2dd
xorps xmm0, xmm0
sqrtss xmm0, xmm7
jmp 0x14003b2e5
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
cvtss2sd xmm0, xmm0
divsd xmm0, qword [0x140049c78]
xorps xmm3, xmm3
cvtsd2ss xmm3, xmm0
divss xmm3, xmm8
cvtps2pd xmm4, xmm3
movaps xmm8, xmm4
mulsd xmm8, qword [0x1400513c8]
movsd xmm2, qword [0x140049c80]
mulsd xmm8, xmm2
addsd xmm8, xmm14
movaps xmm7, xmm4
mulsd xmm7, qword [0x1400513d0]
mulsd xmm7, xmm2
addsd xmm7, xmm12
movss xmm1, dword [0x140049d40]
andps xmm1, xmmword [0x14004a1d0]
mulss xmm3, dword [0x140049cd4]
mulss xmm1, dword [0x140049bd4]
mulss xmm3, xmm1
cvtps2pd xmm6, xmm3
mulsd xmm4, qword [0x1400513d8]
mulsd xmm4, xmm2
addsd xmm4, xmm15
addsd xmm6, xmm4
movsd qword [rsp + 0x30], xmm8
movsd qword [rsp + 0x38], xmm7
movsd qword [rsp + 0x40], xmm6
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140038320
movsd xmm12, qword [rax]
movsd qword [rsp + 0x30], xmm8
movsd qword [rsp + 0x38], xmm7
movsd qword [rsp + 0x40], xmm6
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140038320
movsd xmm8, qword [rax + 8]
movss xmm3, dword [0x1400513b0]
movsd xmm4, qword [0x14004a1f0]
ucomisd xmm12, xmm11
jp 0x14003b3d6
je 0x14003b447
mov eax, dword [0x140051d60]
movd xmm2, eax
cvtdq2pd xmm2, xmm2
comisd xmm12, xmm2
jbe 0x14003b41c
movaps xmm10, xmm2
subsd xmm10, xmm12
xorps xmm10, xmm4
cvtps2pd xmm0, xmm3
divsd xmm10, xmm0
movaps xmm1, xmm10
addsd xmm1, xmm2
add eax, eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jbe 0x14003b41c
xorps xmm10, xmm10
comisd xmm2, xmm12
jbe 0x14003b447
movaps xmm10, xmm12
subsd xmm10, xmm2
cvtps2pd xmm0, xmm3
divsd xmm10, xmm0
movaps xmm0, xmm10
addsd xmm0, xmm2
comisd xmm11, xmm0
jbe 0x14003b447
xorps xmm10, xmm10
ucomisd xmm8, xmm11
jp 0x14003b450
je 0x14003b4c1
mov eax, dword [0x140051d78]
movd xmm2, eax
cvtdq2pd xmm2, xmm2
comisd xmm8, xmm2
jbe 0x14003b496
movaps xmm9, xmm2
subsd xmm9, xmm8
xorps xmm9, xmm4
cvtps2pd xmm0, xmm3
divsd xmm9, xmm0
movaps xmm1, xmm9
addsd xmm1, xmm2
add eax, eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jbe 0x14003b496
xorps xmm9, xmm9
comisd xmm2, xmm8
jbe 0x14003b4c1
movaps xmm9, xmm8
subsd xmm9, xmm2
cvtps2pd xmm0, xmm3
divsd xmm9, xmm0
movaps xmm0, xmm9
addsd xmm0, xmm2
comisd xmm11, xmm0
jbe 0x14003b4c1
xorps xmm9, xmm9
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x34], rsi
mov dword [rbp - 0x2c], esi
mov dword [rbp - 0x40], esi
mov qword [rbp - 0x3c], 0x4001
cvttsd2si eax, xmm10
mov dword [rbp - 0x48], eax
cvttsd2si eax, xmm9
mov dword [rbp - 0x44], eax
mov edx, 0x1000
xor ecx, ecx
mov r9d, 0x40
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14003b562
movups xmm0, xmmword [0x140051ca8]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x140051cb8]
movsd qword [rax + 0x10], xmm1
mov edx, dword [0x140051cc0]
mov dword [rax + 0x18], edx
movzx edx, word [0x140051cc4]
mov word [rax + 0x1c], dx
mov r8d, 0x28
lea rdx, [rbp - 0x50]
mov ecx, 1
call rbx
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbp - 0x28]
xor rcx, rsp
call fcn.140040e00
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm14, xmmword [r11 - 0x80]
movaps xmm15, xmmword [r11 - 0x90]
mov rsp, r11
pop rbp
ret