Function at 0x14004a200
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r12, r9
mov r15, r8
mov r13, rdx
mov r11d, dword [0x1401c4d60]
mov r10d, r11d
imul r10d, r11d
mov eax, 0xb21642c9
imul r10d
add edx, r10d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub r10d, edx
cmp r10d, 0x14
jne 0x14004a275
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileType]
mov r11d, dword [0x1401c4d60]
mov dword [rbp - 0x34], 4
lea ecx, [r11 + 1]
imul ecx, r11d
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
cmp ecx, 1
jne 0x14004a2a7
inc dword [0x1401c5df4]
mov dword [rbp - 0x50], 0
lea rcx, [0x1401bc9a8]
mov rax, qword [0x1401bc9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x48], rbx
mov r14, qword [rbp + 0x50]
mov rax, qword [r14]
or esi, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x14004a354
lea r8, [0x14014ffb0]
mov rdx, r14
lea rcx, [rbp - 0x28]
call fcn.14001a720
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004a33c
cmp dword [rbx + 0x10], 0
jl 0x14004a32e
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004a32e
call fcn.140002400
mov rdi, rax
lock add dword [rbx + 0x10], esi
jg 0x14004a324
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x48], rax
jmp 0x14004a33c
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x48]
call fcn.1400022b0
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004a354
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [0x1401bc9a8]
mov rax, qword [0x1401bc9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x40], rbx
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x20]
call fcn.140048210
nop
mov r8, rax
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x18]
call fcn.14000f690
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004a3e0
cmp dword [rbx + 0x10], 0
jl 0x14004a3d2
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004a3d2
call fcn.140002400
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x14004a3c8
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x40], rax
jmp 0x14004a3e0
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x40]
call fcn.1400022b0
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004a3f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004a411
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [0x1401c4d60]
imul eax, eax
and eax, 0x80000003
jge 0x14004a428
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 2
jne 0x14004a452
mov ecx, 1
mov eax, ecx
mov r8d, 0x6d
nop word [rax + rax]
lea edx, [rax + rcx]
lea ecx, [rax]
mov eax, edx
dec r8d
jns 0x14004a440
mov dword [0x1401c4d60], edx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x40]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004a4c8
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004a48d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004a4aa
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 0x14004a4c1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14004a564
lea rax, [rbp - 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
xor r8d, r8d
mov rdx, qword [r13]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov ecx, dword [rbp - 0x50]
mov rax, qword [rbp + 0x30]
mov dword [rax], ecx
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x14004a513
cmp dword [rbp - 0x38], 4
jne 0x14004a513
mov dil, 1
jmp 0x14004a516
xor dil, dil
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004a52b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004a548
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 0x14004a560
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, dil
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret