Function at 0x14000d814
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov esi, r8d
mov r12, rdx
mov r14, rcx
cmp rcx, qword [0x140179b18]
jne 0x14000d855
mov eax, 0xa0
jmp 0x14000dc3e
mov eax, dword [0x140131910]
cmp eax, 0xffffffff
jne 0x14000d867
movzx eax, byte [0x140179b0c]
xor r15d, r15d
test eax, eax
jne 0x14000dc3c
call fcn.14008d0c8
test eax, eax
jne 0x14000dc3c
mov dl, 1
mov rcx, r14
call fcn.14000dc58
test al, al
jne 0x14000dc3c
mov ebx, r15d
mov qword [rsp + 0x48], rbx
mov dword [rbp + 0x28], r15d
mov dword [rsp + 0x30], r15d
mov dil, r15b
mov byte [rbp + 0x10], r15b
cmp dword [0x140179b10], r15d
je 0x14000d8c7
mov dil, 1
mov byte [rbp + 0x10], dil
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
movzx r9d, word [r14 + 0x18]
shr r9d, 1
and r9d, 0x10
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rcx, qword [r14 + 0x10]
call fcn.14000df5c
test eax, eax
jne 0x14000dacb
mov r13, qword [rsp + 0x38]
mov r15, qword [rsp + 0x40]
xor edx, edx
test r15, r15
mov rcx, r15
jne 0x14000d915
mov rcx, qword [r13]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x14000d99c
mov eax, dword [rbp + 0x28]
test eax, eax
je 0x14000da36
mov ecx, eax
xor edx, edx
call fcn.14002d1f4
mov rsi, rax
test rax, rax
je 0x14000da31
test rbx, rbx
je 0x14000d967
mov rcx, rbx
call fcn.14002d25c
mov rbx, rsi
mov qword [rsp + 0x48], rbx
test r15, r15
jne 0x14000d978
mov r15, qword [r13]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0x3f2
je 0x14000d9b5
cmp esi, 0x3fa
je 0x14000d9b5
cmp esi, 6
jne 0x14000da36
movsxd rcx, esi
mov edx, 0x1c0454
call fcn.14002ce80
mov edx, 0x1c0497
xor ecx, ecx
call fcn.14002ce80
mov r11, qword [r14 + 0x10]
movzx eax, word [r11 + 0xa]
and eax, 0xf
lea rax, [rax + rax*2]
xor r15d, r15d
lea rcx, [0x140131920]
mov qword [rcx + rax*8], r15
mov rdx, r13
lea rcx, [0x140179b20]
call fcn.14000d200
mov qword [rsp + 0x38], r15
movzx r9d, word [r14 + 0x18]
shr r9d, 1
and r9d, 0x10
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rcx, qword [r14 + 0x10]
call fcn.14000df5c
test eax, eax
jne 0x14000dac8
jmp 0x14000d8fd
mov esi, 8
mov rdx, r13
lea rcx, [0x140179b20]
call fcn.14000d0d4
xor r15d, r15d
test esi, esi
jne 0x14000dac8
test rbx, rbx
je 0x14000dac8
movzx eax, word [r14 + 0x18]
and eax, 0xf
cmp dword [rsp + 0x30], eax
jne 0x14000db2d
dec eax
cmp eax, 1
ja 0x14000da9f
mov eax, dword [rbp + 0x28]
shr eax, 1
mov word [rbx + rax*2 - 2], r15w
mov rax, rbx
mov r8, r12
sub r8, rbx
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x14000da92
add rax, 2
test edx, edx
jne 0x14000da7e
test ecx, ecx
je 0x14000dc0f
jmp 0x14000db2d
mov r13d, dword [rbp + 0x20]
cmp dword [rbp + 0x28], r13d
jne 0x14000db31
mov r8d, dword [rbp + 0x28]
mov rdx, r12
mov rcx, rbx
call sub.MSVCR100.dll_memcmp
test eax, eax
jne 0x14000db31
mov esi, r15d
jmp 0x14000dc0f
mov esi, dword [rbp + 0x20]
movabs rax, 0xcccccccccccccccc
cmp qword [r14 + 8], rax
je 0x14000db2d
movzx eax, word [r14 + 0x18]
and eax, 0xf
jle 0x14000db10
cmp eax, 2
jle 0x14000db0a
cmp eax, 4
je 0x14000db00
cmp eax, 0xb
jne 0x14000db10
mov eax, dword [r14 + 8]
cmp qword [r12], rax
jne 0x14000db2d
jmp 0x14000dac0
mov eax, dword [r14 + 8]
cmp dword [r12], eax
jmp 0x14000dafc
cmp qword [r14 + 8], r12
jmp 0x14000dafc
mov ecx, 0x1c0499
call fcn.14002cdf4
mov r8d, esi
mov rdx, qword [r14 + 8]
mov rcx, r12
call sub.MSVCR100.dll_memcmp
test eax, eax
jmp 0x14000dafc
mov r13d, dword [rbp + 0x20]
movzx r9d, word [r14 + 0x18]
and r9d, 0x20
or r9d, 8
mov qword [rsp + 0x20], r15
shr r9d, 1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rcx, qword [r14 + 0x10]
call fcn.14000df5c
test eax, eax
mov esi, eax
jne 0x14000dc0f
mov r15, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x14000db75
mov rcx, qword [r15]
movzx r9d, word [r14 + 0x18]
and r9d, 0xf
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov rdx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movsxd rsi, eax
cmp esi, 0x3f2
je 0x14000dbac
cmp esi, 0x3fa
je 0x14000dbac
cmp esi, 6
jne 0x14000dbfd
mov rcx, rsi
mov edx, 0x1c0454
call fcn.14002ce80
mov edx, 0x1c049a
xor ecx, ecx
call fcn.14002ce80
mov r11, qword [r14 + 0x10]
movzx eax, word [r11 + 0xa]
and eax, 0xf
lea rax, [rax + rax*2]
lea rcx, [0x140131920]
and qword [rcx + rax*8], 0
mov rdx, r15
lea rcx, [0x140179b20]
call fcn.14000d200
xor r15d, r15d
mov qword [rsp + 0x38], r15
jmp 0x14000db31
mov rdx, r15
lea rcx, [0x140179b20]
call fcn.14000d0d4
xor r15d, r15d
cmp dword [0x140179b10], r15d
je 0x14000dc2b
test dil, dil
je 0x14000dc2b
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
test rbx, rbx
je 0x14000dc38
mov rcx, rbx
call fcn.14002d25c
mov eax, esi
jmp 0x14000dc3e
xor eax, eax
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret