Function at 0x1009078
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x8f0
mov rax, qword [0x0101c380]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
or qword [rsp + 0x38], 0xffffffffffffffff
xor ebx, ebx
mov r13, r9
mov r14, r8
mov r12, rdx
mov rsi, rcx
test rcx, rcx
je 0x1009408
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x4e0]
sub rdx, rcx
mov al, byte [rcx]
mov byte [rdx + rcx], al
inc rcx
test al, al
jne 0x10090cf
lea rcx, [rsp + 0x4e0]
mov edx, 0x5c
call fcn.01014e78
mov rdi, rax
test rax, rax
je 0x10090fb
mov byte [rax], 0
inc rdi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x4e0]
call fcn.01007f88
test eax, eax
je 0x10093fc
and qword [rsp + 0x20], 0
xor r9d, r9d
lea rcx, [rsp + 0x50]
lea r8d, [r9 + 1]
mov edx, 0x20019
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKeyExA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x10093fc
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10093fc
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x10093fc
or qword [rsp + 0x48], 0xffffffffffffffff
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea rdx, [0x01006b88]
xor r8d, r8d
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10091d0
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x10091c3
cmp eax, 2
je 0x10091c3
cmp eax, 7
jne 0x10091d0
mov eax, dword [rsp + 0x30]
dec eax
mov byte [rsp + rax + 0x60], 0
jmp 0x10091d5
mov byte [rsp + 0x60], 0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1009210
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x1009210
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10092b1
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xe0]
lea rdx, [0x01006b20]
xor r8d, r8d
mov dword [rsp + 0x30], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10093eb
mov eax, dword [rsp + 0x44]
cmp eax, 1
je 0x1009268
cmp eax, 2
je 0x1009268
cmp eax, 7
jne 0x10093eb
mov eax, dword [rsp + 0x30]
lea rdx, [0x01006f88]
lea rcx, [rsp + 0xe0]
dec eax
mov byte [rsp + rax + 0xe0], 0
call fcn.0101402c
test eax, eax
je 0x10093f3
lea rdx, [0x01006f94]
lea rcx, [rsp + 0x60]
mov r8d, 3
call fcn.010141ec
test eax, eax
jne 0x10093f3
mov ebx, 1
mov edx, 0x408
mov rcx, rbx
call fcn.01012368
mov rcx, r12
lea rdx, [rax + 8]
mov r11, rax
sub rdx, r12
mov al, byte [rcx]
mov byte [rdx + rcx], al
add rcx, rbx
test al, al
jne 0x10092d0
xor eax, eax
or rdx, 0xffffffffffffffff
lea rdi, [r11 + 8]
mov rcx, rdx
repne scasb al, byte [rdi]
mov eax, dword [0x01006f98]
mov rcx, rdx
sub rdi, rbx
lea rdx, [rsp + 0x60]
mov dword [rdi], eax
movzx eax, word [0x01006f9c]
mov word [rdi + 4], ax
xor eax, eax
lea rdi, [r11 + 8]
repne scasb al, byte [rdi]
sub rdi, rbx
xor ecx, ecx
mov al, byte [rdx + rcx]
mov byte [rdi + rcx], al
add rcx, rbx
test al, al
jne 0x1009316
mov rax, qword [r13]
lea rcx, [rsp + 0x60]
mov edx, 0x2e
mov qword [r11], rax
mov qword [r13], r11
call fcn.01014e78
mov byte [rax], 0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x60]
lea rdx, [0x01006880]
repne scasb al, byte [rdi]
sub rdi, rbx
xor ecx, ecx
mov al, byte [rdx + rcx]
mov byte [rdi + rcx], al
add rcx, rbx
test al, al
jne 0x1009359
mov edx, 0x408
mov rcx, rbx
call fcn.01012368
mov rcx, r12
lea rdx, [rax + 8]
mov r11, rax
sub rdx, r12
mov al, byte [rcx]
mov byte [rdx + rcx], al
add rcx, rbx
test al, al
jne 0x1009380
xor eax, eax
or rdx, 0xffffffffffffffff
lea rdi, [r11 + 8]
mov rcx, rdx
repne scasb al, byte [rdi]
mov eax, dword [0x01006f98]
mov rcx, rdx
sub rdi, rbx
lea rdx, [rsp + 0x60]
mov dword [rdi], eax
movzx eax, word [0x01006f9c]
mov word [rdi + 4], ax
xor eax, eax
lea rdi, [r11 + 8]
repne scasb al, byte [rdi]
sub rdi, rbx
xor ecx, ecx
mov al, byte [rdx + rcx]
mov byte [rdi + rcx], al
add rcx, rbx
test al, al
jne 0x10093c6
mov rax, qword [r13]
mov qword [r11], rax
mov rcx, qword [rsp + 0x38]
mov qword [r13], r11
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10093f3
mov byte [rsp + 0xe0], 0
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x10090c0
mov eax, ebx
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.0100f170
lea r11, [rsp + 0x8f0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret