Function at 0x140071e90
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, 0xd0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rsp + 0x110], rbx
movsxd r12, edx
mov rdi, rcx
xor r13b, r13b
xor r15d, r15d
mov dword [rbp + 0x7f], r15d
mov dword [rbp + 0x77], r15d
mov dword [rbp - 0x71], r15d
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x79], rax
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x69], rbx
mov rax, qword [rdi + 0xb0]
sub rax, qword [rdi + 0xa8]
sar rax, 6
test r12d, r12d
js 0x140072513
cmp r12d, eax
jge 0x140072513
lea r9, [rbp + 0x7f]
xor r8d, r8d
mov edx, r12d
mov rcx, qword [rdi + 0x38]
call fcn.140089390
lea r9, [rbp + 0x77]
lea r8d, [r15 + 2]
mov edx, r12d
mov rcx, qword [rdi + 0x38]
call fcn.140089390
lea r9, [rbp - 0x71]
lea r8d, [r15 + 1]
mov edx, r12d
mov rcx, qword [rdi + 0x38]
call fcn.140089390
lea r9d, [r15 + 1]
lea r8d, [r15 + 4]
mov edx, r12d
mov rcx, qword [rdi + 0x38]
call fcn.140089570
mov r11, r12
shl r11, 6
mov rax, qword [rdi + 0xa8]
lea rdx, [r11 + rax + 8]
mov rcx, qword [rdi + 0x30]
call fcn.1400230c0
mov qword [rbp - 0x51], r15
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SOFTWARESony_CorporationVAIO_Update
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea r14, [0x1400e2b48]
test eax, eax
jne 0x140072005
mov rsi, qword [rbp - 0x51]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
lea r9d, [r15 + 1]
xor r8d, r8d
lea rdx, str.RebootFlg
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rsi, rsi
je 0x140072005
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x59], r15
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SOFTWARESony_CorporationVAIO_Update
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140072074
mov rsi, qword [rbp - 0x59]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, 1
xor r8d, r8d
lea rdx, str.InstallFlg
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rsi, rsi
je 0x140072074
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.14001a970
cmp eax, 9
jne 0x140072174
mov qword [rbp - 0x11], r15
mov dword [rbp - 9], r15d
mov qword [rbp - 1], r15
mov r9d, 0x20206
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x11]
call fcn.140008440
test eax, eax
jne 0x1400720ec
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, 1
xor r8d, r8d
lea rdx, str.RebootFlg
mov rsi, qword [rbp - 0x11]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rsi, rsi
je 0x1400720fb
mov rcx, rsi
jmp 0x1400720f5
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1400720fb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x29], r15
mov dword [rbp - 0x21], r15d
mov qword [rbp - 0x19], r15
mov r9d, 0x20206
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x29]
call fcn.140008440
test eax, eax
jne 0x140072165
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, 1
xor r8d, r8d
lea rdx, str.InstallFlg
mov rsi, qword [rbp - 0x29]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rsi, rsi
je 0x140072174
mov rcx, rsi
jmp 0x14007216e
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140072174
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, r12d
mov rcx, rdi
call fcn.14006ec20
movzx r13d, al
mov edx, r12d
mov rcx, qword [rdi + 0x38]
test al, al
je 0x140072501
mov byte [rdi + 0xe], 1
mov r9d, 1
lea r8d, [r9 + 5]
call fcn.140089570
lea r11, [rbp - 0x69]
mov qword [rsp + 0x20], r11
lea r9, str.InstallFlg
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
mov rcx, rdi
call fcn.1400660a0
mov qword [rbp - 0x61], r15
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SOFTWARESony_CorporationVAIO_Update
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007223a
mov rbx, qword [rbp - 0x61]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, 1
xor r8d, r8d
lea rdx, str.InstallFlg
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x14007223a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rbp - 0x69]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll__wtoi]
mov esi, eax
call fcn.14001a970
cmp eax, 9
jne 0x140072308
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
lea r9, str.InstallFlg
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
mov rcx, rdi
call fcn.140066230
mov rbx, qword [rbp - 0x69]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll__wtoi]
cmp eax, esi
cmovg esi, eax
mov qword [rbp + 7], r15
mov dword [rbp + 0xf], r15d
mov qword [rbp + 0x17], r15
mov r9d, 0x20206
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 7]
call fcn.140008440
test eax, eax
jne 0x1400722f9
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, 1
xor r8d, r8d
lea rdx, str.InstallFlg
mov r14, qword [rbp + 7]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test r14, r14
je 0x140072308
mov rcx, r14
jmp 0x140072302
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140072308
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, dword [rbp + 0x7f]
test r9d, r9d
jne 0x140072315
test esi, esi
je 0x14007232f
cmp esi, r9d
cmovg r9d, esi
mov dword [rbp + 0x7f], r9d
xor r8d, r8d
mov edx, r12d
mov rcx, qword [rdi + 0x38]
call fcn.140089570
lea rax, [rbp - 0x79]
mov qword [rsp + 0x20], rax
lea r9, str.RebootFlg
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
mov rcx, rdi
call fcn.1400660a0
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.MSVCR100.dll__wtoi]
mov esi, eax
mov qword [rbp - 0x49], r15
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SOFTWARESony_CorporationVAIO_Update
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400723db
mov r14, qword [rbp - 0x49]
lea rcx, [0x1400e2b48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
lea rax, [0x1400e2b48]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.RebootFlg
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test r14, r14
je 0x1400723db
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.14001a970
cmp eax, 9
jne 0x1400724a2
lea rax, [rbp - 0x79]
mov qword [rsp + 0x20], rax
lea r9, str.RebootFlg
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
mov rcx, rdi
call fcn.140066230
test al, al
je 0x140072422
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.MSVCR100.dll__wtoi]
cmp eax, esi
cmovg esi, eax
mov qword [rbp - 0x41], r15
mov dword [rbp - 0x39], r15d
mov qword [rbp - 0x31], r15
mov r9d, 0x20206
lea r8, str.SOFTWARESony_CorporationVAIO_Update
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x41]
call fcn.140008440
test eax, eax
jne 0x140072493
lea r14, [0x1400e2b48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, 1
xor r8d, r8d
lea rdx, str.RebootFlg
mov r14, qword [rbp - 0x41]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test r14, r14
je 0x1400724a2
mov rcx, r14
jmp 0x14007249c
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x1400724a2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp + 0x7f], 0
je 0x1400724bb
cmp esi, dword [rbp + 0x77]
jle 0x14007252c
mov dword [rbp + 0x77], esi
mov r9d, esi
mov r8d, 2
jmp 0x14007251f
mov eax, dword [rbp - 0x71]
cmp eax, esi
jl 0x1400724c7
mov dword [rbp + 0x77], eax
jmp 0x1400724df
mov dword [rbp + 0x77], esi
mov r9d, esi
mov r8d, 1
mov edx, r12d
mov rcx, qword [rdi + 0x38]
call fcn.140089570
mov r9d, 1
lea r8d, [r9 + 2]
mov edx, r12d
mov rcx, qword [rdi + 0x38]
call fcn.140089570
mov byte [rdi + 0xd], 1
mov r8d, 5
jmp 0x140072519
mov r9d, dword [rdi + 0x20]
mov r8d, 7
call fcn.140089570
xor r13b, r13b
mov r8d, 3
mov r9d, 1
mov edx, r12d
mov rcx, qword [rdi + 0x38]
call fcn.140089570
nop
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14007254a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rbp - 0x79]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140072566
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, r13b
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret