Function at 0x1000f0980
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xc0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov r13, rdx
mov rsi, rcx
lea rbx, [0x100153eb8]
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x1000f09d8
test byte [rcx + 0x1c], 1
je 0x1000f09d8
cmp byte [rcx + 0x19], 5
jb 0x1000f09d8
mov edx, 0x1d
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100034784
mov rcx, r13
call fcn.10008bac8
mov edi, 0x54f
mov rdx, qword [rsi + 8]
cmp dword [rdx - 0x10], 0
je 0x1000f0ffb
and qword [rsp + 0x78], 0
and qword [rsp + 0x80], 0
and qword [rsp + 0x88], 0
lea rcx, [rsp + 0x78]
call fcn.1000f19d4
mov edi, eax
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x1000f0a47
test byte [rcx + 0x1c], 2
je 0x1000f0a47
cmp byte [rcx + 0x19], 4
jb 0x1000f0a47
mov edx, 0x1e
mov r9d, eax
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
and qword [rsp + 0x40], 0
and dword [rsp + 0x48], 0
and dword [rsp + 0x4c], 0
test edi, edi
jne 0x1000f0fe0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.1000e55c4
mov edi, eax
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x1000f0aa0
test byte [rcx + 0x1c], 2
je 0x1000f0aa0
cmp byte [rcx + 0x19], 4
jb 0x1000f0aa0
mov edx, 0x1f
mov r9d, eax
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
test edi, edi
jne 0x1000f0fe0
xor ebp, ebp
mov eax, dword [rsp + 0x48]
test eax, eax
jle 0x1000f0fe0
xor r12d, r12d
or r15d, 0xffffffff
xor esi, esi
mov qword [rsp + 0x58], rsi
and qword [rsp + 0x60], rsi
and qword [rsp + 0x68], rsi
test r12, r12
js 0x1000f0fca
cmp ebp, eax
jge 0x1000f0fca
mov rax, qword [rsp + 0x40]
and qword [rsp + 0x70], rsi
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20119
xor r8d, r8d
mov rdx, qword [r12 + rax]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x1000f0b1b
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0x58], rsi
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x1000f0b4b
test byte [rcx + 0x1c], 2
je 0x1000f0b4b
cmp byte [rcx + 0x19], 4
jb 0x1000f0b4b
mov edx, 0x20
mov r9d, edi
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
test edi, edi
jne 0x1000f0f31
lea rdi, [0x100152100]
mov rcx, rdi
mov rax, qword [0x100152100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rcx, rdi
mov rax, qword [0x100152100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov rax, qword [0x100152100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x100], 4
lea rax, [rsp + 0x100]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x118]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x110]
xor r8d, r8d
lea rdx, [0x100026c38]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1000f0bf3
mov eax, dword [rsp + 0x110]
sub eax, 4
neg eax
sbb ebx, ebx
and ebx, 0xd
mov rcx, qword [0x100153eb8]
lea rdi, [0x100153eb8]
cmp rcx, rdi
je 0x1000f0c2a
test byte [rcx + 0x1c], 2
je 0x1000f0c2a
cmp byte [rcx + 0x19], 4
jb 0x1000f0c2a
mov edx, 0x21
mov r9d, ebx
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
test ebx, ebx
jne 0x1000f0d16
lea r8, [rsp + 0x50]
lea rdx, [0x100026c48]
lea rcx, [rsp + 0x58]
call fcn.1000e5910
mov ebx, eax
mov rcx, qword [0x100153eb8]
cmp rcx, rdi
je 0x1000f0c7a
test byte [rcx + 0x1c], 2
je 0x1000f0c7a
cmp byte [rcx + 0x19], 4
jb 0x1000f0c7a
mov edx, 0x22
mov r9d, eax
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
test ebx, ebx
jne 0x1000f0d16
lea r8, [rsp + 0x30]
lea rdx, [0x100026c50]
lea rcx, [rsp + 0x58]
call fcn.1000e5910
mov ebx, eax
mov rcx, qword [0x100153eb8]
cmp rcx, rdi
je 0x1000f0cca
test byte [rcx + 0x1c], 2
je 0x1000f0cca
cmp byte [rcx + 0x19], 4
jb 0x1000f0cca
mov edx, 0x23
mov r9d, eax
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
test ebx, ebx
jne 0x1000f0d16
lea r8, [rsp + 0x38]
lea rdx, [0x100026c60]
lea rcx, [rsp + 0x58]
call fcn.1000e5910
mov ebx, eax
mov rcx, qword [0x100153eb8]
cmp rcx, rdi
je 0x1000f0d16
test byte [rcx + 0x1c], 2
je 0x1000f0d16
cmp byte [rcx + 0x19], 4
jb 0x1000f0d16
mov edx, 0x24
mov r9d, eax
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
xor eax, eax
lea rdi, [0x100026c70]
mov rsi, qword [rsp + 0x30]
lea ecx, [rax + 8]
repe cmpsw word [rsi], word [rdi]
je 0x1000f0d31
sbb eax, eax
sbb eax, r15d
test eax, eax
sete al
test al, al
je 0x1000f0d78
lea rcx, [rsp + 0x30]
call fcn.100035fe0
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x1000f0d78
test byte [rcx + 0x1c], 2
je 0x1000f0d78
cmp byte [rcx + 0x19], 4
jb 0x1000f0d78
mov edx, 0x25
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100034784
xor eax, eax
lea rdi, [0x100026c70]
mov rsi, qword [rsp + 0x38]
lea ecx, [rax + 8]
repe cmpsw word [rsi], word [rdi]
je 0x1000f0d93
sbb eax, eax
sbb eax, r15d
test eax, eax
sete al
test al, al
je 0x1000f0dda
lea rcx, [rsp + 0x38]
call fcn.100035fe0
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x1000f0dda
test byte [rcx + 0x1c], 2
je 0x1000f0dda
cmp byte [rcx + 0x19], 4
jb 0x1000f0dda
mov edx, 0x26
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100034784
test ebx, ebx
jne 0x1000f0eb9
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x118]
lea rcx, [rsp + 0x98]
call fcn.1000f0228
nop
mov rdx, rax
mov rcx, r13
call fcn.1000f1c48
nop
mov rdx, qword [rsp + 0xb0]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1000f0e3b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0xa8]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1000f0e5f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1000f0e83
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [0x100153eb8]
lea rbx, [0x100153eb8]
cmp rcx, rbx
je 0x1000f0ec0
test byte [rcx + 0x1c], 2
je 0x1000f0ec0
cmp byte [rcx + 0x19], 4
jb 0x1000f0ec0
mov edx, 0x27
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100034784
jmp 0x1000f0ec0
lea rbx, [0x100153eb8]
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1000f0ee2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1000f0f04
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1000f0f2c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rsi, qword [rsp + 0x58]
jmp 0x1000f0f31
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x1000f0f46
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov qword [rsp + 0x58], rsi
cmp ebp, dword [rsp + 0x48]
jge 0x1000f0fb4
mov rdx, qword [rsp + 0x40]
mov rdx, qword [r12 + rdx]
lea rcx, [rsp + 0x78]
call fcn.1000e5b6c
mov edi, eax
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x1000f0f92
test byte [rcx + 0x1c], 2
je 0x1000f0f92
cmp byte [rcx + 0x19], 4
jb 0x1000f0f92
mov edx, 0x28
mov r9d, eax
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
nop
test rsi, rsi
je 0x1000f0fa0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
add r12, 8
mov eax, dword [rsp + 0x48]
cmp ebp, eax
jl 0x1000f0abd
jmp 0x1000f0fe0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rsp + 0x40]
call fcn.10004d050
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1000f0ffb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [0x100153eb8]
cmp rsi, rbx
je 0x1000f1039
test byte [rsi + 0x1c], 1
je 0x1000f1039
movzx ecx, byte [rsi + 0x19]
mov eax, edi
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x1000f1039
mov edx, 0x29
mov r9d, edi
lea r8, [0x10001dc08]
mov rcx, qword [rsi + 0x10]
call fcn.100036510
mov eax, edi
add rsp, 0xc0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret