Function at 0x140116770
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x178], rbx
mov r13d, r8d
mov r12, rdx
mov r15, rcx
xor ebx, ebx
mov dword [rbp - 0x50], ebx
lea rsi, [0x140157d00]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140116975
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.140117ba0
nop
lea rdx, [rbp - 0x78]
mov rcx, rax
call fcn.140022d80
mov rbx, rax
mov rcx, qword [rax]
mov r14d, 1
cmp dword [rcx], r14d
ja 0x140116839
cmp qword [rcx + 0x10], 0x18
je 0x140116854
xor r8d, r8d
cmp dword [rcx + 8], 0x80000000
cmovae r8d, r14d
mov edx, dword [rcx + 4]
inc edx
mov rcx, rbx
call fcn.1400243f0
mov rcx, qword [rbx]
mov r8, qword [rcx + 0x10]
add r8, rcx
mov qword [rbp - 0x30], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
lea rax, [0x1402b84e0]
mov qword [rbp - 0x18], rax
lea rdx, [0x140291440]
lea rcx, [rbp - 0x30]
call fcn.140028d60
nop
mov rcx, qword [rbp - 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1401168a9
cmp eax, 0xffffffff
je 0x1401168b8
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401168b8
mov rcx, qword [rbp - 0x78]
mov r8d, 8
mov rdx, r14
call fcn.140039ba0
nop
mov rcx, qword [rbp - 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1401168d7
cmp eax, 0xffffffff
je 0x1401168e5
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401168e5
mov rcx, qword [rbp - 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
mov rax, qword [rsp + 0x68]
mov qword [r15], rax
mov qword [rsp + 0x68], rsi
mov eax, dword [0x140157d00]
test eax, eax
je 0x140116916
cmp eax, 0xffffffff
je 0x140116970
or eax, 0xffffffff
lock xadd dword [0x140157d00], eax
cmp eax, 1
jne 0x140116970
mov rsi, qword [rsp + 0x68]
movsxd rbx, dword [rsi + 0xc]
add rbx, 2
lea rbx, [rsi + rbx*8]
movsxd rdi, dword [rsi + 8]
add rdi, 2
lea rdi, [rsi + rdi*8]
cmp rdi, rbx
je 0x140116967
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x140116951
cmp eax, 0xffffffff
je 0x140116962
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140116962
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.140039ba0
cmp rbx, rdi
jne 0x140116933
mov rcx, rsi
call fcn.14011dbc0
nop
jmp 0x140116d6d
mov eax, dword [rsp + 0x78]
inc eax
mov dword [rsp + 0x78], eax
mov edx, dword [rsp + 0x7c]
inc edx
mov dword [rsp + 0x7c], edx
cmp r13d, 1
jne 0x140116995
mov r15d, dword [rbp - 0x80]
jmp 0x14011699b
mov r15d, dword [rbp - 0x7c]
mov edx, eax
lea edx, [rdx*2 + 2]
xor r8d, r8d
lea rcx, [rsp + 0x70]
call fcn.140022f60
nop
mov edi, ebx
mov r14d, 1
test r15d, r15d
jle 0x140116cb2
lea rcx, [0x140187f70]
lea rsi, [0x1402b84e0]
nop
mov qword [rsp + 0x60], rcx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
shr rcx, 1
mov dword [rbp + 0x88], ecx
cmp r13d, 1
jne 0x140116a4a
cmp dword [rax], r13d
ja 0x1401169f9
cmp qword [rax + 0x10], 0x18
je 0x140116a1b
mov r8d, ebx
cmp dword [rax + 8], 0x80000000
cmovae r8d, r14d
mov edx, dword [rax + 4]
inc edx
lea rcx, [rsp + 0x70]
call fcn.1400243f0
mov rax, qword [rsp + 0x70]
mov r8, qword [rax + 0x10]
add r8, rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x88]
mov edx, edi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x140116aa5
cmp dword [rax], 1
ja 0x140116a56
cmp qword [rax + 0x10], 0x18
je 0x140116a78
mov r8d, ebx
cmp dword [rax + 8], 0x80000000
cmovae r8d, r14d
mov edx, dword [rax + 4]
inc edx
lea rcx, [rsp + 0x70]
call fcn.1400243f0
mov rax, qword [rsp + 0x70]
mov r8, qword [rax + 0x10]
add r8, rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x88]
mov edx, edi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
jne 0x140116b10
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 0x10]
add rdx, rax
mov r8d, dword [rbp + 0x88]
lea rcx, [rbp - 0x68]
call fcn.1400042e0
mov rdx, qword [rsp + 0x60]
mov qword [rbp + 0x18], rdx
mov rcx, qword [rax]
mov qword [rsp + 0x60], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x140116afa
cmp eax, 0xffffffff
je 0x140116b08
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140116b08
mov rcx, qword [rbp - 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
test ebx, ebx
je 0x140116c1b
mov edx, ebx
lea rcx, [rbp - 0x58]
call fcn.140117ba0
nop
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.140022d80
mov rbx, rax
mov rcx, qword [rax]
cmp dword [rcx], 1
ja 0x140116b3a
cmp qword [rcx + 0x10], 0x18
je 0x140116b55
xor r8d, r8d
cmp dword [rcx + 8], 0x80000000
cmovae r8d, r14d
mov edx, dword [rcx + 4]
inc edx
mov rcx, rbx
call fcn.1400243f0
mov rcx, qword [rbx]
mov r8, qword [rcx + 0x10]
add r8, rcx
mov qword [rbp - 0x10], 2
xor ebx, ebx
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
mov qword [rbp + 8], rsi
lea rdx, [0x140291468]
lea rcx, [rbp - 0x10]
call fcn.140028d60
nop
mov rcx, qword [rbp - 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x140116ba5
cmp eax, 0xffffffff
je 0x140116bb4
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140116bb4
mov rcx, qword [rbp - 0x60]
mov r8d, 8
mov rdx, r14
call fcn.140039ba0
nop
mov rcx, qword [rbp - 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x140116bd3
cmp eax, 0xffffffff
je 0x140116be2
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140116be2
mov rcx, qword [rbp - 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x140116c0b
cmp eax, 0xffffffff
je 0x140116c99
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140116c99
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
jmp 0x140116c99
mov rax, qword [rsp + 0x60]
cmp dword [rax + 4], 0
jne 0x140116c58
or rax, 0xffffffffffffffff
lea rcx, [0x14015308c]
inc rax
cmp byte [rcx + rax], 0
jne 0x140116c31
mov dword [rbp - 0x40], eax
mov qword [rbp - 0x38], rcx
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp + 0x20], xmm0
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.14002ebb0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140009210
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x140116c89
cmp eax, 0xffffffff
je 0x140116c97
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140116c97
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
xor ebx, ebx
inc edi
cmp edi, r15d
lea rcx, [0x140187f70]
jl 0x1401169d0
lea rsi, [0x140157d00]
mov rax, qword [rsp + 0x68]
mov r15, qword [rbp + 0x70]
mov qword [r15], rax
mov qword [rsp + 0x68], rsi
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x140116ce4
cmp eax, 0xffffffff
je 0x140116cf7
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140116cf2
mov rcx, qword [rsp + 0x70]
mov r8d, 8
mov rdx, r14
call fcn.140039ba0
mov rsi, qword [rsp + 0x68]
mov eax, dword [rsi]
test eax, eax
je 0x140116d13
cmp eax, 0xffffffff
je 0x140116d6d
or eax, 0xffffffff
lock xadd dword [rsi], eax
cmp eax, 1
jne 0x140116d6d
mov rsi, qword [rsp + 0x68]
movsxd rbx, dword [rsi + 0xc]
add rbx, 2
lea rbx, [rsi + rbx*8]
movsxd rdi, dword [rsi + 8]
add rdi, 2
lea rdi, [rsi + rdi*8]
cmp rdi, rbx
je 0x140116d64
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x140116d4e
cmp eax, 0xffffffff
je 0x140116d5f
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140116d5f
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.140039ba0
cmp rbx, rdi
jne 0x140116d30
mov rcx, rsi
call fcn.14011dbc0
nop
mov rax, r15
mov rbx, qword [rsp + 0x178]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret