Function at 0x140012400
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x158]
sub rsp, 0x258
mov qword [rbp - 0x50], 0xfffffffffffffffe
movaps xmmword [rsp + 0x240], xmm6
mov rax, qword [0x1400710e0]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov ebx, r9d
movapd xmm6, xmm2
mov r14d, edx
mov r13, rcx
mov byte [rsp + 0x30], 0
call fcn.140010350
cmp ebx, 0xffffffff
jne 0x140012460
mov ebx, dword [r13 + 0xda8]
mov r12d, dword [rbp + 0x1c0]
cmp r12d, 0xffffffff
jne 0x14001247b
mov r12d, dword [r13 + 0xdac]
mov dword [rbp + 0x1c0], r12d
xor edi, edi
mov qword [rsp + 0x50], rdi
lea ecx, [rdi + 0x20]
call fcn.140024200
test rax, rax
je 0x140012a05
mov qword [rsp + 0x48], rax
mov qword [rax], rax
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x10], rax
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x1c], 1
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x1d], 1
lea r8, [rsp + 0x40]
mov edx, ebx
lea rcx, [r13 + 0xcb8]
call fcn.14001c4a0
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rdi]
cmp rsi, rdi
je 0x14001292b
xor ebx, ebx
nop word [rax + rax]
mov qword [rsp + 0x70], rbx
mov ecx, 0x20
call fcn.140024200
test rax, rax
je 0x1400128fe
mov qword [rsp + 0x68], rax
mov qword [rax], rax
mov rax, qword [rsp + 0x68]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x68]
mov qword [rax + 0x10], rax
mov rax, qword [rsp + 0x68]
mov byte [rax + 0x1c], 1
mov rax, qword [rsp + 0x68]
mov byte [rax + 0x1d], 1
lea r9, [rsp + 0x60]
mov r8d, r12d
mov edx, dword [rsi + 0x18]
lea rcx, [r13 + 0xcb8]
call fcn.14001c850
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1400127b3
xor r12d, r12d
nop
xor r9d, r9d
mov r8d, dword [rbx + 0x18]
mov edx, dword [rsi + 0x18]
mov rcx, r13
call fcn.140013b20
mov rdi, rax
test rax, rax
je 0x140012750
mov r8d, r14d
lea rdx, str.Param_u
lea rcx, [rbp + 0x110]
call fcn.14001de80
movsd qword [rsp + 0x38], xmm6
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, [rbp + 0x110]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete byte [rsp + 0x30]
mov edx, dword [rsi + 0x18]
cmp edx, dword [r13 + 0xda8]
jne 0x140012750
mov r8d, dword [rbx + 0x18]
cmp r8d, dword [r13 + 0xdac]
jne 0x140012750
mov edi, r12d
mov dword [rsp + 0x38], r12d
mov rax, qword [r13]
lea r9, [rsp + 0x38]
mov rcx, r13
call qword [rax + 0xe8]
mov r9d, dword [rsp + 0x38]
test r9d, r9d
je 0x14001273f
lea rax, vtable.CMaxxAudioPreset.0
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], r12
mov byte [rbp - 0x28], dil
mov qword [rbp + 0x18], 0xf
mov qword [rbp + 0x10], r12
mov byte [rbp], dil
mov qword [rbp + 0x40], 0xf
mov qword [rbp + 0x38], r12
mov byte [rbp + 0x28], dil
mov qword [rbp + 0x68], 0xf
mov qword [rbp + 0x60], r12
mov byte [rbp + 0x50], dil
mov qword [rbp + 0x90], r12
mov qword [rbp + 0x98], r12
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0xc0], r12
mov qword [rbp + 0xd0], r12
mov qword [rbp + 0xd8], r12
mov qword [rbp + 0xe0], r12
mov qword [rbp + 0xf0], r12
mov qword [rbp + 0xf8], r12
mov qword [rbp + 0x100], r12
mov qword [rbp + 0x78], 0xffffffffffffffff
mov dword [rbp + 0x84], r12d
mov word [rbp + 0x80], r12w
mov byte [rbp + 0x88], dil
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r8d, dword [rbx + 0x18]
mov edx, dword [rsi + 0x18]
lea rcx, [r13 + 0xcb8]
call fcn.14001c390
or r11d, 0xffffffff
mov eax, r12d
mov rdx, qword [rbp + 0x98]
mov rcx, qword [rbp + 0x90]
sub rdx, rcx
sar rdx, 2
nop dword [rax + rax]
cmp eax, edx
jge 0x140012728
cmp dword [rcx], r14d
cmove r11d, eax
inc eax
add rcx, 4
test r11d, r11d
js 0x140012710
jmp 0x14001272d
test r11d, r11d
js 0x140012732
mov edi, 1
lea rcx, [rbp - 0x30]
call fcn.14001ace0
test edi, edi
jne 0x140012750
mov rax, qword [r13]
movapd xmm2, xmm6
mov edx, r14d
mov rcx, r13
call qword [rax + 0x18]
cmp byte [rbx + 0x1d], 0
jne 0x14001279e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x1d], 0
jne 0x14001277e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
jne 0x14001279e
nop dword [rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
je 0x140012770
jmp 0x14001279e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x1d], 0
jne 0x14001279b
cmp rbx, qword [rax + 0x10]
jne 0x14001279b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x1d], 0
je 0x140012788
mov rbx, rax
mov rdi, qword [rsp + 0x68]
cmp rbx, rdi
jne 0x140012560
mov r12d, dword [rbp + 0x1c0]
mov rbx, qword [rdi]
cmp rbx, rbx
jne 0x140012821
mov r12, qword [rdi + 8]
mov rbx, r12
cmp byte [r12 + 0x1d], 0
jne 0x1400127f7
nop word [rax + rax]
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x60]
call fcn.140016930
mov rbx, qword [rbx]
mov rcx, r12
call fcn.140023c7c
mov r12, rbx
cmp byte [rbx + 0x1d], 0
je 0x1400127d0
mov rdi, qword [rsp + 0x68]
mov qword [rdi + 8], rdi
mov rax, qword [rsp + 0x68]
mov qword [rax], rax
mov rax, qword [rsp + 0x68]
mov qword [rax + 0x10], rax
xor ebx, ebx
mov qword [rsp + 0x70], rbx
mov rdi, qword [rsp + 0x68]
mov r12d, dword [rbp + 0x1c0]
jmp 0x140012898
cmp rbx, rdi
je 0x140012896
mov r8, rbx
cmp byte [rbx + 0x1d], 0
jne 0x14001287e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x1d], 0
jne 0x14001285e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
jne 0x14001287e
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
je 0x140012850
jmp 0x14001287e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x1d], 0
jne 0x14001287b
cmp rbx, qword [rax + 0x10]
jne 0x14001287b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x1d], 0
je 0x140012868
mov rbx, rax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140016420
cmp rbx, rdi
jne 0x140012826
mov rdi, qword [rsp + 0x68]
xor ebx, ebx
mov rcx, rdi
call fcn.140023c7c
cmp byte [rsi + 0x1d], 0
jne 0x1400128ee
mov rax, qword [rsi + 0x10]
cmp byte [rax + 0x1d], 0
jne 0x1400128ce
mov rsi, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
jne 0x1400128ee
nop dword [rax]
mov rsi, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
je 0x1400128c0
jmp 0x1400128ee
mov rax, qword [rsi + 8]
cmp byte [rax + 0x1d], 0
jne 0x1400128eb
cmp rsi, qword [rax + 0x10]
jne 0x1400128eb
mov rsi, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x1d], 0
je 0x1400128d8
mov rsi, rax
mov rdi, qword [rsp + 0x48]
cmp rsi, rdi
jne 0x1400124f0
jmp 0x14001292b
mov qword [rbp - 0x70], rbx
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x48]
call fcn.140023d74
lea r11, vtable.std::bad_alloc.0
mov qword [rbp - 0x48], r11
lea rdx, [0x14006f580]
lea rcx, [rbp - 0x48]
call fcn.140026c1c
nop
mov rbx, qword [rdi]
cmp rbx, rbx
jne 0x140012987
mov rsi, qword [rdi + 8]
mov rbx, rsi
cmp byte [rsi + 0x1d], 0
jne 0x140012967
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x40]
call fcn.140016930
mov rbx, qword [rbx]
mov rcx, rsi
call fcn.140023c7c
mov rsi, rbx
cmp byte [rbx + 0x1d], 0
je 0x140012940
mov rdi, qword [rsp + 0x48]
mov qword [rdi + 8], rdi
mov rax, qword [rsp + 0x48]
mov qword [rax], rax
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x50], 0
jmp 0x1400129f1
cmp rbx, rdi
je 0x1400129f6
nop dword [rax]
mov r8, rbx
cmp byte [rbx + 0x1d], 0
jne 0x1400129de
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x1d], 0
jne 0x1400129be
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
jne 0x1400129de
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
je 0x1400129b0
jmp 0x1400129de
mov rax, qword [rbx + 8]
cmp byte [rax + 0x1d], 0
jne 0x1400129db
cmp rbx, qword [rax + 0x10]
jne 0x1400129db
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x1d], 0
je 0x1400129c8
mov rbx, rax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140016420
cmp rbx, rdi
jne 0x140012990
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call fcn.140023c7c
movzx eax, byte [rsp + 0x30]
jmp 0x140012a32
mov qword [rbp - 0x78], rdi
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x68]
call fcn.140023d74
lea r11, vtable.std::bad_alloc.0
mov qword [rbp - 0x68], r11
lea rdx, [0x14006f580]
lea rcx, [rbp - 0x68]
call fcn.140026c1c
int3
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140023ca0
movaps xmm6, xmmword [rsp + 0x240]
add rsp, 0x258
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret