Function at 0x140134350
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x140462840]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
xor r15d, r15d
mov qword [rbp + 0xf], r15
mov dword [rbp + 0x17], r15d
mov qword [rbp + 0x1f], r15
mov dword [rbp - 0x19], Ordinal_266
mov r9d, 0x20019
mov r8, qword [rcx + 0x20]
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0xf]
call fcn.14008ff80
test eax, eax
jne 0x1401344a7
mov edx, Ordinal_261
lea rcx, [rsi + 0x18]
call qword [sym.imp.mfc120u.dll_Ordinal_4855]
mov rbx, rax
mov ecx, dword [rbp - 0x19]
add ecx, ecx
mov dword [rbp - 9], ecx
mov dword [rbp - 0x19], r15d
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x11]
xor r8d, r8d
mov rdx, qword [str.SerialNumber]
mov rdi, qword [rbp + 0xf]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140134442
mov eax, dword [rbp - 0x11]
dec eax
cmp eax, 1
ja 0x140134442
mov ecx, dword [rbp - 9]
test rbx, rbx
je 0x14013443d
test ecx, ecx
je 0x140134439
test cl, 1
jne 0x140134442
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], r15w
je 0x14013443d
jmp 0x140134442
mov word [rbx], r15w
shr ecx, 1
mov dword [rbp - 0x19], ecx
or edx, 0xffffffff
lea rcx, [rsi + 0x18]
call qword [sym.imp.mfc120u.dll_Ordinal_12110]
lea rax, [rbp - 0x11]
mov qword [rbp - 9], rax
lea rdx, [rsi + 0x28]
lea rcx, [rbp - 0x11]
call qword [sym.imp.mfc120u.dll_Ordinal_280]
mov rbx, rax
lea rdx, [rsi + 0x18]
lea rcx, [rbp + 7]
call qword [sym.imp.mfc120u.dll_Ordinal_280]
nop
mov r9, rbx
lea r8, [rbp - 0x15]
mov rdx, rax
mov rcx, rsi
call fcn.1401337e0
test al, al
jne 0x14013453c
test rdi, rdi
je 0x1401344a3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0xf], r15
mov dword [rbp + 0x17], r15d
mov r9d, 0x20019
mov r8, qword [rsi + 0x20]
mov rdx, 0xffffffff80000001
lea rcx, [rbp + 0xf]
call fcn.14008ff80
mov rdi, qword [rbp + 0xf]
test eax, eax
jne 0x140134540
movsd xmm6, qword [0x1402dbe00]
movsd qword [rbp + 0x1f], xmm6
movsd qword [rbp + 0xf], xmm6
mov dword [rbp + 0x17], 0xffffffff
mov dword [rbp - 0x19], 0x18
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x11]
xor r8d, r8d
mov rdx, qword [str.AppData]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140134540
cmp dword [rbp - 0x11], 3
jne 0x140134540
movsd xmm0, qword [rbp + 0x1f]
ucomisd xmm0, xmm6
jp 0x140134529
je 0x140134540
movsd xmm0, qword [rbp + 0xf]
ucomisd xmm0, xmm6
jp 0x140134536
je 0x140134540
cmp dword [rbp + 0x17], 0xffffffff
je 0x140134540
mov bl, 1
jmp 0x140134542
xor bl, bl
test rdi, rdi
je 0x140134550
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140289bf0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret