Function at 0x140071a50
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
movsxd rsi, edx
mov rdi, rcx
mov r13b, 1
xor r14d, r14d
mov dword [rbp + 0x7f], r14d
mov dword [rbp + 0x77], r14d
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x49], rbx
mov rax, qword [rdi + 0xb0]
sub rax, qword [rdi + 0xa8]
sar rax, 6
test esi, esi
js 0x140071e41
cmp esi, eax
jge 0x140071e41
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140071e3e
lea r9, [rbp + 0x7f]
lea r8d, [r14 + 3]
mov edx, esi
call fcn.140089390
cmp dword [rbp + 0x7f], r14d
jne 0x140071e41
lea r9, [rbp + 0x77]
lea r8d, [r14 + 1]
mov edx, esi
mov rcx, qword [rdi + 0x38]
call fcn.140089390
lea r9d, [r14 + 1]
lea r8d, [r14 + 3]
mov edx, esi
mov rcx, qword [rdi + 0x38]
call fcn.140089570
mov r11, rsi
shl r11, 6
mov rax, qword [rdi + 0xa8]
lea rdx, [r11 + rax + 8]
mov rcx, qword [rdi + 0x30]
call fcn.1400230c0
mov qword [rbp - 0x41], r14
mov dword [rbp - 0x39], r14d
mov qword [rbp - 0x31], r14
mov r9d, 0x20006
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x41]
call fcn.140008440
lea r15, [0x1400e2b48]
test eax, eax
jne 0x140071b9e
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
lea r9d, [r14 + 1]
xor r8d, r8d
lea rdx, str.RebootFlg
mov r12, qword [rbp - 0x41]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test r12, r12
je 0x140071bad
mov rcx, r12
jmp 0x140071ba7
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140071bad
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x29], r14
mov dword [rbp - 0x21], r14d
mov qword [rbp - 0x19], r14
mov r9d, 0x20006
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x29]
call fcn.140008440
test eax, eax
jne 0x140071c17
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
mov r9d, 1
xor r8d, r8d
lea rdx, str.InstallFlg
mov r12, qword [rbp - 0x29]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test r12, r12
je 0x140071c26
mov rcx, r12
jmp 0x140071c20
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140071c26
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.14001a970
cmp eax, 9
jne 0x140071d26
mov qword [rbp - 0x11], r14
mov dword [rbp - 9], r14d
mov qword [rbp - 1], r14
mov r9d, 0x20206
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x11]
call fcn.140008440
test eax, eax
jne 0x140071c9e
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
mov r9d, 1
xor r8d, r8d
lea rdx, str.RebootFlg
mov r12, qword [rbp - 0x11]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test r12, r12
je 0x140071cad
mov rcx, r12
jmp 0x140071ca7
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140071cad
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 7], r14
mov dword [rbp + 0xf], r14d
mov qword [rbp + 0x17], r14
mov r9d, 0x20206
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 7]
call fcn.140008440
test eax, eax
jne 0x140071d17
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
mov r9d, 1
xor r8d, r8d
lea rdx, str.InstallFlg
mov r12, qword [rbp + 7]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test r12, r12
je 0x140071d26
mov rcx, r12
jmp 0x140071d20
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140071d26
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, esi
mov rcx, rdi
call fcn.14006ec20
mov edx, esi
mov rcx, qword [rdi + 0x38]
test al, al
je 0x140071e2f
mov byte [rdi + 0xd], 1
mov r9d, 1
lea r8d, [r9 + 4]
call fcn.140089570
lea r11, [rbp - 0x49]
mov qword [rsp + 0x20], r11
lea r9, str.RebootFlg
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
mov rcx, rdi
call fcn.1400660a0
mov rbx, qword [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll__wtoi]
mov r12d, eax
mov qword [rsp + 0x20], r15
lea r9, str.RebootFlg
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
mov rcx, rdi
call fcn.140065880
call fcn.14001a970
cmp eax, 9
jne 0x140071e0f
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, str.RebootFlg
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
mov rcx, rdi
call fcn.140066230
mov qword [rsp + 0x20], r15
lea r9, str.RebootFlg
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
mov rcx, rdi
call fcn.140065940
mov rbx, qword [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll__wtoi]
cmp eax, r12d
cmovg r12d, eax
cmp r12d, dword [rbp + 0x77]
jle 0x140071e41
mov dword [rbp + 0x77], r12d
mov r9d, r12d
mov r8d, 1
mov edx, esi
mov rcx, qword [rdi + 0x38]
call fcn.140089570
jmp 0x140071e41
mov r9d, dword [rdi + 0x20]
mov r8d, 7
call fcn.140089570
xor r13b, r13b
lea rcx, str.CPatchUpdateController::Install:EndInstall
call fcn.1400191f0
nop
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140071e6a
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
movzx eax, r13b
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret