Function at 0x1000f048c
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, [0x100152eb8]
mov rcx, qword [0x100152eb8]
cmp rcx, rbx
je 0x1000f04e4
test byte [rcx + 0x1c], 1
je 0x1000f04e4
cmp byte [rcx + 0x19], 5
jb 0x1000f04e4
mov edx, 0x1d
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100034764
mov rcx, r13
call fcn.10008b9d4
mov edi, 0x54f
mov rdx, qword [rsi + 8]
cmp dword [rdx - 0x10], 0
je 0x1000f0b07
and qword [rsp + 0x78], 0
and qword [rsp + 0x80], 0
and qword [rsp + 0x88], 0
lea rcx, [rsp + 0x78]
call fcn.1000f14e0
mov edi, eax
mov rcx, qword [0x100152eb8]
cmp rcx, rbx
je 0x1000f0553
test byte [rcx + 0x1c], 2
je 0x1000f0553
cmp byte [rcx + 0x19], 4
jb 0x1000f0553
mov edx, 0x1e
mov r9d, eax
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
and qword [rsp + 0x40], 0
and dword [rsp + 0x48], 0
and dword [rsp + 0x4c], 0
test edi, edi
jne 0x1000f0aec
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.1000e4f6c
mov edi, eax
mov rcx, qword [0x100152eb8]
cmp rcx, rbx
je 0x1000f05ac
test byte [rcx + 0x1c], 2
je 0x1000f05ac
cmp byte [rcx + 0x19], 4
jb 0x1000f05ac
mov edx, 0x1f
mov r9d, eax
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
test edi, edi
jne 0x1000f0aec
xor ebp, ebp
mov eax, dword [rsp + 0x48]
test eax, eax
jle 0x1000f0aec
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 0x1000f0ad6
cmp ebp, eax
jge 0x1000f0ad6
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 0x1000f0627
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0x58], rsi
mov rcx, qword [0x100152eb8]
cmp rcx, rbx
je 0x1000f0657
test byte [rcx + 0x1c], 2
je 0x1000f0657
cmp byte [rcx + 0x19], 4
jb 0x1000f0657
mov edx, 0x20
mov r9d, edi
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
test edi, edi
jne 0x1000f0a3d
lea rdi, [0x100151100]
mov rcx, rdi
mov rax, qword [0x100151100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rcx, rdi
mov rax, qword [0x100151100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov rax, qword [0x100151100]
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, [0x100026c28]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1000f06ff
mov eax, dword [rsp + 0x110]
sub eax, 4
neg eax
sbb ebx, ebx
and ebx, 0xd
mov rcx, qword [0x100152eb8]
lea rdi, [0x100152eb8]
cmp rcx, rdi
je 0x1000f0736
test byte [rcx + 0x1c], 2
je 0x1000f0736
cmp byte [rcx + 0x19], 4
jb 0x1000f0736
mov edx, 0x21
mov r9d, ebx
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
test ebx, ebx
jne 0x1000f0822
lea r8, [rsp + 0x50]
lea rdx, [0x100026c38]
lea rcx, [rsp + 0x58]
call fcn.1000e52b8
mov ebx, eax
mov rcx, qword [0x100152eb8]
cmp rcx, rdi
je 0x1000f0786
test byte [rcx + 0x1c], 2
je 0x1000f0786
cmp byte [rcx + 0x19], 4
jb 0x1000f0786
mov edx, 0x22
mov r9d, eax
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
test ebx, ebx
jne 0x1000f0822
lea r8, [rsp + 0x30]
lea rdx, [0x100026c40]
lea rcx, [rsp + 0x58]
call fcn.1000e52b8
mov ebx, eax
mov rcx, qword [0x100152eb8]
cmp rcx, rdi
je 0x1000f07d6
test byte [rcx + 0x1c], 2
je 0x1000f07d6
cmp byte [rcx + 0x19], 4
jb 0x1000f07d6
mov edx, 0x23
mov r9d, eax
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
test ebx, ebx
jne 0x1000f0822
lea r8, [rsp + 0x38]
lea rdx, [0x100026c50]
lea rcx, [rsp + 0x58]
call fcn.1000e52b8
mov ebx, eax
mov rcx, qword [0x100152eb8]
cmp rcx, rdi
je 0x1000f0822
test byte [rcx + 0x1c], 2
je 0x1000f0822
cmp byte [rcx + 0x19], 4
jb 0x1000f0822
mov edx, 0x24
mov r9d, eax
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
xor eax, eax
lea rdi, [0x100026c60]
mov rsi, qword [rsp + 0x30]
lea ecx, [rax + 8]
repe cmpsw word [rsi], word [rdi]
je 0x1000f083d
sbb eax, eax
sbb eax, r15d
test eax, eax
sete al
test al, al
je 0x1000f0884
lea rcx, [rsp + 0x30]
call fcn.100035fc0
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x1000f0884
test byte [rcx + 0x1c], 2
je 0x1000f0884
cmp byte [rcx + 0x19], 4
jb 0x1000f0884
mov edx, 0x25
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100034764
xor eax, eax
lea rdi, [0x100026c60]
mov rsi, qword [rsp + 0x38]
lea ecx, [rax + 8]
repe cmpsw word [rsi], word [rdi]
je 0x1000f089f
sbb eax, eax
sbb eax, r15d
test eax, eax
sete al
test al, al
je 0x1000f08e6
lea rcx, [rsp + 0x38]
call fcn.100035fc0
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x1000f08e6
test byte [rcx + 0x1c], 2
je 0x1000f08e6
cmp byte [rcx + 0x19], 4
jb 0x1000f08e6
mov edx, 0x26
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100034764
test ebx, ebx
jne 0x1000f09c5
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.1000efd34
nop
mov rdx, rax
mov rcx, r13
call fcn.1000f1754
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 0x1000f0947
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 0x1000f096b
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 0x1000f098f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [0x100152eb8]
lea rbx, [0x100152eb8]
cmp rcx, rbx
je 0x1000f09cc
test byte [rcx + 0x1c], 2
je 0x1000f09cc
cmp byte [rcx + 0x19], 4
jb 0x1000f09cc
mov edx, 0x27
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100034764
jmp 0x1000f09cc
lea rbx, [0x100152eb8]
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1000f09ee
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 0x1000f0a10
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 0x1000f0a38
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rsi, qword [rsp + 0x58]
jmp 0x1000f0a3d
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x1000f0a52
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov qword [rsp + 0x58], rsi
cmp ebp, dword [rsp + 0x48]
jge 0x1000f0ac0
mov rdx, qword [rsp + 0x40]
mov rdx, qword [r12 + rdx]
lea rcx, [rsp + 0x78]
call fcn.1000e5514
mov edi, eax
mov rcx, qword [0x100152eb8]
cmp rcx, rbx
je 0x1000f0a9e
test byte [rcx + 0x1c], 2
je 0x1000f0a9e
cmp byte [rcx + 0x19], 4
jb 0x1000f0a9e
mov edx, 0x28
mov r9d, eax
lea r8, [0x10001dc08]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
nop
test rsi, rsi
je 0x1000f0aac
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
add r12, 8
mov eax, dword [rsp + 0x48]
cmp ebp, eax
jl 0x1000f05c9
jmp 0x1000f0aec
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.10004ce40
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1000f0b07
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [0x100152eb8]
cmp rsi, rbx
je 0x1000f0b45
test byte [rsi + 0x1c], 1
je 0x1000f0b45
movzx ecx, byte [rsi + 0x19]
mov eax, edi
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x1000f0b45
mov edx, 0x29
mov r9d, edi
lea r8, [0x10001dc08]
mov rcx, qword [rsi + 0x10]
call fcn.100036328
mov eax, edi
add rsp, 0xc0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret