Function at 0x140046920
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1401ace90]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r12, r9
mov r15, r8
mov qword [rsp + 0x60], rdx
mov r13, rcx
mov r14, qword [rbp + 0xc0]
mov qword [rbp - 0x80], r14
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x38], 0
lea rcx, str._k_f_
mov rax, qword [str._k_f_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov rax, qword [r14]
or esi, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x140046a24
lea r8, [0x140140b90]
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.140019ad0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140046a0b
cmp dword [rbx + 0x10], 0
jl 0x1400469fc
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400469fc
call fcn.140002520
mov rdi, rax
lock add dword [rbx + 0x10], esi
jg 0x1400469f1
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x30], rax
jmp 0x140046a0b
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.1400023d0
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140046a24
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, str._k_f_
mov rax, qword [str._k_f_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
mov r8d, dword [0x1401b4d80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x78787879
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub ecx, edx
cmp ecx, 2
jne 0x140046a82
mov eax, 1
test r8d, r8d
cmove r8d, eax
mov dword [0x1401b4d80], r8d
xor r8d, r8d
mov rdx, r15
lea rcx, [rsp + 0x68]
call fcn.140044e20
nop
mov r8, rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.14000f640
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140046afa
cmp dword [rbx + 0x10], 0
jl 0x140046aeb
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140046aeb
call fcn.140002520
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x140046ae0
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x40], rax
jmp 0x140046afa
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x40]
call fcn.1400023d0
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140046b14
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140046b2d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140046bcd
mov eax, dword [0x1401b4d80]
imul eax, eax
and eax, 0x8000000f
jge 0x140046b6c
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 0xf
jne 0x140046b7c
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140046b91
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140046baf
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 0x140046bc6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x140046c73
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov ecx, dword [rsp + 0x38]
mov dword [r13], ecx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140046c21
cmp dword [rsp + 0x3c], 4
jne 0x140046c21
mov dil, 1
jmp 0x140046c24
xor dil, dil
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140046c39
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140046c57
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 0x140046c6f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, dil
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1400c7be0
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret