Function at 0x140046c40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov rdi, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
test eax, eax
je 0x140046ee2
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rax, [rsp + 0x44]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140046c86
movabs rbp, 0x7fffffffffffffff
cmp rbx, rbp
ja 0x140046eee
cmp rbx, 0xf
ja 0x140046ce1
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], 0xf
mov r8, rbx
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x20], 0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x20]
jmp 0x140046d79
mov rax, rbx
or rax, 0xf
cmp rax, rbp
jbe 0x140046d1a
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140049ae4
test rax, rax
je 0x140046e7b
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140046d56
mov rbp, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rbp, rcx
lea rcx, [rbp + 1]
test rcx, rcx
jne 0x140046d36
xor esi, esi
jmp 0x140046d56
cmp rcx, 0x1000
jb 0x140046d4e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140046ef4
jmp 0x140046cfb
call fcn.140049ae4
mov rsi, rax
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov r8, rbx
lea rdx, [rsp + 0x44]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140046d86
mov rdx, qword [rdi]
lea rcx, [rsp + 0x20]
cmp rbp, 0xf
cmova rcx, rsi
cmp rbx, qword [rdi + 0x10]
jne 0x140046e50
mov r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140046e50
cmp rbp, 0xf
jbe 0x140046de5
lea rdx, [rbp + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140046ddc
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046e7b
mov rcx, rsi
call fcn.14004977c
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140046e1f
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140046e1a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140046edb
mov rcx, r8
call fcn.14004977c
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov eax, 1
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
cmp rbp, 0xf
jbe 0x140046e8b
lea rdx, [rbp + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140046e82
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046e82
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14004977c
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140046ec1
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140046ebc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140046edb
mov rcx, r8
call fcn.14004977c
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
xor eax, eax
jmp 0x140046e37
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140042e70
int3
call fcn.140042dd0
int3