Function at 0x140066f50
Capabilities:
Query or enumerate registry value

Disassembly:
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 [rsp + 0xb0], rbx
mov r12, rdx
mov edi, ecx
mov byte [rbp + 0x50], 0
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x30], rax
mov r8d, edi
lea rdx, str.Module_d
lea rcx, [rbp - 0x30]
call fcn.140004440
xor r13d, r13d
mov qword [rbp - 0x18], r13
mov dword [rbp - 0x10], r13d
mov qword [rbp - 8], r13
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x28], rbx
mov r9d, 0x2001f
lea r8, str.SOFTWARESony_CorporationVAIO_UpdatePatchListFromVUAX
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x18]
call fcn.140008440
or r14, 0xffffffffffffffff
test eax, eax
jne 0x140067273
mov dword [rbp + 0x58], r13d
mov r15d, r13d
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x3c]
xor r8d, r8d
mov rdi, qword [rbp - 0x30]
mov rdx, rdi
mov rsi, qword [rbp - 0x18]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140067047
cmp dword [rbp - 0x3c], 7
jne 0x140067047
mov r15d, dword [rbp + 0x58]
shr r15d, 1
jns 0x140067047
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r15d
or eax, ecx
jge 0x140067069
mov edx, r15d
lea rcx, [rbp - 0x28]
call fcn.140001c20
mov rbx, qword [rbp - 0x28]
test rbx, rbx
je 0x140067074
cmp r15d, 2
jb 0x1400670e7
lea eax, [r15 + r15]
mov dword [rbp - 0x40], eax
mov r15d, r13d
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x38]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400670e7
cmp dword [rbp - 0x38], 7
jne 0x1400670e7
mov eax, dword [rbp - 0x40]
test rbx, rbx
je 0x1400670d8
test al, 1
jne 0x1400670e7
mov ecx, eax
shr ecx, 1
cmp ecx, 1
jb 0x1400670e7
mov edx, eax
shr rdx, 1
cmp word [rbx + rdx*2 - 2], r15w
jne 0x1400670e7
cmp ecx, 1
jbe 0x1400670d8
cmp word [rbx + rdx*2 - 4], r15w
jne 0x1400670e7
mov r15d, eax
shr r15d, 1
mov dil, 1
mov byte [rbp + 0x50], dil
jmp 0x1400670ea
xor dil, dil
mov eax, r15d
cmp r15d, 0xffffffff
jne 0x140067100
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x140067268
cmp eax, dword [rbx - 0xc]
jg 0x140067268
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
test rsi, rsi
je 0x14006712d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x18], r13
mov dword [rbp - 0x10], r13d
test dil, dil
je 0x140067276
mov rsi, rbx
nop dword [rax]
mov ecx, r13d
test r13d, r13d
je 0x140067206
dec ecx
je 0x1400671f6
dec ecx
je 0x1400671cb
dec ecx
je 0x14006719d
dec ecx
jne 0x140067233
cmp word [rsi], 0x7c
jne 0x140067181
lea rcx, [r12 + 0x20]
mov r8d, 1
lea rdx, [0x1400e2b48]
jmp 0x14006722e
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [r12 + 0x20]
jmp 0x14006722b
cmp word [rsi], 0x7c
jne 0x1400671b2
lea rcx, [r12 + 0x18]
call fcn.140001a60
jmp 0x140067233
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [r12 + 0x18]
jmp 0x14006722b
cmp word [rsi], 0x7c
jne 0x1400671dd
lea rcx, [r12 + 0x10]
call fcn.140001a60
jmp 0x140067233
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [r12 + 0x10]
jmp 0x14006722b
mov rcx, rsi
call qword [sym.imp.MSVCR100.dll__wtoi64]
mov qword [r12 + 8], rax
jmp 0x140067233
cmp word [rsi], 0x7c
jne 0x140067216
mov rcx, r12
call fcn.140001a60
jmp 0x140067233
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, r12
mov rdx, rsi
call fcn.140001e80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
movsxd rcx, eax
lea rsi, [rsi + rcx*2]
inc r13d
cmp eax, 1
je 0x140067262
mov eax, r15d
lea rcx, [rbx + rax*2]
cmp rsi, rcx
ja 0x140067262
test rsi, rsi
jne 0x140067140
movzx edi, byte [rbp + 0x50]
jmp 0x140067276
mov ecx, 0x80070057
call fcn.140001000
int3
xor dil, dil
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140067292
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400672a2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
dec r14d
test r14d, r14d
jg 0x1400672c1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, dil
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret