Function at 0x14003a1f0
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 [0x140050040]
xor rax, rsp
mov qword [rbp - 0x28], rax
xor esi, esi
mov dword [rsp + 0x20], esi
mov rdx, qword [0x140050d30]
test rdx, rdx
je 0x14003a8fa
mov r8d, dword [0x140050368]
lea rcx, [rsp + 0x30]
call fcn.140037d90
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.140037960
mov eax, dword [0x140050dc8]
cdq
sub eax, edx
sar eax, 1
movd xmm7, eax
cvtdq2pd xmm7, xmm7
mov eax, dword [0x140050d98]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd xmm12, qword [rsp + 0x50]
subsd xmm0, xmm12
movsd xmm1, qword [0x140048ad0]
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 [0x140048ad0]
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 0x14003a311
xorps xmm0, xmm0
sqrtsd xmm0, xmm9
jmp 0x14003a31a
movaps xmm0, xmm9
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
movss xmm1, dword [0x140050360]
cvtps2pd xmm1, xmm1
xorps xmm11, xmm11
comisd xmm0, xmm1
ja 0x14003a341
ucomisd xmm12, xmm11
jp 0x14003a338
je 0x14003a341
ucomisd xmm8, xmm11
jp 0x14003a352
jne 0x14003a352
mov dword [0x140050d50], 0x7f7fffff
mov qword [0x140050d30], rsi
xorps xmm10, xmm10
xorps xmm9, xmm9
cmp byte [0x140050ca0], sil
je 0x14003a755
lea rcx, [rbp - 0x50]
call fcn.140037f00
nop
mov ebx, 1
mov dword [rsp + 0x20], ebx
cmp qword [rax + 0x18], 0xf
jbe 0x14003a384
mov rax, qword [rax]
lea rcx, str.Hunting_Rifle
cmp rax, rcx
je 0x14003a43a
lea rcx, [rbp - 0x70]
call fcn.140037f00
nop
mov ebx, 3
mov dword [rsp + 0x20], ebx
cmp qword [rax + 0x18], 0xf
jbe 0x14003a3b1
mov rax, qword [rax]
lea rcx, str.Reaper_Sniper_Rifle
cmp rax, rcx
je 0x14003a43a
lea rcx, [rsp + 0x50]
call fcn.140037f00
nop
mov ebx, 7
mov dword [rsp + 0x20], ebx
cmp qword [rax + 0x18], 0xf
jbe 0x14003a3db
mov rax, qword [rax]
lea rcx, str.Heavy_Sniper_Rifle
cmp rax, rcx
je 0x14003a43a
lea rcx, [rsp + 0x30]
call fcn.140037f00
nop
mov ebx, 0xf
mov dword [rsp + 0x20], ebx
cmp qword [rax + 0x18], rbx
jbe 0x14003a404
mov rax, qword [rax]
lea rcx, str.Heavy_Impact_Sniper_Rifle
cmp rax, rcx
je 0x14003a43a
lea rcx, [rsp + 0x70]
call fcn.140037f00
mov ebx, 0x1f
cmp qword [rax + 0x18], 0xf
jbe 0x14003a429
mov rax, qword [rax]
lea rcx, str.Bolt_Action_Sniper_Rifle
cmp rax, rcx
je 0x14003a43a
xor dil, dil
jmp 0x14003a43d
mov dil, 1
movdqa xmm6, xmmword [0x140048c30]
test bl, 0x10
je 0x14003a496
and ebx, 0xffffffef
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14003a48c
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a487
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a487
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004020c
movdqu xmmword [rbp - 0x80], xmm6
mov byte [rsp + 0x70], 0
test bl, 8
je 0x14003a4f1
and ebx, 0xfffffff7
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14003a4e6
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a4d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a4d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004020c
movdqa xmm6, xmmword [0x140048c30]
movdqu xmmword [rsp + 0x40], xmm6
mov byte [rsp + 0x30], 0
test bl, 4
je 0x14003a54c
and ebx, 0xfffffffb
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x14003a541
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a534
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a534
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004020c
movdqa xmm6, xmmword [0x140048c30]
movdqu xmmword [rsp + 0x60], xmm6
mov byte [rsp + 0x50], 0
test bl, 2
je 0x14003a5a3
and ebx, 0xfffffffd
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14003a59a
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a58d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a58d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004020c
movdqa xmm6, xmmword [0x140048c30]
movdqu xmmword [rbp - 0x60], xmm6
mov byte [rbp - 0x70], 0
test bl, 1
je 0x14003a5e6
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x14003a5e6
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a5e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a5e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004020c
test dil, dil
je 0x14003a755
movss xmm8, dword [0x140048bb4]
andps xmm8, xmmword [0x1400490a0]
movaps xmm12, xmm14
unpckhpd xmm12, xmm14
movaps xmm0, xmm12
subsd xmm0, qword [0x1400503d0]
cvtsd2ss xmm0, xmm0
movss xmm6, dword [0x140048ac8]
movaps xmm1, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
movaps xmm7, xmm0
movaps xmm0, xmm14
subsd xmm0, qword [0x1400503c8]
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 [0x1400503d8]
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 0x14003a675
xorps xmm0, xmm0
sqrtss xmm0, xmm7
jmp 0x14003a67d
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
cvtss2sd xmm0, xmm0
divsd xmm0, qword [0x140048b18]
xorps xmm3, xmm3
cvtsd2ss xmm3, xmm0
divss xmm3, xmm8
cvtps2pd xmm4, xmm3
movaps xmm8, xmm4
mulsd xmm8, qword [0x140050378]
movsd xmm2, qword [0x140048b20]
mulsd xmm8, xmm2
addsd xmm8, xmm14
movaps xmm7, xmm4
mulsd xmm7, qword [0x140050380]
mulsd xmm7, xmm2
addsd xmm7, xmm12
movss xmm1, dword [0x140048bd4]
andps xmm1, xmmword [0x1400490a0]
mulss xmm3, dword [0x140048b74]
mulss xmm1, dword [0x140048a70]
mulss xmm3, xmm1
cvtps2pd xmm6, xmm3
mulsd xmm4, qword [0x140050388]
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.140037960
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.140037960
movsd xmm8, qword [rax + 8]
movss xmm3, dword [0x140050358]
movsd xmm4, qword [0x1400490c0]
ucomisd xmm12, xmm11
jp 0x14003a76e
je 0x14003a7df
mov eax, dword [0x140050d90]
movd xmm2, eax
cvtdq2pd xmm2, xmm2
comisd xmm12, xmm2
jbe 0x14003a7b4
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 0x14003a7b4
xorps xmm10, xmm10
comisd xmm2, xmm12
jbe 0x14003a7df
movaps xmm10, xmm12
subsd xmm10, xmm2
cvtps2pd xmm0, xmm3
divsd xmm10, xmm0
movaps xmm0, xmm10
addsd xmm0, xmm2
comisd xmm11, xmm0
jbe 0x14003a7df
xorps xmm10, xmm10
ucomisd xmm8, xmm11
jp 0x14003a7e8
je 0x14003a859
mov eax, dword [0x140050da0]
movd xmm2, eax
cvtdq2pd xmm2, xmm2
comisd xmm8, xmm2
jbe 0x14003a82e
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 0x14003a82e
xorps xmm9, xmm9
comisd xmm2, xmm8
jbe 0x14003a859
movaps xmm9, xmm8
subsd xmm9, xmm2
cvtps2pd xmm0, xmm3
divsd xmm9, xmm0
movaps xmm0, xmm9
addsd xmm0, xmm2
comisd xmm11, xmm0
jbe 0x14003a859
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 0x14003a8fa
movups xmm0, xmmword [0x140050c58]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x140050c68]
movsd qword [rax + 0x10], xmm1
mov edx, dword [0x140050c70]
mov dword [rax + 0x18], edx
movzx edx, word [0x140050c74]
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.14003ffa0
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