Function at 0x140049260
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 - 0x468]
sub rsp, 0x568
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov rax, qword [0x1401b5e90]
xor rax, rsp
mov qword [rbp + 0x450], rax
mov qword [rbp - 0x70], r9
mov r15, r8
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], rcx
mov r14, qword [rbp + 0x4d0]
mov qword [rsp + 0x50], r14
mov qword [rbp - 0x60], r14
mov dword [rsp + 0x60], 4
mov r9d, dword [0x1401bdd80]
lea r8d, [r9 + 1]
mov dword [rsp + 0x34], r8d
lea eax, [r9 + 2]
imul eax, r8d
imul eax, r9d
and eax, 0x80000007
jge 0x1400492ed
dec eax
or eax, 0xfffffff8
inc eax
xor r10d, r10d
lea r12d, [r10 + 1]
cmp eax, 3
jne 0x140049466
mov r11d, r10d
mov dword [rsp + 0x30], r10d
mov eax, r9d
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x40], eax
mov eax, 0x55555556
imul r9d
mov r15d, edx
shr r15d, 0x1f
add r15d, edx
mov eax, r9d
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [rsp + 0x38], eax
mov eax, 0x66666667
imul r9d
mov r14d, edx
sar r14d, 1
mov ecx, r14d
shr ecx, 0x1f
add r14d, ecx
mov eax, 0x2aaaaaab
imul r9d
mov r13d, edx
shr r13d, 0x1f
add r13d, edx
mov eax, 0x92492493
imul r9d
lea esi, [r9 + rdx]
sar esi, 2
mov eax, esi
shr eax, 0x1f
add esi, eax
lea r10, [rbp - 0x4f]
nop word [rax + rax]
movzx r8d, r9b
sub r8b, r11b
mov ebx, r12d
mov edi, 0xe
mov r12d, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x38]
nop dword [rax]
mov eax, r9d
cdq
idiv ebx
movzx eax, dl
imul r8b
movzx ecx, al
movzx eax, r9b
imul cl
mov byte [r10 - 1], al
movzx eax, r8b
imul r12b
movzx ecx, al
movzx eax, dl
imul cl
mov byte [r10], al
movzx eax, dl
imul r8b
movzx ecx, al
movzx eax, r15b
imul cl
mov byte [r10 + 1], al
movzx eax, r8b
imul r11b
movzx ecx, al
movzx eax, dl
imul cl
mov byte [r10 + 2], al
movzx eax, dl
imul r8b
movzx ecx, al
movzx eax, r14b
imul cl
mov byte [r10 + 3], al
movzx eax, r8b
imul r13b
movzx ecx, al
movzx eax, dl
imul cl
mov byte [r10 + 4], al
movzx eax, r8b
imul sil
movzx ecx, al
movzx eax, dl
imul cl
mov byte [r10 + 5], al
inc ebx
add r10, 7
dec rdi
jne 0x1400493a0
mov r11d, dword [rsp + 0x30]
inc r11d
mov dword [rsp + 0x30], r11d
cmp r11d, 0xc
lea r12d, [rdi + 1]
jl 0x140049380
mov r14, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x34]
mov r15, qword [rsp + 0x58]
xor r10d, r10d
mov dword [rsp + 0x30], r10d
mov ecx, r8d
imul ecx, r9d
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 9
jne 0x1400494b5
test r9d, r9d
je 0x1400494ab
dec r9d
je 0x1400494a2
mov dword [0x1401bdd80], r8d
jmp 0x1400494b5
mov dword [0x1401bdd80], r10d
jmp 0x1400494b5
mov dword [0x1401bdd80], 2
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
mov rax, qword [r14]
or esi, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x140049560
lea r8, [0x1401496d0]
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.14001aed0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140049547
cmp dword [rbx + 0x10], 0
jl 0x140049538
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140049538
call fcn.1400024f0
mov rdi, rax
lock add dword [rbx + 0x10], esi
jg 0x14004952d
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 + 0x48], rax
jmp 0x140049547
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.1400023a0
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140049560
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140047880
nop
mov r8, rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x78]
call fcn.14000feb0
nop
mov r13, qword [rax]
lea rcx, [r13 - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x1400496ec
cmp dword [rdi + 0x10], 0
jl 0x1400495e8
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400495e8
call fcn.1400024f0
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x1400495da
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x40], rax
jmp 0x1400496ec
movsxd r14, dword [r13 - 0x10]
test r14d, r14d
jne 0x14004964c
mov r14, qword [rdi]
cmp dword [rdi + 8], 0
je 0x1400496e7
cmp dword [rdi + 0x10], 0
jge 0x140049622
cmp dword [rbx - 0xc], 0
jge 0x140049615
mov ecx, 0x80070057
call fcn.140001920
int3
xor eax, eax
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x1400496e7
lock add dword [rdi + 0x10], 0xffffffff
jg 0x140049635
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
jmp 0x1400496e7
test r13, r13
jne 0x14004965c
mov ecx, 0x80070057
call fcn.140001920
int3
mov eax, dword [rbx - 0x10]
mov dword [rsp + 0x34], eax
mov r15, r13
sub r15, rbx
sar r15, 1
test r14d, r14d
jns 0x14004967c
mov ecx, 0x80070057
call fcn.140001920
int3
sub r12d, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, r14d
or eax, r12d
jge 0x14004969d
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140002490
mov rbx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x34]
lea rdi, [r14 + r14]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
mov r9, rdi
add rdx, rdx
cmp r15, rax
ja 0x1400496c2
lea r8, [rbx + r15*2]
call fcn.1400cc30c
jmp 0x1400496ca
mov r8, r13
call fcn.1400cc4cc
cmp r14d, dword [rbx - 0xc]
jg 0x1400496dc
mov dword [rbx - 0x10], r14d
xor eax, eax
mov word [rdi + rbx], ax
jmp 0x1400496e7
mov ecx, 0x80070057
call fcn.140001920
int3
mov r14, qword [rsp + 0x50]
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140049705
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 0x14004971d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140049797
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004975b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140049779
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 0x140049790
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x140049840
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov ecx, dword [rsp + 0x30]
mov rax, qword [rsp + 0x78]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1400497ee
cmp dword [rsp + 0x38], 4
jne 0x1400497ee
mov dil, 1
jmp 0x1400497f1
xor dil, dil
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140049806
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140049824
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 0x14004983c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, dil
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.1400cbae0
add rsp, 0x568
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret