Function at 0x1000176e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
sub rsp, 0x2b0
mov rax, qword [0x100030180]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x40], 0
and dword [rsp + 0x30], 0
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x58]
xor edi, edi
lea r9, [0x1000139a8]
lea rcx, [0x100013968]
lea r8d, [rdi + 0x17]
xor edx, edx
xor sil, sil
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x100017771
mov rax, qword [rcx]
call qword [rax + 0x10]
and qword [rsp + 0x38], rdi
mov rcx, qword [rsp + 0x58]
xor edx, edx
lea r9, [rsp + 0x40]
mov rax, qword [rcx]
lea r8d, [rdx + 9]
call qword [rax + 0x18]
mov r13d, 1
test eax, eax
js 0x100017804
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x100017804
xor ebx, ebx
cmp dword [rsp + 0x30], ebx
jbe 0x100017804
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
mov edx, ebx
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x90]
mov r8d, 0x104
call fcn.100017598
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8d, 0x208
mov ebp, eax
call fcn.10001f590
cmp ebp, 0x50
je 0x1000177f8
cmp ebp, 0x10
jne 0x1000177fb
add edi, r13d
add ebx, r13d
cmp ebx, dword [rsp + 0x30]
jb 0x1000177ad
and qword [rsp + 0x78], 0
lea r8, [rsp + 0x78]
lea rdx, [0x100013730]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x48], 0x1f4
mov dword [rsp + 0x80], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x100017875
lea rax, [rsp + 0x80]
lea rdx, [0x100013768]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, r13d
jbe 0x1000179cd
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x10001789e
mov rax, qword [rcx]
call qword [rax + 0x10]
and qword [rsp + 0x38], 0
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x40]
mov r8d, r13d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x18]
test eax, eax
js 0x1000179cd
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x1000179cd
xor edi, edi
cmp dword [rsp + 0x30], edi
jbe 0x1000179cd
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
mov edx, edi
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x38]
xor r11d, r11d
mov qword [rsp + 0x60], r11
mov qword [rsp + 0x68], r11
mov qword [rsp + 0x70], r11
test rcx, rcx
je 0x10001799f
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
xor edx, edx
call qword [rax + 0x20]
test eax, eax
jne 0x10001799f
lea rcx, [rsp + 0x60]
call qword [sym.imp.ole32.dll_PropVariantClear]
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [0x1000129e8]
call qword [rax + 0x28]
test eax, eax
js 0x10001799f
cmp word [rsp + 0x60], 0x13
jne 0x10001799f
mov ebx, dword [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ole32.dll_PropVariantClear]
cmp ebx, 0x50
jne 0x10001799f
lea rcx, [rsp + 0x60]
call qword [sym.imp.ole32.dll_PropVariantClear]
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [0x100013a28]
call qword [rax + 0x28]
test eax, eax
js 0x10001799f
cmp word [rsp + 0x60], 0x13
jne 0x10001799f
cmp dword [rsp + 0x68], 3
movzx esi, sil
cmove esi, r13d
lea rcx, [rsp + 0x60]
call qword [sym.imp.ole32.dll_PropVariantClear]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1000179c0
mov rax, qword [rcx]
call qword [rax + 0x10]
and qword [rsp + 0x50], 0
add edi, r13d
cmp edi, dword [rsp + 0x30]
jb 0x1000178df
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1000179dd
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov al, sil
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.10001e0c0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret