Function at 0x1400489b0
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 [0x140078040]
xor rax, rsp
mov qword [rbp - 0x28], rax
xor esi, esi
mov dword [rsp + 0x20], esi
mov rbx, qword [0x140079368]
test rbx, rbx
je 0x1400490f2
cmp byte [0x140079359], sil
je 0x140048a55
lea rcx, [rbx + 0x2e8]
call fcn.140054d50
movaps xmm6, xmm0
lea rcx, [rbx + 0x2f0]
call fcn.140054d50
addss xmm0, dword [0x14006c078]
comiss xmm0, xmm6
jb 0x1400490f2
mov r8d, dword [0x1400783e0]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140045e80
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.140045a50
mov eax, dword [0x140079400]
cdq
sub eax, edx
sar eax, 1
movd xmm7, eax
cvtdq2pd xmm7, xmm7
mov eax, dword [0x1400793cc]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd xmm12, qword [rsp + 0x50]
subsd xmm0, xmm12
movsd xmm1, qword [0x14006c110]
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 [0x14006c110]
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 0x140048b09
xorps xmm0, xmm0
sqrtsd xmm0, xmm9
jmp 0x140048b12
movaps xmm0, xmm9
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
movss xmm1, dword [0x1400783d8]
cvtps2pd xmm1, xmm1
xorps xmm11, xmm11
comisd xmm0, xmm1
ja 0x140048b39
ucomisd xmm12, xmm11
jp 0x140048b30
je 0x140048b39
ucomisd xmm8, xmm11
jp 0x140048b4a
jne 0x140048b4a
mov dword [0x140079388], 0x7f7fffff
mov qword [0x140079368], rsi
xorps xmm10, xmm10
xorps xmm9, xmm9
cmp byte [0x140079351], sil
je 0x140048f4d
lea rcx, [rbp - 0x50]
call fcn.140045ff0
nop
mov ebx, 1
mov dword [rsp + 0x20], ebx
cmp qword [rax + 0x18], 0xf
jbe 0x140048b7c
mov rax, qword [rax]
lea rcx, str.Hunting_Rifle
cmp rax, rcx
je 0x140048c32
lea rcx, [rbp - 0x70]
call fcn.140045ff0
nop
mov ebx, 3
mov dword [rsp + 0x20], ebx
cmp qword [rax + 0x18], 0xf
jbe 0x140048ba9
mov rax, qword [rax]
lea rcx, str.Reaper_Sniper_Rifle
cmp rax, rcx
je 0x140048c32
lea rcx, [rsp + 0x50]
call fcn.140045ff0
nop
mov ebx, 7
mov dword [rsp + 0x20], ebx
cmp qword [rax + 0x18], 0xf
jbe 0x140048bd3
mov rax, qword [rax]
lea rcx, str.Heavy_Sniper_Rifle
cmp rax, rcx
je 0x140048c32
lea rcx, [rsp + 0x30]
call fcn.140045ff0
nop
mov ebx, 0xf
mov dword [rsp + 0x20], ebx
cmp qword [rax + 0x18], rbx
jbe 0x140048bfc
mov rax, qword [rax]
lea rcx, str.Heavy_Impact_Sniper_Rifle
cmp rax, rcx
je 0x140048c32
lea rcx, [rsp + 0x70]
call fcn.140045ff0
mov ebx, 0x1f
cmp qword [rax + 0x18], 0xf
jbe 0x140048c21
mov rax, qword [rax]
lea rcx, str.Bolt_Action_Sniper_Rifle
cmp rax, rcx
je 0x140048c32
xor dil, dil
jmp 0x140048c35
mov dil, 1
movdqa xmm6, xmmword [0x14006c2d0]
test bl, 0x10
je 0x140048c8e
and ebx, 0xffffffef
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140048c84
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048c7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048c7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f2bc
movdqu xmmword [rbp - 0x80], xmm6
mov byte [rsp + 0x70], 0
test bl, 8
je 0x140048ce9
and ebx, 0xfffffff7
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140048cde
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048cd1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048cd1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f2bc
movdqa xmm6, xmmword [0x14006c2d0]
movdqu xmmword [rsp + 0x40], xmm6
mov byte [rsp + 0x30], 0
test bl, 4
je 0x140048d44
and ebx, 0xfffffffb
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140048d39
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048d2c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048d2c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f2bc
movdqa xmm6, xmmword [0x14006c2d0]
movdqu xmmword [rsp + 0x60], xmm6
mov byte [rsp + 0x50], 0
test bl, 2
je 0x140048d9b
and ebx, 0xfffffffd
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140048d92
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048d85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048d85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f2bc
movdqa xmm6, xmmword [0x14006c2d0]
movdqu xmmword [rbp - 0x60], xmm6
mov byte [rbp - 0x70], 0
test bl, 1
je 0x140048dde
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x140048dde
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048dd9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048dd9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f2bc
test dil, dil
je 0x140048f4d
movss xmm8, dword [0x14006c224]
andps xmm8, xmmword [0x14006c7c0]
movaps xmm12, xmm14
unpckhpd xmm12, xmm14
movaps xmm0, xmm12
subsd xmm0, qword [0x140078440]
cvtsd2ss xmm0, xmm0
movss xmm6, dword [0x14006c108]
movaps xmm1, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_powf
movaps xmm7, xmm0
movaps xmm0, xmm14
subsd xmm0, qword [0x140078438]
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 [0x140078448]
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 0x140048e6d
xorps xmm0, xmm0
sqrtss xmm0, xmm7
jmp 0x140048e75
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
cvtss2sd xmm0, xmm0
divsd xmm0, qword [0x14006c160]
xorps xmm3, xmm3
cvtsd2ss xmm3, xmm0
divss xmm3, xmm8
cvtps2pd xmm4, xmm3
movaps xmm8, xmm4
mulsd xmm8, qword [0x1400783e8]
movsd xmm2, qword [0x14006c168]
mulsd xmm8, xmm2
addsd xmm8, xmm14
movaps xmm7, xmm4
mulsd xmm7, qword [0x1400783f0]
mulsd xmm7, xmm2
addsd xmm7, xmm12
movss xmm1, dword [0x14006c270]
andps xmm1, xmmword [0x14006c7c0]
mulss xmm3, dword [0x14006c1c8]
mulss xmm1, dword [0x14006c0a8]
mulss xmm3, xmm1
cvtps2pd xmm6, xmm3
mulsd xmm4, qword [0x1400783f8]
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.140045a50
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.140045a50
movsd xmm8, qword [rax + 8]
movss xmm3, dword [0x1400783d0]
movsd xmm4, qword [0x14006c7e0]
ucomisd xmm12, xmm11
jp 0x140048f66
je 0x140048fd7
mov eax, dword [0x1400793c0]
movd xmm2, eax
cvtdq2pd xmm2, xmm2
comisd xmm12, xmm2
jbe 0x140048fac
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 0x140048fac
xorps xmm10, xmm10
comisd xmm2, xmm12
jbe 0x140048fd7
movaps xmm10, xmm12
subsd xmm10, xmm2
cvtps2pd xmm0, xmm3
divsd xmm10, xmm0
movaps xmm0, xmm10
addsd xmm0, xmm2
comisd xmm11, xmm0
jbe 0x140048fd7
xorps xmm10, xmm10
ucomisd xmm8, xmm11
jp 0x140048fe0
je 0x140049051
mov eax, dword [0x1400793e0]
movd xmm2, eax
cvtdq2pd xmm2, xmm2
comisd xmm8, xmm2
jbe 0x140049026
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 0x140049026
xorps xmm9, xmm9
comisd xmm2, xmm8
jbe 0x140049051
movaps xmm9, xmm8
subsd xmm9, xmm2
cvtps2pd xmm0, xmm3
divsd xmm9, xmm0
movaps xmm0, xmm9
addsd xmm0, xmm2
comisd xmm11, xmm0
jbe 0x140049051
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 0x1400490f2
movups xmm0, xmmword [0x140079300]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x140079310]
movsd qword [rax + 0x10], xmm1
mov edx, dword [0x140079318]
mov dword [rax + 0x18], edx
movzx edx, word [0x14007931c]
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.14005f050
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