Function at 0x140099f3c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r12, rdx
mov rbx, rcx
xor r13d, r13d
mov r14b, r13b
lea rdx, [0x140008c60]
lea rcx, [rbp - 0x38]
call fcn.140011450
nop
test rbx, rbx
jne 0x140099f84
mov eax, r13d
jmp 0x140099f92
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r13w
jne 0x140099f88
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.140010e38
mov rbx, r13
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r13
mov qword [rbp - 0x30], r13
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rbp - 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14009a156
mov rbx, qword [rbp - 0x30]
mov qword [rbp - 0x18], rbx
mov dword [rbp + 0x50], 4
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x58]
xor r8d, r8d
lea rdx, [0x14009a1a8]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009a156
cmp dword [rbp + 0x58], 4
jne 0x14009a156
mov eax, r13d
test eax, eax
jne 0x14009a156
mov r15d, r13d
cmp dword [rbp + 0x40], r13d
jbe 0x14009a156
lea edi, [r13 + 1]
mov rax, qword [section..data]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140015690]
lea rcx, section..data
call rbx
add rax, 0x18
mov qword [rbp - 0x40], rax
mov r9d, r15d
lea r8, [0x14009a1a8]
lea rdx, [0x14009a1c0]
lea rcx, [rbp - 0x40]
call fcn.1400157a0
mov rax, qword [section..data]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140015690]
lea rcx, section..data
call rbx
add rax, 0x18
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x28]
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x18]
call fcn.1400d252c
mov rbx, qword [rbp - 0x28]
test eax, eax
js 0x14009a0ed
test r12, r12
je 0x14009a0ed
cmp dword [rbx - 0x10], r13d
jl 0x14009a0ed
mov rdx, r12
mov rcx, rbx
call fcn.140029900
test rax, rax
je 0x14009a0ed
sub rax, rbx
sar rax, 1
movzx r14d, r14b
test eax, eax
cmovns r14d, edi
lea rsi, [rbx - 0x18]
lock add dword [rsi + 0x10], 0xffffffff
jg 0x14009a118
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
mov rdx, rsi
mov rcx, rdi
call rbx
mov edi, 1
mov rsi, qword [rbp - 0x40]
lock add dword [rsi - 8], 0xffffffff
jg 0x14009a145
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov edi, 1
add r15d, edi
cmp r15d, dword [rbp + 0x40]
jb 0x14009a045
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x14009a165
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rsi, qword [rbp - 0x38]
lock add dword [rsi - 8], 0xffffffff
jg 0x14009a18d
mov rdi, qword [rsi - 0x18]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call qword [fcn.140015690]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov al, r14b
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret