Function at 0x140079770
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x130
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
movzx r15d, r9b
movzx esi, r8b
mov rbx, rdx
xor r12b, r12b
mov byte [rsp + 0x40], r12b
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
or r14, 0xffffffffffffffff
test rbx, rbx
je 0x140079810
test rbx, 0xffffffffffff0000
jne 0x1400797fd
movzx edi, bx
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x140079823
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140001f70
jmp 0x140079823
xor eax, eax
mov rcx, r14
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
jmp 0x140079812
xor ecx, ecx
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140001e80
nop
xor ebx, ebx
mov qword [rbp - 0x30], rbx
mov dword [rbp - 0x28], ebx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rbx
mov dword [rbp - 0x10], ebx
mov qword [rbp - 8], rbx
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x78], rax
lea rcx, [rbp - 0x78]
test sil, sil
je 0x14007986a
lea r8d, [rbx + 0x37]
lea rdx, str.SOFTWAREWow6432NodeSony_CorporationShared_InfoAppDB
jmp 0x140079877
mov r8d, reloc.ATL100.DLL_Ordinal_43
lea rdx, str.SOFTWARESony_CorporationShared_InfoAppDB
call fcn.140001e80
mov r9d, 0x20019
mov r8, qword [rbp - 0x78]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x30]
call fcn.140008440
test eax, eax
jne 0x14007a008
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x44], 0x104
mov esi, ebx
mov dword [rsp + 0x58], ebx
mov edx, 0x104
nop dword [rax + rax]
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, edx
or eax, ecx
jge 0x1400798f0
lea rcx, [rsp + 0x68]
call fcn.140001c20
mov rdi, qword [rsp + 0x68]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
mov r8, rdi
mov edx, esi
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x140079fe6
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x140079fdb
cmp eax, dword [rdi - 0xc]
jg 0x140079fdb
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], bx
lea r8, [0x1400ddd20]
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x58]
call fcn.140002ce0
nop
lea r8, [rsp + 0x68]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140008ad0
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140079995
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r9d, 0x20019
mov r8, qword [rsp + 0x78]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x18]
call fcn.140008440
test eax, eax
jne 0x140079ea1
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x70], rdi
mov edx, 0x104
mov dword [rsp + 0x44], edx
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, edx
or eax, ecx
jge 0x1400799ff
lea rcx, [rsp + 0x70]
call fcn.140001c20
mov edx, dword [rsp + 0x44]
mov rdi, qword [rsp + 0x70]
lea eax, [rdx + rdx]
mov dword [rbp - 0x80], eax
mov dword [rsp + 0x44], ebx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x64]
xor r8d, r8d
lea rdx, str.appid
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140079a69
mov eax, dword [rbp - 0x64]
cmp eax, 1
je 0x140079a40
cmp eax, 2
jne 0x140079a69
mov ecx, dword [rbp - 0x80]
test rdi, rdi
je 0x140079a63
test ecx, ecx
je 0x140079a60
test cl, 1
jne 0x140079a69
mov eax, ecx
shr rax, 1
cmp word [rdi + rax*2 - 2], 0
je 0x140079a63
jmp 0x140079a69
mov word [rdi], bx
shr ecx, 1
mov dword [rsp + 0x44], ecx
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x140079fc5
cmp eax, dword [rdi - 0xc]
jg 0x140079fc5
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], bx
mov r13d, ebx
test r15b, r15b
je 0x140079ac0
mov rdx, qword [rsp + 0x60]
test rdx, rdx
setne r13b
test r13d, r13d
je 0x140079f2e
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll__wcsicmp]
test eax, eax
je 0x140079ee5
jmp 0x140079b15
mov rbx, qword [rsp + 0x60]
test rbx, rbx
setne r13b
test r13d, r13d
je 0x140079fba
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll__wcsicmp]
test eax, eax
je 0x140079f70
test rbx, rbx
je 0x140079b13
cmp dword [rdi - 0x10], 0
jl 0x140079b13
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsstr]
test rax, rax
je 0x140079b13
sub rax, rdi
sar rax, 1
test eax, eax
je 0x140079f70
xor ebx, ebx
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x48], ebx
mov qword [rbp - 0x40], rbx
lea r8, str.PatchList
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x60]
call fcn.140002ce0
nop
mov r9d, 0x20019
mov r8, qword [rbp - 0x60]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x50]
call fcn.140008440
test eax, eax
jne 0x140079e51
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x50], rdi
mov edx, 0x104
mov dword [rsp + 0x48], edx
mov r12d, ebx
nop
test edx, edx
js 0x140079f65
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, edx
or eax, ecx
jge 0x140079ba8
lea rcx, [rsp + 0x50]
call fcn.140001c20
mov rdi, qword [rsp + 0x50]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x48]
mov r8, rdi
mov edx, r12d
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x140079e30
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x140079f5a
cmp eax, dword [rdi - 0xc]
jg 0x140079f5a
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], bx
lea r8, [0x1400ddd20]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x38]
call fcn.140002ce0
nop
lea r8, [rsp + 0x50]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140008ad0
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140079c4d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rbp], rbx
mov dword [rbp + 8], ebx
mov qword [rbp + 0x10], rbx
mov r9d, 0x20019
mov r8, qword [rbp - 0x70]
mov rdx, 0xffffffff80000002
lea rcx, [rbp]
call fcn.140008440
mov rsi, qword [rbp]
test eax, eax
jne 0x140079d8d
mov rdi, qword [rsp + 0x70]
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x140079cab
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140001c20
mov rdi, qword [rsp + 0x70]
mov dword [rbp - 0x7c], 0x208
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x68]
xor r8d, r8d
lea rdx, str.patchid
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140079cf6
mov eax, dword [rbp - 0x68]
cmp eax, 1
je 0x140079ce8
cmp eax, 2
jne 0x140079cf6
test rdi, rdi
je 0x140079cf6
cmp dword [rbp - 0x7c], 0
jne 0x140079cf6
mov word [rdi], bx
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x140079f4f
cmp eax, dword [rdi - 0xc]
jg 0x140079f4f
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], bx
test r15b, r15b
je 0x140079d43
test r13d, r13d
je 0x140079f39
mov rdx, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll__wcsicmp]
test eax, eax
je 0x140079de2
jmp 0x140079d8d
test r13d, r13d
je 0x140079f44
mov rbx, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll__wcsicmp]
test eax, eax
je 0x140079df8
test rbx, rbx
je 0x140079d8b
cmp dword [rdi - 0x10], 0
jl 0x140079d8b
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsstr]
test rax, rax
je 0x140079d8b
sub rax, rdi
sar rax, 1
test eax, eax
je 0x140079df8
xor ebx, ebx
inc r12d
mov dword [rsp + 0x48], 0x104
test rsi, rsi
je 0x140079da7
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jle 0x140079dcb
mov rdi, qword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
jmp 0x140079b80
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
jmp 0x140079b80
mov byte [rsp + 0x40], 1
test rsi, rsi
je 0x140079df6
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140079e0c
mov byte [rsp + 0x40], 1
test rsi, rsi
je 0x140079e0c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140079e2b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x50]
lea rdx, [rdi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140079e4b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor ebx, ebx
mov esi, dword [rsp + 0x58]
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140079e71
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140079e81
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140079ea1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov dword [rsp + 0x44], 0x104
inc esi
mov dword [rsp + 0x58], esi
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140079ecf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov edx, dword [rsp + 0x44]
test edx, edx
js 0x140079fd0
mov rdi, qword [rsp + 0x68]
jmp 0x1400798d0
mov r12b, 1
lea rdx, [rdi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140079f04
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140079f24
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x68]
jmp 0x140079fec
mov ecx, 0x80004005
call fcn.140001000
nop
mov ecx, 0x80004005
call fcn.140001000
int3
mov ecx, 0x80004005
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
nop
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
nop
mov r12b, 1
lea rdx, [rdi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140079f8f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140079f24
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x68]
jmp 0x140079fec
mov ecx, 0x80004005
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
nop
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
int3
movzx r12d, byte [rsp + 0x40]
lea rdx, [rdi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14007a008
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14007a028
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14007a038
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14007a048
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
dec r14d
test r14d, r14d
jg 0x14007a068
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, r12b
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret