Function at 0x14003b860
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, r9
mov rbx, r8
mov r15, rdx
mov r12, rcx
mov dword [rbp - 0x40], 0x1fffff
lea rcx, [0x14019b9a8]
mov rax, qword [0x14019b9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x38], rax
mov r14, qword [rbp + 0x50]
mov rax, qword [r14]
or rsi, 0xffffffffffffffff
xor r13d, r13d
cmp dword [rax - 0x10], r13d
je 0x14003b906
lea r8, [0x140134098]
mov rdx, r14
lea rcx, [rbp - 0x10]
call fcn.140018bf8
nop
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.1400021c4
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14003b906
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [0x14019b9a8]
mov rax, qword [0x14019b9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x28], rax
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.14003b200
nop
mov r8, rax
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x20]
call fcn.14000dac8
nop
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.1400021c4
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14003b96c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14003b98a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x28]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14003ba60
mov eax, dword [0x1401a3d80]
lea ecx, [rax + 1]
imul ecx, ecx
imul ecx, eax
imul ecx, eax
and ecx, 0x80000003
jge 0x14003b9da
mov edi, 1
sub ecx, edi
or ecx, 0xfffffffc
add ecx, edi
test ecx, ecx
je 0x14003ba02
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x1401a3d80]
mov edx, 7
test rax, rax
cmove ecx, edx
mov dword [0x1401a3d80], ecx
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14003ba1d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14003ba3c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14003ba59
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14003bb9f
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x3c]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 1
test eax, eax
je 0x14003ba90
mov ecx, dword [rbp - 0x40]
jmp 0x14003ba9a
mov eax, dword [rbp - 0x40]
add eax, edi
mov dword [rbp - 0x40], eax
mov ecx, eax
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400ba748
mov rsi, rax
mov r8d, dword [rbp - 0x40]
add r8, r8
xor edx, edx
mov rcx, rax
call fcn.1400c0510
mov eax, dword [rbp - 0x40]
add eax, eax
mov dword [rbp - 0x40], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x3c]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test eax, eax
jne 0x14003bb21
mov ecx, dword [rbp - 0x40]
mov word [rsi + rcx*2], r13w
test rsi, rsi
jne 0x14003bb05
mov ecx, r13d
jmp 0x14003bb13
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rsi + rcx*2], r13w
jne 0x14003bb09
mov r8d, ecx
mov rdx, rsi
mov rcx, r12
call fcn.1400022bc
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.1400bc20c
test r15d, r15d
jne 0x14003bb3d
cmp dword [rbp - 0x3c], edi
je 0x14003bb40
mov dil, r13b
lea rdx, [rbx - 0x18]
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14003bb5f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14003bb7e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x14003bb9c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, dil
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret