Function at 0x180010370
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov r14, r9
mov r13, r8
mov r15, rdx
mov rbp, rcx
xor esi, esi
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x50], esi
mov rcx, qword [r9]
sub rcx, 0x18
call fcn.180001380
add rax, 0x18
mov qword [rbp], rax
mov r12d, 1
mov dword [rsp + 0x38], r12d
mov rax, qword [r13]
or edi, 0xffffffff
cmp dword [rax - 0x10], esi
je 0x180010426
mov r8, r13
lea rdx, [0x180024a78]
lea rcx, [rsp + 0x68]
call fcn.18000ef10
nop
mov rdx, rax
mov rcx, r13
call fcn.1800028e0
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180010426
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x60]
call fcn.1800101a0
nop
mov r8, r13
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.18000ee60
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x18001047f
mov ebx, esi
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], esi
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18001049f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800104be
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
jne 0x180010615
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [r15]
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18001050e
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x180010508
cmp eax, 2
jne 0x18001050e
mov esi, dword [rsp + 0x30]
shr esi, 1
lea edx, [rsi + 1]
mov rax, qword [rbp]
sub r12d, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edx
or eax, r12d
jge 0x18001052b
mov rcx, rbp
call fcn.180001770
mov r12, qword [rbp]
lea eax, [rsi + rsi]
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
je 0x180010564
xor r12d, r12d
jmp 0x1800105b0
mov eax, dword [rsp + 0x3c]
cmp eax, 1
je 0x18001057c
cmp eax, 2
je 0x18001057c
mov esi, 0xd
xor r12d, r12d
jmp 0x1800105b0
test r12, r12
je 0x1800105aa
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x1800105a3
test al, 1
jne 0x180010599
shr rax, 1
cmp word [r12 + rax*2 - 2], 0
je 0x1800105aa
mov esi, 0xd
xor r12d, r12d
jmp 0x1800105b0
xor eax, eax
mov word [r12], ax
xor r12d, r12d
mov esi, r12d
mov rcx, qword [rbp]
test rcx, rcx
jne 0x1800105be
mov eax, r12d
jmp 0x1800105cb
movsxd rdx, dword [rcx - 0xc]
call fcn.180012d2c
test eax, eax
js 0x18001060a
mov rcx, qword [rbp]
cmp eax, dword [rcx - 0xc]
jg 0x18001060a
mov dword [rcx - 0x10], eax
movsxd rdx, eax
mov rax, qword [rbp]
mov word [rax + rdx*2], r12w
test esi, esi
je 0x1800105f2
mov rdx, r14
mov rcx, rbp
call fcn.1800028e0
test rbx, rbx
je 0x18001061a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov qword [rsp + 0x48], rbx
jmp 0x18001061a
mov ecx, 0x80070057
call fcn.180001000
int3
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x180010629
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180010647
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r13]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180010666
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x180010681
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbp
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret