Function at 0x140048090
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 - 0x17]
sub rsp, 0x98
mov qword [rbp - 9], 0xfffffffffffffffe
mov r13, r9
mov r14, r8
mov r15, rdx
mov qword [rbp - 0x21], rcx
mov r12, qword [rbp + 0x7f]
mov qword [rbp - 1], r12
mov dword [rbp - 0x51], 0x1fffff
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x49], rbx
mov rax, qword [r12]
or rdi, 0xffffffffffffffff
cmp dword [rax - 0x10], 0
je 0x140048171
lea r8, [0x1401496d0]
mov rdx, r12
lea rcx, [rbp - 0x29]
call fcn.14001aed0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140048159
cmp dword [rbx + 0x10], 0
jl 0x14004814b
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004814b
call fcn.1400024f0
mov rsi, rax
lock add dword [rbx + 0x10], edi
jg 0x140048141
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rbp - 0x49], rax
jmp 0x140048159
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x49]
call fcn.1400023a0
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140048171
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 [rbp - 0x39], rbx
xor r8d, r8d
mov rdx, r14
lea rcx, [rbp - 0x11]
call fcn.140047880
nop
mov r8, rax
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x19]
call fcn.14000feb0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400481fd
cmp dword [rbx + 0x10], 0
jl 0x1400481ef
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400481ef
call fcn.1400024f0
mov rsi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x1400481e5
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rbp - 0x39], rax
jmp 0x1400481fd
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x39]
call fcn.1400023a0
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140048216
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004822e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x39]
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400482a5
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140048269
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140048286
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004829e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x1400483d6
lea rax, [rbp - 0x51]
mov qword [rsp + 0x28], rax
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x41]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400482d3
mov ecx, dword [rbp - 0x51]
jmp 0x1400482dd
mov eax, dword [rbp - 0x51]
inc eax
mov dword [rbp - 0x51], eax
mov ecx, eax
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.1400cb128
mov rsi, rax
mov r8d, dword [rbp - 0x51]
add r8, r8
xor edx, edx
mov rcx, rax
call fcn.1400d0f20
mov eax, dword [rbp - 0x51]
add eax, eax
mov dword [rbp - 0x51], eax
lea rax, [rbp - 0x51]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x41]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test eax, eax
jne 0x140048362
mov ecx, dword [rbp - 0x51]
mov word [rsi + rcx*2], r14w
test rsi, rsi
je 0x140048353
mov rax, rdi
inc rax
cmp word [rsi + rax*2], r14w
jne 0x140048346
mov r14d, eax
mov r8d, r14d
mov rdx, rsi
mov rcx, qword [rbp - 0x21]
call fcn.1400023a0
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.1400cc208
test r15d, r15d
jne 0x140048384
cmp dword [rbp - 0x41], 1
jne 0x140048384
mov sil, 1
jmp 0x140048387
xor sil, sil
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004839c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x1400483b9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400483d2
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, sil
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret