Function at 0x14001b8e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7e0]
sub rsp, 0x8e0
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x930], rbx
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov rsi, rdx
mov r14, rcx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x48], rcx
movzx eax, byte [0x1401a9d84]
neg al
sbb rdi, rdi
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x68], r12
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [0x1401362f8]
test rdx, 0xffffffffffff0000
jne 0x14001b9ad
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14001b9b8
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140002750
jmp 0x14001b9b8
lea rcx, [rsp + 0x50]
call fcn.1400032d0
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x68]
call fcn.14000ea60
nop
lea r8, [0x1401a9fc8]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14000ea60
nop
lea r8, [0x140136288]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140019af0
nop
mov r8, r14
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.14000ea60
nop
mov qword [rsp + 0x78], r12
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rax]
lea rcx, [rdi - 0x7ffffffe]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x14001ba44
mov dword [rsp + 0x60], r12d
mov ecx, r12d
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
test ecx, ecx
setne bl
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
or r15, 0xffffffffffffffff
lock add dword [rdx + 0x10], r15d
jg 0x14001ba66
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001ba7f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001ba98
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001bab1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001baca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14001bb25
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001bae3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], r12d
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001bb07
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001bb1e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14001be3e
mov dword [rsp + 0x4c], 0x400
mov word [rbp - 0x30], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x2e]
call fcn.1400c7c50
mov edi, r12d
mov rbx, qword [rsp + 0x58]
nop dword [rax + rax]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x4c]
lea r8, [rbp - 0x30]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r13d, eax
inc edi
mov dword [rsp + 0x48], edi
test eax, eax
je 0x14001bb90
cmp eax, 0x103
jne 0x14001bda2
lea rcx, [0x1401a19a8]
mov rdx, qword [0x1401a19a8]
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x30]
lea rax, [rbp - 0x30]
test rax, 0xffffffffffff0000
jne 0x14001bbe7
movzx edi, cx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14001bccb
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002750
mov rbx, qword [rsp + 0x40]
jmp 0x14001bccb
lea rax, [rbp - 0x30]
mov rdi, r15
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001bbf0
test edi, edi
jne 0x14001bc50
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14001bccb
cmp dword [rdx + 0x10], 0
jge 0x14001bc2c
cmp dword [rbx - 0xc], 0
jl 0x14001bdac
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x14001bccb
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001bc3c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
jmp 0x14001bccb
mov r12d, dword [rbx - 0x10]
lea r14, [rbp - 0x30]
sub r14, rbx
sar r14, 1
test edi, edi
js 0x14001be33
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001bc88
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140002550
mov rbx, qword [rsp + 0x40]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x14001bcac
lea r8, [rbx + r14*2]
call fcn.1400c303c
jmp 0x14001bcb5
lea r8, [rbp - 0x30]
call fcn.1400c31fc
cmp edi, dword [rbx - 0xc]
jg 0x14001be28
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
xor r12d, r12d
cmp dword [rbx - 0x10], 0
je 0x14001bd6b
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x40]
cmp rcx, rax
jae 0x14001bd37
mov rcx, qword [rsi]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
ja 0x14001bd37
lea rdi, [rsp + 0x40]
sub rdi, rcx
sar rdi, 3
cmp rax, qword [rsi + 0x10]
jne 0x14001bd0a
mov rcx, rsi
call fcn.14001c490
mov rax, qword [rsi]
lea rcx, [rax + rdi*8]
mov rdi, qword [rsi + 8]
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x50], rdi
test rdi, rdi
je 0x14001bd35
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.1400025b0
add rax, 0x18
mov qword [rdi], rax
jmp 0x14001bd66
cmp rax, qword [rsi + 0x10]
jne 0x14001bd45
mov rcx, rsi
call fcn.14001c490
mov rdi, qword [rsi + 8]
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x60], rdi
test rdi, rdi
je 0x14001bd66
lea rcx, [rbx - 0x18]
call fcn.1400025b0
add rax, 0x18
mov qword [rdi], rax
add qword [rsi + 8], 8
mov dword [rsp + 0x4c], 0x400
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x30]
call fcn.1400c7c50
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001bd99
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
test r13d, r13d
jne 0x14001bdb7
jmp 0x14001bb50
mov ecx, 0x80070057
call fcn.140001920
nop
test rbx, rbx
je 0x14001bdcd
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], r12d
test rbx, rbx
je 0x14001bde5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], r12d
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001be09
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x78]
mov rdx, qword [rdx]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001be24
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
jmp 0x14001be3e
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1400c2810
mov rbx, qword [rsp + 0x930]
add rsp, 0x8e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret