Function at 0x140012e20
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov r15d, r9d
mov r12d, r8d
mov ebx, edx
mov r13, rcx
mov r14b, 1
call fcn.140010350
cmp ebx, 0xffffffff
jne 0x140012e6b
mov ebx, dword [r13 + 0xda8]
cmp r12d, 0xffffffff
jne 0x140012e7c
mov r12d, dword [r13 + 0xdac]
mov dword [rbp + 0x77], r12d
xor edi, edi
mov qword [rbp - 0x59], rdi
lea ecx, [rdi + 0x20]
call fcn.140024200
test rax, rax
je 0x140013282
mov qword [rbp - 0x61], rax
mov qword [rax], rax
mov rax, qword [rbp - 0x61]
mov qword [rax + 8], rax
mov rax, qword [rbp - 0x61]
mov qword [rax + 0x10], rax
mov rax, qword [rbp - 0x61]
mov byte [rax + 0x1c], 1
mov rax, qword [rbp - 0x61]
mov byte [rax + 0x1d], 1
lea r8, [rbp - 0x69]
mov edx, ebx
lea rbx, [r13 + 0xcb8]
mov rcx, rbx
call fcn.14001c4a0
mov rdi, qword [rbp - 0x61]
mov rsi, qword [rdi]
cmp rsi, rdi
je 0x1400131a1
nop
xor edi, edi
mov qword [rbp - 0x39], rdi
lea ecx, [rdi + 0x20]
call fcn.140024200
test rax, rax
je 0x140013174
mov qword [rbp - 0x41], rax
mov qword [rax], rax
mov rax, qword [rbp - 0x41]
mov qword [rax + 8], rax
mov rax, qword [rbp - 0x41]
mov qword [rax + 0x10], rax
mov rax, qword [rbp - 0x41]
mov byte [rax + 0x1c], 1
mov rax, qword [rbp - 0x41]
mov byte [rax + 0x1d], 1
lea r9, [rbp - 0x49]
mov r8d, r12d
mov edx, dword [rsi + 0x18]
mov rcx, rbx
call fcn.14001c850
mov rdi, qword [rbp - 0x41]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14001303b
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 0x140012fd6
mov dword [rbp + 0x6f], r15d
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov r11d, dword [r13 + 0xda8]
cmp dword [rsi + 0x18], r11d
jne 0x140012fd9
mov eax, dword [r13 + 0xdac]
cmp dword [rbx + 0x18], eax
jne 0x140012fd9
xor r9d, r9d
mov r8, rdi
xor edx, edx
mov rcx, r13
call fcn.1400140f0
test eax, eax
je 0x140012fd9
mov rcx, qword [r13 + 0xdd0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [r13 + 0xdb0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x140012fd9
xor r14b, r14b
cmp byte [rbx + 0x1d], 0
jne 0x14001302e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x1d], 0
jne 0x14001300e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
jne 0x14001302e
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
je 0x140013000
jmp 0x14001302e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x1d], 0
jne 0x14001302b
cmp rbx, qword [rax + 0x10]
jne 0x14001302b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x1d], 0
je 0x140013018
mov rbx, rax
mov rdi, qword [rbp - 0x41]
cmp rbx, rdi
jne 0x140012f40
mov rbx, qword [rdi]
cmp rbx, rbx
jne 0x140013098
mov r12, qword [rdi + 8]
mov rbx, r12
cmp byte [r12 + 0x1d], 0
jne 0x140013077
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x49]
call fcn.140016930
mov rbx, qword [rbx]
mov rcx, r12
call fcn.140023c7c
mov r12, rbx
cmp byte [rbx + 0x1d], 0
je 0x140013052
mov rdi, qword [rbp - 0x41]
mov qword [rdi + 8], rdi
mov rax, qword [rbp - 0x41]
mov qword [rax], rax
mov rax, qword [rbp - 0x41]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x39], 0
mov r12d, dword [rbp + 0x77]
jmp 0x140013100
cmp rbx, rdi
je 0x140013104
nop dword [rax]
mov r8, rbx
cmp byte [rbx + 0x1d], 0
jne 0x1400130ee
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x1d], 0
jne 0x1400130ce
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
jne 0x1400130ee
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
je 0x1400130c0
jmp 0x1400130ee
mov rax, qword [rbx + 8]
cmp byte [rax + 0x1d], 0
jne 0x1400130eb
cmp rbx, qword [rax + 0x10]
jne 0x1400130eb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x1d], 0
je 0x1400130d8
mov rbx, rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x49]
call fcn.140016420
cmp rbx, rdi
jne 0x1400130a0
mov rdi, qword [rbp - 0x41]
mov rcx, rdi
call fcn.140023c7c
cmp byte [rsi + 0x1d], 0
jne 0x14001315e
mov rax, qword [rsi + 0x10]
cmp byte [rax + 0x1d], 0
jne 0x14001313e
mov rsi, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
jne 0x14001315e
nop dword [rax + rax]
mov rsi, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
je 0x140013130
jmp 0x14001315e
mov rax, qword [rsi + 8]
cmp byte [rax + 0x1d], 0
jne 0x14001315b
cmp rsi, qword [rax + 0x10]
jne 0x14001315b
mov rsi, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x1d], 0
je 0x140013148
mov rsi, rax
mov rdi, qword [rbp - 0x61]
cmp rsi, rdi
lea rbx, [r13 + 0xcb8]
jne 0x140012ee0
jmp 0x1400131a1
mov qword [rbp - 0x19], rdi
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.140023d74
lea r11, vtable.std::bad_alloc.0
mov qword [rbp + 7], r11
lea rdx, [0x14006f580]
lea rcx, [rbp + 7]
call fcn.140026c1c
nop
mov rbx, qword [rdi]
cmp rbx, rbx
jne 0x140013202
mov rsi, qword [rdi + 8]
mov rbx, rsi
cmp byte [rsi + 0x1d], 0
jne 0x1400131e5
nop word [rax + rax]
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x69]
call fcn.140016930
mov rbx, qword [rbx]
mov rcx, rsi
call fcn.140023c7c
mov rsi, rbx
cmp byte [rbx + 0x1d], 0
je 0x1400131c0
mov rdi, qword [rbp - 0x61]
mov qword [rdi + 8], rdi
mov rax, qword [rbp - 0x61]
mov qword [rax], rax
mov rax, qword [rbp - 0x61]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x59], 0
jmp 0x140013270
cmp rbx, rdi
je 0x140013274
mov r8, rbx
cmp byte [rbx + 0x1d], 0
jne 0x14001325e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x1d], 0
jne 0x14001323e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
jne 0x14001325e
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x1d], 0
je 0x140013230
jmp 0x14001325e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x1d], 0
jne 0x14001325b
cmp rbx, qword [rax + 0x10]
jne 0x14001325b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x1d], 0
je 0x140013248
mov rbx, rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x69]
call fcn.140016420
cmp rbx, rdi
jne 0x140013207
mov rdi, qword [rbp - 0x61]
mov rcx, rdi
call fcn.140023c7c
movzx eax, r14b
jmp 0x1400132af
mov qword [rbp - 0x21], rdi
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x11]
call fcn.140023d74
lea r11, vtable.std::bad_alloc.0
mov qword [rbp - 0x11], r11
lea rdx, [0x14006f580]
lea rcx, [rbp - 0x11]
call fcn.140026c1c
int3
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret