Function at 0x14004d400
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
lea rbp, [rax - 0x57]
sub rsp, 0x90
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x38], xmm6
mov r12, r9
mov r15, r8
mov r13, rdx
mov dword [rbp - 0x15], 4
mov dword [rbp - 0x31], 0
mov r11d, dword [0x1401cbd80]
lea r10d, [r11 + 2]
lea eax, [r11 + 1]
imul r10d, eax
imul r10d, r11d
mov eax, 0x2aaaaaab
imul r10d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub r10d, eax
or rsi, 0xffffffffffffffff
cmp r10d, 8
jne 0x14004d4c0
mov eax, 0x51eb851f
imul r11d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x64
sub r11d, edx
add r11d, 0x63
movsxd rcx, r11d
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400d0cc8
mov rcx, rax
call fcn.1400d272c
lea rcx, [0x1401c39a8]
mov rax, qword [0x1401c39a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x29], rbx
mov r9d, dword [0x1401cbd80]
lea r8d, [r9 + 2]
lea ecx, [r9 + 1]
imul r8d, ecx
imul r8d, r9d
mov eax, 0x2aaaaaab
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub r8d, eax
cmp r8d, 0xf
jne 0x14004d56d
movsd xmm3, qword [0x14015adc8]
xorps xmm2, xmm2
movd xmm4, r9d
cvtdq2pd xmm4, xmm4
movsd xmm5, qword [0x14015adf0]
movsd xmm6, qword [0x14015adc0]
nop word [rax + rax]
addsd xmm2, xmm3
movaps xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x14004d559
subsd xmm2, xmm3
divsd xmm3, xmm5
movaps xmm1, xmm2
mulsd xmm1, xmm2
movaps xmm0, xmm4
subsd xmm0, xmm1
comisd xmm0, xmm6
ja 0x14004d540
mov r14, qword [rbp + 0x7f]
mov rax, qword [r14]
cmp dword [rax - 0x10], 0
je 0x14004d5f8
lea r8, [0x140156a68]
mov rdx, r14
lea rcx, [rbp - 9]
call fcn.14001c930
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004d5e0
cmp dword [rbx + 0x10], 0
jl 0x14004d5d2
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004d5d2
call fcn.140002410
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x14004d5c8
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 - 0x29], rax
jmp 0x14004d5e0
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x29]
call fcn.1400022c0
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004d5f8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [0x1401c39a8]
mov rax, qword [0x1401c39a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x21], rbx
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 1]
call fcn.14004b3b0
nop
mov r8, rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 7]
call fcn.140010500
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004d684
cmp dword [rbx + 0x10], 0
jl 0x14004d676
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004d676
call fcn.140002410
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x14004d66c
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 - 0x21], rax
jmp 0x14004d684
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x21]
call fcn.1400022c0
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004d69d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004d6b5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, dword [0x1401cbd80]
lea r9d, [r8 + 1]
mov ecx, r9d
imul ecx, r8d
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, 3
jne 0x14004d70d
test r8d, r8d
je 0x14004d703
dec r8d
je 0x14004d6f7
mov dword [0x1401cbd80], r9d
jmp 0x14004d70d
mov dword [0x1401cbd80], 0
jmp 0x14004d70d
mov dword [0x1401cbd80], 2
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x21]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004d783
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004d748
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004d765
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 0x14004d77c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14004d81f
lea rax, [rbp - 0x15]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x19]
xor r8d, r8d
mov rdx, qword [r13]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov ecx, dword [rbp - 0x31]
mov rax, qword [rbp + 0x5f]
mov dword [rax], ecx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x14004d7ce
cmp dword [rbp - 0x19], 4
jne 0x14004d7ce
mov dil, 1
jmp 0x14004d7d1
xor dil, dil
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004d7e6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004d803
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 0x14004d81b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, dil
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret