Function at 0x14128c810
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x14136fbc0]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, rcx
mov qword [rbp - 0x60], rcx
xor r14d, r14d
mov dword [rsp + 0x60], r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov dword [rsp + 0x60], 1
mov ecx, 0x38
lea r8, [0x1400bba30]
mov rax, r8
mov edx, r14d
cmp rcx, 1
je 0x14128c887
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x14128c872
mov rdx, rax
lea rax, [0x1400bbaa0]
test rdx, rdx
cmovne rax, rdx
sub rax, r8
sar rax, 1
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r8
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x80], xmm0
mov dword [rsp + 0x20], r14d
mov r9d, 0x20019
lea r8, [rbp - 0x80]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.1412be0f0
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14128caca
mov dword [rsp + 0x64], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14128caca
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x14128caca
mov edi, r14d
mov rsi, qword [rbp - 0x60]
nop dword [rax]
mov dword [rsp + 0x68], 0xff
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x68]
lea r8, [rbp - 0x20]
mov edx, edi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14128cabe
mov r8, 0xffffffffffffffff
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call fcn.1411c24e0
nop
mov rcx, qword [rax]
mov qword [rbp - 0x80], rcx
mov rcx, qword [rax + 8]
mov qword [rbp - 0x78], rcx
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x70], rcx
mov qword [rax], r14
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
mov eax, dword [rsp + 0x60]
or eax, 0xa
mov dword [rsp + 0x60], eax
test al, 4
je 0x14128c9ec
and dword [rsp + 0x60], 0xfffffffb
test rsi, rsi
je 0x14128c9ec
mov eax, 0xffffffff
lock xadd dword [rsi], eax
cmp eax, 1
jne 0x14128c9ec
mov edx, 2
mov r8d, 8
mov rcx, rsi
call fcn.1411dba10
nop
mov eax, dword [rsp + 0x60]
test al, 2
je 0x14128ca25
and dword [rsp + 0x60], 0xfffffffd
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14128ca25
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14128ca25
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x40]
call fcn.1411dba10
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x58]
call fcn.1411c7e80
or dword [rsp + 0x60], 0x10
lea r8, [rbp - 0x58]
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
call fcn.1411ded50
mov rax, qword [rbx]
test rax, rax
je 0x14128ca56
mov eax, dword [rax]
cmp eax, 1
jle 0x14128ca67
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1411e1310
nop
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14128ca93
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14128ca93
mov edx, 1
mov r8d, 8
mov rcx, qword [rbp - 0x58]
call fcn.1411dba10
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14128cabe
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14128cabe
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x80]
call fcn.1411dba10
inc edi
cmp edi, dword [rsp + 0x64]
jb 0x14128c940
lea rcx, [rsp + 0x70]
call fcn.1412be140
mov rax, rbx
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1413164a0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret