Function at 0x140107810
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1d8]
sub rsp, 0x2c0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x141992390]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, rcx
mov qword [rbp - 0x58], rcx
xor esi, esi
mov dword [rsp + 0x60], esi
lea rax, [0x14016e190]
mov qword [rcx], rax
mov dword [rsp + 0x60], 1
mov qword [rbp - 0x80], rsi
lea r8d, [rsi + 0x37]
lea rdx, [0x140282950]
lea rcx, [rsp + 0x68]
call fcn.1400405f0
mov dword [rsp + 0x60], 3
lea rcx, [rsp + 0x68]
call fcn.140046630
mov rdx, rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete bl
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401078da
cmp ecx, 0xffffffff
je 0x1401078ed
mov ecx, 0xffffffff
mov rax, qword [rsp + 0x68]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401078ed
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x68]
call fcn.140049bf0
test bl, bl
je 0x140107add
mov dword [rsp + 0x64], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140107ad3
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x140107ad3
mov ebx, esi
lea r14, [0x1401a1e20]
nop word [rax + rax]
mov dword [rbp - 0x78], 0xff
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x50]
mov edx, ebx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140107ac7
lea r8d, [rax - 1]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140040590
nop
mov rcx, qword [rax]
mov qword [rsp + 0x78], rcx
mov qword [rax], r14
mov eax, dword [rsp + 0x60]
or eax, 0x14
test al, 8
je 0x1401079fd
and eax, 0xfffffff7
mov dword [rsp + 0x60], eax
mov rax, qword [rbp - 0x68]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401079e7
cmp ecx, 0xffffffff
je 0x1401079f9
mov ecx, 0xffffffff
mov rax, qword [rbp - 0x68]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401079f9
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x68]
call fcn.140049bf0
mov eax, dword [rsp + 0x60]
and eax, 0xfffffffb
mov dword [rsp + 0x60], eax
mov rax, qword [rbp - 0x70]
mov ecx, dword [rax]
test ecx, ecx
je 0x140107a25
cmp ecx, 0xffffffff
je 0x140107a38
mov ecx, 0xffffffff
mov rax, qword [rbp - 0x70]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140107a38
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x70]
call fcn.140049bf0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140045c60
or dword [rsp + 0x60], 0x20
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14002a530
nop
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax]
test ecx, ecx
je 0x140107a7d
cmp ecx, 0xffffffff
je 0x140107a91
mov ecx, 0xffffffff
mov rax, qword [rsp + 0x70]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140107a91
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 0x140107ab4
cmp ecx, 0xffffffff
je 0x140107ac7
mov ecx, 0xffffffff
mov rax, qword [rsp + 0x78]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140107ac7
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x78]
call fcn.140049bf0
inc ebx
cmp ebx, dword [rsp + 0x64]
jb 0x140107960
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140121c90
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret