Function at 0x180002080
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0xc8]
sub rsp, 0x1b0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x68], 7
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
lea r8d, [r12 + 7]
lea rdx, [0x18002f958]
lea rcx, [rsp + 0x50]
call fcn.180005cb0
nop
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call fcn.180001d70
nop
cmp qword [rsp + 0x68], 8
jb 0x180002103
mov rcx, qword [rsp + 0x50]
call fcn.180012658
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.180004910
nop
cmp qword [rbp + 0x48], 0
je 0x1800022ec
mov rcx, qword [rbp - 0x60]
movsxd rax, dword [rcx + 4]
test byte [rbp + rax - 0x50], 6
jne 0x180002151
mov rcx, qword [rbp + rax - 0x18]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x78]
call qword [rax + 0x50]
mov rcx, qword [rbp - 0x60]
jmp 0x180002165
mov rax, qword [0x18002b9d0]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], r12
mov dword [rbp - 0x78], r12d
movsxd rax, dword [rcx + 4]
test byte [rbp + rax - 0x50], 6
jne 0x1800021ca
movsxd rax, dword [rcx + 4]
mov rcx, qword [rbp + rax - 0x18]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
call qword [rax + 0x50]
movsxd r11, dword [rsp + 0x58]
add r11, qword [rsp + 0x50]
cmp r11, qword [0x18002b9d0]
jne 0x1800021ca
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx - 0x60]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1800021c2
or edx, 4
xor r8d, r8d
call fcn.180001630
movsxd rdx, dword [rbp - 0x80]
add rdx, qword [rsp + 0x78]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
lea rcx, [rsp + 0x50]
call fcn.1800064e0
nop
movsxd r8, dword [rbp - 0x80]
add r8, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.1800044f0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
add rdx, rax
test byte [rdx + 0x10], 6
cmovne rdx, r12
test rdx, rdx
je 0x1800022aa
cmp qword [rdi + 0x18], 8
jb 0x18000222c
mov rdi, qword [rdi]
mov qword [rsp + 0x40], r12
lea rax, [rbp + 0xe8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1800022aa
mov rax, qword [rsp + 0x58]
sub rax, rbx
cmp qword [rsi + 0x18], 8
jb 0x18000227b
mov rsi, qword [rsi]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 0x50]
call fcn.180005fe0
test rax, rax
jne 0x1800022de
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx - 0x60]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1800022d5
or edx, 4
xor r8d, r8d
call fcn.180001630
nop
test rbx, rbx
je 0x1800022ec
mov rcx, rbx
call fcn.180012658
nop
lea rcx, [rbp + 0x50]
call fcn.180004a60
lea r11, vtable.std::ios_base.0
mov qword [rbp + 0x50], r11
lea rcx, [rbp + 0x50]
call fcn.18000dc4c
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret