Function at 0x100cdf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rsi, rcx
xor r12d, r12d
mov rdi, r12
mov qword [rax - 0x38], r12
mov rbx, r12
mov qword [rax + 0x20], rbx
mov dword [rcx], r12d
mov dword [rcx + 0x1078], r12d
mov qword [rax + 8], r12
lea rax, [rax + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x010015b8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100cec0
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x30], rdi
mov ebp, r12d
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x010015d8]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100ceb1
test eax, eax
cmove ebp, dword [rsp + 0x78]
mov eax, r12d
cmp ebp, 1
sete al
mov dword [rsi + 0x1078], eax
mov qword [rsp + 0x70], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x01001540]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d1b1
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x88], rax
lea rdx, [rsi + 0x10]
lea r8, [0x01001910]
lea rcx, [rsp + 0x88]
call fcn.0100cc70
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x010018f8]
mov rbx, qword [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100cf77
test eax, eax
jne 0x100cf77
mov eax, dword [rsp + 0x78]
mov dword [rsi + 0x30], eax
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x010018d8]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100cfd3
test eax, eax
jne 0x100cfd3
mov eax, r12d
cmp dword [rsp + 0x78], eax
setne al
mov dword [rsi + 0x20], eax
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x010018c0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100d02f
test eax, eax
jne 0x100d02f
mov eax, r12d
cmp dword [rsp + 0x78], eax
setne al
mov dword [rsi + 0x18], eax
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x010018a0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100d08b
test eax, eax
jne 0x100d08b
mov eax, r12d
cmp dword [rsp + 0x78], eax
setne al
mov dword [rsi + 0x1c], eax
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x01001880]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100d0e7
test eax, eax
jne 0x100d0e7
mov eax, r12d
cmp dword [rsp + 0x78], eax
setne al
mov dword [rsi + 0x28], eax
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x01001858]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100d143
test eax, eax
jne 0x100d143
mov eax, r12d
cmp dword [rsp + 0x78], eax
setne al
mov dword [rsi + 0x24], eax
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x01001838]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 4
jne 0x100d19f
test eax, eax
jne 0x100d19f
mov eax, r12d
cmp dword [rsp + 0x78], eax
setne al
mov dword [rsi + 0x2c], eax
cmp dword [rsi + 0x1c], 0
jne 0x100d1ab
cmp dword [rsi + 0x18], 0
je 0x100d1b1
mov dword [rsi], 1
test rbx, rbx
je 0x100d1c7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x88], r12
test rdi, rdi
je 0x100d1de
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x30], r12
xor eax, eax
jmp 0x100d1e0
xor eax, eax
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret