Function at 0x140098690
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov rdx, r8
lea rcx, [rsp + 0x40]
call fcn.140097ee0
nop
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140097700
nop
xor r12d, r12d
mov qword [rbp - 0x78], r12
lea rcx, [rsp + 0x48]
call fcn.14000b320
mov rdx, rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140098bdd
mov r13, qword [rbp - 0x78]
test r13, r13
je 0x140098bdd
lea rcx, [rsp + 0x40]
call fcn.14000b320
mov rdx, rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x80]
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140098774
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x48]
lock dec dword [rcx]
jne 0x14009876f
mov rcx, qword [rsp + 0x48]
call fcn.14000ade0
nop
jmp 0x140098bf2
xor r8d, r8d
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400052f0
nop
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x30]
cmp ecx, 1
jne 0x1400987a1
lea rcx, [rax + 0x18]
cmp qword [rax + 0x10], rcx
je 0x1400987b3
mov edx, dword [rax + 8]
lea rcx, [rsp + 0x30]
call fcn.140005410
mov rax, qword [rsp + 0x30]
mov rbx, qword [rax + 0x10]
lea rcx, [rsp + 0x40]
call fcn.14000b320
mov rdx, rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14009881f
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x30]
lock dec dword [rcx]
jne 0x140098805
mov rcx, qword [rsp + 0x30]
call fcn.140004d80
nop
mov rax, qword [rsp + 0x48]
lock dec dword [rax]
jne 0x14009881a
mov rcx, qword [rsp + 0x48]
call fcn.14000ade0
nop
jmp 0x140098bf2
or ebx, 0xffffffff
mov edx, dword [rbp - 0x80]
cmp edx, 0xb
ja case.0x140098840.6
lea r8, [0x140000000]
mov ecx, dword [r8 + rdx*4 + 0x98c28]
add rcx, r8
jmp rcx
lea rax, [0x140dd80a8]
mov qword [rsp + 0x58], rax
lock inc dword [0x140dd80a8]
cmp dword [rsp + 0x38], 0
je 0x140098893
mov rax, qword [rsp + 0x30]
mov r8d, ebx
mov rdx, qword [rax + 0x10]
lea rcx, [rbp - 0x68]
call fcn.14000ed80
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov qword [rax], rdx
mov rax, qword [rbp - 0x68]
lock dec dword [rax]
jne 0x140098893
mov rcx, qword [rbp - 0x68]
call fcn.14000ade0
test rsi, rsi
je 0x1400988d4
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x30]
call fcn.14005fd30
mov rcx, qword [rsi]
mov edx, dword [rsi + 8]
mov dword [rsp + 0x78], edx
mov rdx, qword [rax]
mov qword [rsi], rdx
mov rdx, qword [rax + 8]
mov qword [rsi + 8], rdx
mov qword [rax], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rax + 8], rcx
lea rcx, [rbp - 0x30]
call fcn.140050130
nop
mov rax, qword [rsp + 0x58]
lock dec dword [rax]
jne 0x140098b91
mov rcx, qword [rsp + 0x58]
call fcn.14000ade0
jmp 0x140098b91
lea rax, [0x140dd81d8]
mov qword [rsp + 0x68], rax
lock inc dword [0x140dd81d8]
cmp dword [rsp + 0x38], 0
je 0x1400989a1
mov rax, qword [rsp + 0x30]
mov r8d, ebx
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x50]
call fcn.14000ed80
nop
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 8]
lea edi, [rcx + 1]
test ecx, ecx
je 0x140098992
nop word [rax + rax]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.140003d80
nop
mov rax, qword [rsp + 0x50]
lock dec dword [rax]
jne 0x140098964
mov rcx, qword [rsp + 0x50]
call fcn.14000ade0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x10]
movsxd rax, edi
lea rdx, [rcx + rax*2]
mov r8d, ebx
lea rcx, [rsp + 0x50]
call fcn.14000ed80
nop
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 8]
lea edi, [rdi + rcx + 1]
test ecx, ecx
jne 0x140098940
lock dec dword [rax]
jne 0x1400989a1
mov rcx, qword [rsp + 0x50]
call fcn.14000ade0
test rsi, rsi
je 0x1400989e2
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x20]
call fcn.1400606f0
mov rcx, qword [rsi]
mov edx, dword [rsi + 8]
mov dword [rsp + 0x78], edx
mov rdx, qword [rax]
mov qword [rsi], rdx
mov rdx, qword [rax + 8]
mov qword [rsi + 8], rdx
mov qword [rax], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rax + 8], rcx
lea rcx, [rbp - 0x20]
call fcn.140050130
nop
mov rax, qword [rsp + 0x68]
lock dec dword [rax]
jne 0x140098b91
mov r12, qword [rsp + 0x68]
movsxd rax, dword [r12 + 0xc]
lea rdi, [r12 + rax*8 + 0x18]
movsxd rax, dword [r12 + 8]
lea rsi, [r12 + rax*8 + 0x18]
cmp rsi, rdi
je 0x140098a29
nop
sub rdi, 8
mov rdx, qword [rdi]
lock dec dword [rdx]
jne 0x140098a24
mov rcx, qword [rdi]
call fcn.14000ade0
cmp rdi, rsi
jne 0x140098a10
mov rcx, r12
call fcn.140004d80
jmp 0x140098b91
lea rax, [0x140dd80a8]
mov qword [rsp + 0x60], rax
lock inc dword [0x140dd80a8]
cmp dword [rsp + 0x38], 0
je 0x140098a8f
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + 8]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov rdx, qword [rcx + 0x10]
lea rcx, [rbp - 0x70]
call fcn.14000ed80
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rax]
mov qword [rsp + 0x60], rcx
mov qword [rax], rdx
mov rax, qword [rbp - 0x70]
lock dec dword [rax]
jne 0x140098a8f
mov rcx, qword [rbp - 0x70]
call fcn.14000ade0
test rsi, rsi
je 0x140098ad0
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 8]
call fcn.14005fd30
mov rcx, qword [rsi]
mov edx, dword [rsi + 8]
mov dword [rsp + 0x78], edx
mov rdx, qword [rax]
mov qword [rsi], rdx
mov rdx, qword [rax + 8]
mov qword [rsi + 8], rdx
mov qword [rax], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rax + 8], rcx
lea rcx, [rbp - 8]
call fcn.140050130
nop
mov rax, qword [rsp + 0x60]
lock dec dword [rax]
jne 0x140098b91
mov rcx, qword [rsp + 0x60]
call fcn.14000ade0
jmp 0x140098b91
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x10]
test rsi, rsi
je 0x140098b91
mov edx, dword [rcx]
lea rcx, [rbp - 0x40]
call fcn.140050fd0
nop
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.140051020
nop
lea rcx, [rbp - 0x40]
jmp 0x140098b8c
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x10]
test rsi, rsi
je 0x140098b91
mov rdx, qword [rcx]
lea rcx, [rbp - 0x50]
call fcn.140051010
nop
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.140051020
nop
lea rcx, [rbp - 0x50]
jmp 0x140098b8c
lea rcx, [0x140d9a420]
call fcn.140015780
test rsi, rsi
je 0x140098b91
mov dword [rbp - 0x58], 0x80000000
mov qword [rbp - 0x60], r12
mov rax, qword [rsi]
mov qword [rsp + 0x70], rax
mov eax, dword [rsi + 8]
mov dword [rsp + 0x78], eax
movaps xmm0, xmmword [rbp - 0x60]
movups xmmword [rsi], xmm0
movaps xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x60], xmm1
lea rcx, [rbp - 0x60]
call fcn.140050130
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, qword [rsp + 0x30]
lock dec dword [rax]
jne 0x140098bb0
mov rcx, qword [rsp + 0x30]
call fcn.140004d80
nop
mov rax, qword [rsp + 0x48]
lock dec dword [rax]
jne 0x140098bc5
mov rcx, qword [rsp + 0x48]
call fcn.14000ade0
nop
mov rax, qword [rsp + 0x40]
lock dec dword [rax]
jne 0x140098bd9
mov rcx, qword [rsp + 0x40]
call fcn.14000ade0
mov al, 1
jmp 0x140098c08
mov rcx, qword [rsp + 0x48]
lock dec dword [rcx]
jne 0x140098bf2
mov rcx, qword [rsp + 0x48]
call fcn.14000ade0
nop
mov rax, qword [rsp + 0x40]
lock dec dword [rax]
jne 0x140098c06
mov rcx, qword [rsp + 0x40]
call fcn.14000ade0
xor al, al
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret