Function at 0x1400198c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [r11 - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x140293028]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r13, rcx
mov rdi, rdx
xor ecx, ecx
lea rsi, [r13 + 0x10]
mov dword [rdx], ecx
mov qword [rdx + 8], rcx
mov dword [rdx + 0x10], 0x150
movabs rdx, 0x7ffffffffffffffe
mov r12, qword [rsi + 0x10]
mov rax, rdx
sub rax, r12
cmp rax, 0xe
jb 0x140019b72
cmp qword [rsi + 0x18], 8
mov qword [r11 + 0x18], rbx
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
jb 0x140019930
mov rsi, qword [rsi]
lea r15, [r12 + 0xe]
mov qword [rbp - 0x21], rcx
mov ebx, 7
mov qword [rbp - 0x11], rcx
mov qword [rbp - 9], rcx
lea r14, [rbp - 0x21]
cmp r15, rbx
jbe 0x1400199a3
mov rbx, r15
or rbx, 7
cmp rbx, rdx
jbe 0x140019960
mov rbx, rdx
jmp 0x14001996c
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
mov rax, 0xffffffffffffffff
mov rcx, rbx
add rcx, 1
cmovb rcx, rax
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140019b78
lfence
add rcx, rcx
call fcn.140012d70
mov r14, rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 9], rbx
mov rdx, rsi
lea rbx, [r12 + r12]
mov qword [rbp - 0x11], r15
mov r8, rbx
mov rcx, r14
call fcn.1401a9040
movups xmm0, xmmword [str.VolatileFlags]
xor esi, esi
lea r8, [rbp - 0x21]
mov r9d, 0x20219
mov qword [rbp + 7], rsi
movups xmmword [rbx + r14], xmm0
lea rcx, [rbp - 1]
mov qword [rbp - 1], rsi
movsd xmm1, qword [0x14020a528]
movsd qword [rbx + r14 + 0x10], xmm1
mov eax, dword [0x14020a530]
mov dword [rbx + r14 + 0x18], eax
mov word [r14 + r15*2], si
cmp qword [rbp - 9], 8
mov rdx, qword [r13 + 8]
cmovae r8, qword [rbp - 0x21]
mov qword [rbp + 0xf], rsi
call fcn.140018800
mov rbx, qword [rbp - 1]
test eax, eax
jne 0x140019aec
lea rax, [rbp - 0x45]
mov dword [rbp - 0x45], 4
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x41]
lea rax, [rbp - 0x49]
xor r8d, r8d
lea rdx, str.RebootRequired
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140019a62
cmp dword [rbp - 0x41], 4
jne 0x140019a62
mov eax, dword [rbp - 0x49]
mov dword [rdi], eax
lea rax, [rbp - 0x3d]
mov qword [rbp - 0x29], rsi
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x39]
lea rax, [rbp - 0x29]
mov dword [rbp - 0x3d], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.RebootRequiredSince
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140019aac
cmp dword [rbp - 0x39], 0xb
jne 0x140019aac
imul rax, qword [rbp - 0x29], 0x2710
mov qword [rdi + 8], rax
lea rax, [rbp - 0x35]
mov dword [rbp - 0x35], 4
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x31]
lea rax, [rbp - 0x49]
xor r8d, r8d
lea rdx, str.RebootCredit
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140019aec
cmp dword [rbp - 0x31], 4
jne 0x140019aec
mov eax, dword [rbp - 0x49]
mov dword [rdi + 0x10], eax
test rbx, rbx
je 0x140019afa
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x140019b36
mov rcx, qword [rbp - 0x21]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019b31
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019b6c
call fcn.1401853a0
mov r14, qword [rsp + 0xa8]
mov rax, rdi
mov rbx, qword [rsp + 0xf0]
mov r15, qword [rsp + 0xa0]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140185380
add rsp, 0xb0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401b3c00
int3
call fcn.140008810
int3
call fcn.140008770
int3