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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x570
mov rax, qword [0x100030180]
xor rax, rsp
mov qword [rsp + 0x560], rax
mov rax, qword [0x100030100]
xor r14d, r14d
mov r13d, ecx
lea rcx, [0x100030100]
mov qword [rsp + 0x60], r14
mov qword [r11 - 0x500], r14
mov qword [r11 - 0x508], r14
mov qword [r11 - 0x4d8], r14
mov dword [rsp + 0x50], r14d
call qword [rax + 0x18]
lea r9d, [r14 + 0x12]
lea rcx, [0x100012a70]
lea rdi, [rax + 0x18]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0xb8], r14d
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
lea ebp, [r14 + 0x20]
mov r12, 0xffffffff80000002
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x100016aeb
mov rsi, r14
jmp 0x100016b76
or qword [rsp + 0xc0], 0xffffffffffffffff
mov dword [rsp + 0x118], ebp
mov ebx, r14d
lea rax, [rsp + 0x118]
lea r8, [0x100012a70]
mov r9d, ebx
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
cmp eax, r14d
je 0x100016b42
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x118]
mov rcx, rsi
call fcn.100017d0c
cmp al, r14b
jne 0x100016b55
inc ebx
cmp ebx, ebp
jae 0x100016b55
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
jne 0x100016afe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rsi, qword [rsp + 0xc0]
cmp rsi, 0xffffffffffffffff
je 0x100016c95
xorpd xmm0, xmm0
lea r8, [rsp + 0xa8]
lea rdx, [0x100013730]
mov ebx, 4
mov rcx, r12
mov qword [rsp + 0xa8], r14
movsd qword [rsp + 0xf0], xmm0
mov dword [rsp + 0x54], 0x1f4
mov dword [rsp + 0xe0], r14d
mov dword [rsp + 0xe4], r14d
mov dword [rsp + 0xa0], ebx
mov dword [rsp + 0xe8], r14d
mov dword [rsp + 0xf8], r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0xa8]
cmp rcx, r14
je 0x100016c1c
lea rax, [rsp + 0xa0]
lea rdx, [0x100013768]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x54]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x54]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2206b8
mov rcx, rsi
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, r14d
je 0x100016c70
cmp dword [rsp + 0xe0], 1
sete bpl
jmp 0x100016c85
call fcn.1000176e8
cmp al, r14b
jne 0x100016c82
mov bpl, r14b
test bl, r13b
je 0x100016c85
mov bpl, 1
cmp rsi, r14
je 0x100016caf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100016caf
call fcn.1000176e8
mov ebx, 4
cmp al, r14b
jne 0x100016cac
mov bpl, r14b
test bl, r13b
je 0x100016caf
mov bpl, 1
xor edx, edx
lea rax, [rsp + 0x80]
lea r9, [0x1000139a8]
lea r8d, [rdx + 0x17]
lea rcx, [0x100013968]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rsp + 0x88]
cmp rcx, r14
je 0x100016cf1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x88], r14
mov rcx, qword [rsp + 0x80]
lea r9, [rsp + 0x88]
xor r8d, r8d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x20]
cmp eax, r14d
jne 0x100016d41
mov rcx, qword [rsp + 0x88]
lea rdx, [rsp + 0x140]
mov r8d, 0x104
call fcn.100017598
lea rcx, [rsp + 0x140]
xor edx, edx
mov r8d, 0x208
call fcn.10001f590
mov rcx, qword [rsp + 0x60]
cmp rcx, r14
je 0x100016d56
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x60], r14
lea r8, [rsp + 0x68]
lea rdx, [0x100013790]
mov rcx, r12
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x48], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x68]
cmp rcx, r14
je 0x100016e0d
lea rax, [rsp + 0x48]
lea rdx, [0x1000137c0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r14d
jne 0x100016e02
cmp bpl, r14b
je 0x100016dc9
cmp dword [rsp + 0x40], 2
je 0x100016e02
mov dword [rsp + 0x40], 2
jmp 0x100016dd8
cmp dword [rsp + 0x40], 1
je 0x100016e02
mov dword [rsp + 0x40], 1
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
lea rdx, [0x1000137c0]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x80]
xor edx, edx
lea r9, [rsp + 0xb0]
mov rax, qword [rcx]
lea r8d, [rdx + 1]
call qword [rax + 0x18]
cmp eax, r14d
jl 0x100017174
mov rcx, qword [rsp + 0xb0]
lea rdx, [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, r14d
jl 0x100017174
mov r12d, r14d
cmp dword [rsp + 0x50], r14d
jbe 0x100017174
mov rcx, qword [rsp + 0xb0]
lea r8, [rsp + 0x60]
mov edx, r12d
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x140]
mov r8d, 0x104
call fcn.100017598
lea rcx, [rsp + 0x350]
xor edx, edx
mov r8d, 0x104
mov edi, eax
call fcn.10001f590
lea r8, [0x100013790]
lea rcx, [rsp + 0x350]
or r9, 0xffffffffffffffff
mov edx, 0x104
call fcn.10001e56c
lea r8, [rsp + 0x162]
lea rcx, [rsp + 0x350]
mov edx, 0x104
call fcn.10001e65c
mov qword [rsp + 0x58], r14
cmp edi, 0x10
je 0x100016eeb
cmp edi, 0x50
jne 0x100017161
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x350]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x4c], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x58]
cmp rcx, r14
je 0x100016fa2
lea rax, [rsp + 0x4c]
lea rdx, [0x1000137c0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r14d
jne 0x100016f97
cmp bpl, r14b
je 0x100016f5e
cmp dword [rsp + 0x44], 2
je 0x100016f97
mov dword [rsp + 0x44], 2
jmp 0x100016f6d
cmp dword [rsp + 0x44], 1
je 0x100016f97
mov dword [rsp + 0x44], 1
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x58]
lea rdx, [0x1000137c0]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x44]
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x98], r14
cmp rcx, r14
je 0x100017161
mov rax, qword [rcx]
lea rdx, [rsp + 0x98]
call qword [rax + 0x28]
cmp eax, r14d
jl 0x100017161
mov rdx, qword [rsp + 0x98]
cmp rdx, r14
jne 0x100016fe1
mov ecx, r14d
jmp 0x100016ff3
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
lea rcx, [rsp + 0x70]
call fcn.100018708
mov rcx, qword [rsp + 0x98]
cmp rcx, r14
je 0x10001701b
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x98], r14
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x78], r14d
mov qword [rsp + 0x90], r14
mov dil, r14b
mov esi, r14d
call fcn.100016800
mov rcx, qword [rsp + 0x90]
cmp rcx, r14
je 0x100017062
lea rcx, [rsp + 0x90]
call fcn.100016640
mov rcx, qword [rsp + 0x90]
mov dil, al
jmp 0x100017067
mov esi, 0x80004005
cmp rcx, r14
je 0x100017072
mov rax, qword [rcx]
call qword [rax + 0x10]
call fcn.1000176e8
cmp esi, r14d
jl 0x100017161
cmp al, r14b
jne 0x10001711e
test bl, r13b
jne 0x10001711e
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x108]
call fcn.100017dec
lea r8, [rsp + 0x78]
lea rdx, [0x100012a30]
mov rcx, rax
call fcn.100015f74
cmp eax, r14d
jl 0x1000170dc
cmp dword [rsp + 0x78], r14d
sete dl
cmp dl, dil
je 0x1000170f8
mov qword [rsp + 0xd8], r14
lea rcx, [rsp + 0xd8]
jmp 0x1000170f3
cmp dil, r14b
je 0x1000170f8
mov qword [rsp + 0xc8], r14
xor edx, edx
lea rcx, [rsp + 0xc8]
call fcn.1000169e0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x110]
call fcn.100017dec
lea rdx, [0x100012a48]
xor r8d, r8d
mov rcx, rax
call fcn.100016060
jmp 0x100017161
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x100]
call fcn.100017dec
lea rdx, [0x100012a48]
mov r8d, 1
mov rcx, rax
call fcn.100016060
cmp dil, r14b
je 0x100017161
lea rcx, [rsp + 0xd0]
xor edx, edx
mov qword [rsp + 0xd0], r14
call fcn.1000169e0
inc r12d
cmp r12d, dword [rsp + 0x50]
jb 0x100016e5c
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x80]
cmp rcx, r14
je 0x10001718f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x80], r14
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r14d
jg 0x1000171ab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.10001e0c0
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret