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

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x140
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov esi, r8d
mov r13, rdx
mov r12, rcx
xor ebx, ebx
mov dword [rsp + 0x60], ebx
lea r14, [0x14016e190]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140116c64
mov qword [rbp - 0x20], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
lea rcx, [0x1402d77f0]
mov qword [rbp - 8], rcx
mov edx, eax
lea rcx, [rbp - 0x60]
call fcn.14009f5f0
nop
mov rcx, qword [rax]
mov r8d, dword [rcx + 4]
lea r15, [0x1401a1e20]
cmp rcx, r15
je 0x140116b3a
mov rbx, qword [rcx + 0x10]
add rbx, rcx
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.140045600
nop
mov rax, qword [rbp - 0x78]
mov r8, qword [rax + 0x10]
add r8, rax
lea rdx, [0x1402abe60]
lea rcx, [rbp - 0x20]
call fcn.140035f50
nop
mov rax, qword [rbp - 0x78]
mov ecx, dword [rax]
mov edi, 0xffffffff
test ecx, ecx
je 0x140116b85
cmp ecx, edi
je 0x140116b98
mov ecx, edi
mov rax, qword [rbp - 0x78]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140116b98
mov edx, 1
lea r8d, [rdx + 7]
mov rcx, qword [rbp - 0x78]
call fcn.140049bf0
nop
mov rax, qword [rbp - 0x60]
mov ecx, dword [rax]
test ecx, ecx
je 0x140116bb6
cmp ecx, 0xffffffff
je 0x140116bc8
mov ecx, edi
mov rax, qword [rbp - 0x60]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140116bc8
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x60]
call fcn.140049bf0
mov rax, qword [rsp + 0x78]
mov qword [r12], rax
mov qword [rsp + 0x78], r14
mov eax, dword [0x14016e190]
test eax, eax
je 0x140116bf4
cmp eax, 0xffffffff
je 0x140116c5c
mov eax, edi
lock xadd dword [0x14016e190], eax
cmp eax, 1
jne 0x140116c5c
mov r14, qword [rsp + 0x78]
movsxd rbx, dword [r14 + 0xc]
add rbx, 2
lea rbx, [r14 + rbx*8]
movsxd rsi, dword [r14 + 8]
add rsi, 2
lea rsi, [r14 + rsi*8]
cmp rsi, rbx
je 0x140116c53
nop word [rax + rax]
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x140116c3d
cmp eax, 0xffffffff
je 0x140116c4e
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140116c4e
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.140049bf0
cmp rbx, rsi
jne 0x140116c20
mov rcx, r14
call fcn.14003a040
nop
mov rax, r12
jmp 0x14011704c
mov ecx, dword [rbp - 0x80]
inc ecx
mov dword [rbp - 0x80], ecx
mov edx, dword [rbp - 0x7c]
inc edx
mov dword [rbp - 0x7c], edx
cmp esi, 1
jne 0x140116c7f
mov r12d, dword [rbp - 0x68]
jmp 0x140116c85
mov r12d, dword [rbp - 0x64]
mov edx, ecx
lea edx, [rdx*2 + 2]
xor r8d, r8d
lea rcx, [rsp + 0x70]
call fcn.14002fc60
nop
mov r14d, ebx
mov edi, 0xffffffff
test r12d, r12d
jle 0x140116fcc
lea r15, [0x1401a1e20]
mov qword [rsp + 0x68], r15
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
shr rcx, 1
mov dword [rbp + 0x98], ecx
mov edx, dword [rax]
mov rcx, qword [rsp + 0x70]
cmp esi, 1
jne 0x140116d2c
cmp edx, esi
ja 0x140116ce0
cmp qword [rcx + 0x10], 0x18
je 0x140116cfc
mov r8d, dword [rcx + 8]
shr r8d, 0x1f
mov edx, dword [rax + 4]
inc edx
lea rcx, [rsp + 0x70]
call fcn.140031410
mov rcx, qword [rsp + 0x70]
mov r8, qword [rcx + 0x10]
add r8, rcx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x98]
mov edx, r14d
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x140116d82
cmp edx, 1
ja 0x140116d38
cmp qword [rcx + 0x10], 0x18
je 0x140116d54
mov r8d, dword [rcx + 8]
shr r8d, 0x1f
mov edx, dword [rax + 4]
inc edx
lea rcx, [rsp + 0x70]
call fcn.140031410
mov rcx, qword [rsp + 0x70]
mov r8, qword [rcx + 0x10]
add r8, rcx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x98]
mov edx, r14d
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test eax, eax
jne 0x140116e76
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 0x10]
add rdx, rax
mov r8d, dword [rbp + 0x98]
lea rcx, [rbp - 0x58]
call fcn.140040590
nop
mov rcx, qword [rax]
mov qword [rbp - 0x38], rcx
mov qword [rax], r15
mov eax, dword [rsp + 0x60]
or eax, 0x14
test al, 8
je 0x140116df9
and eax, 0xfffffff7
mov dword [rsp + 0x60], eax
mov rax, qword [rbp - 0x48]
mov ecx, dword [rax]
test ecx, ecx
je 0x140116de3
cmp ecx, 0xffffffff
je 0x140116df5
mov ecx, edi
mov rax, qword [rbp - 0x48]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140116df5
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x48]
call fcn.140049bf0
mov eax, dword [rsp + 0x60]
and eax, 0xfffffffb
mov dword [rsp + 0x60], eax
mov rax, qword [rbp - 0x58]
mov ecx, dword [rax]
test ecx, ecx
je 0x140116e1e
cmp ecx, 0xffffffff
je 0x140116e30
mov ecx, edi
mov rax, qword [rbp - 0x58]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140116e30
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x58]
call fcn.140049bf0
mov rcx, qword [rsp + 0x68]
mov qword [rbp - 0x40], rcx
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x68], rax
mov eax, dword [rcx]
test eax, eax
je 0x140116e5c
cmp eax, 0xffffffff
je 0x140116e6e
mov ecx, edi
mov rax, qword [rbp - 0x40]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140116e6e
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x40]
call fcn.140049bf0
test esi, esi
je 0x140116f42
mov qword [rbp], 2
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
lea rax, [0x1402d77f0]
mov qword [rbp + 0x18], rax
mov edx, esi
lea rcx, [rbp - 0x50]
call fcn.14009f5f0
nop
mov rcx, qword [rax]
mov r8d, dword [rcx + 4]
cmp rcx, r15
jne 0x140116eae
mov rdx, rbx
jmp 0x140116eb5
mov rdx, qword [rcx + 0x10]
add rdx, rcx
lea rcx, [rbp - 0x70]
call fcn.140045600
or dword [rsp + 0x60], 0x20
mov rax, qword [rbp - 0x70]
mov r8, qword [rax + 0x10]
add r8, rax
lea rdx, [0x1402abe88]
lea rcx, [rbp]
call fcn.140035f50
nop
mov rax, qword [rbp - 0x70]
mov ecx, dword [rax]
test ecx, ecx
je 0x140116efd
cmp ecx, 0xffffffff
je 0x140116f10
mov ecx, edi
mov rax, qword [rbp - 0x70]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140116f10
mov edx, 1
lea r8d, [rdx + 7]
mov rcx, qword [rbp - 0x70]
call fcn.140049bf0
nop
mov rax, qword [rbp - 0x50]
mov ecx, dword [rax]
test ecx, ecx
je 0x140116f2e
cmp ecx, 0xffffffff
je 0x140116f86
mov ecx, edi
mov rax, qword [rbp - 0x50]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140116f86
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x50]
call fcn.140049bf0
jmp 0x140116f86
mov rax, qword [rsp + 0x68]
cmp dword [rax + 4], 0
jne 0x140116f76
mov dword [rbp - 0x30], 1
lea rax, [0x1401a2538]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp + 0x30], xmm0
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.14003c4e0
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
call fcn.140008140
nop
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax]
test ecx, ecx
je 0x140116fa6
cmp ecx, 0xffffffff
je 0x140116fba
mov rax, qword [rsp + 0x68]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140116fba
mov r8d, 8
lea edx, [r8 - 6]
mov rcx, qword [rsp + 0x68]
call fcn.140049bf0
inc r14d
cmp r14d, r12d
mov esi, dword [rbp + 0x90]
jl 0x140116cb2
mov rax, qword [rsp + 0x78]
mov rbx, qword [rbp + 0x80]
mov qword [rbx], rax
lea rax, [0x14016e190]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax]
test ecx, ecx
je 0x140117007
cmp ecx, 0xffffffff
je 0x14011701b
mov ecx, edi
mov rax, qword [rsp + 0x70]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011701b
mov edx, 1
lea r8d, [rdx + 7]
mov rcx, qword [rsp + 0x70]
call fcn.140049bf0
nop
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax]
test ecx, ecx
je 0x140117039
cmp ecx, 0xffffffff
je 0x140117049
mov rax, qword [rsp + 0x78]
lock xadd dword [rax], edi
cmp edi, 1
jne 0x140117049
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.140008550
nop
mov rax, rbx
mov rbx, qword [rsp + 0x188]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret