Function at 0x140083940
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
movzx r13d, r9b
movzx r12d, r8b
mov rsi, rdx
mov r14, rcx
mov byte [rbp - 0x6d], 0
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
xor r15d, r15d
or rbx, 0xffffffffffffffff
test rsi, rsi
je 0x1400839e2
test rsi, 0xffffffffffff0000
jne 0x1400839cf
movzx edi, si
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x1400839f6
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140001f70
jmp 0x1400839f6
xor eax, eax
mov rcx, rbx
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
jmp 0x1400839e5
mov ecx, r15d
mov r8d, ecx
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140001e80
nop
mov qword [rbp - 1], r15
mov dword [rbp + 7], r15d
mov qword [rbp + 0xf], r15
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x79], rdi
lea rcx, [rsp + 0x30]
test r12b, r12b
je 0x140083acb
mov r8d, Ordinal_61
lea rdx, str.SOFTWAREWow6432NodeSony_CorporationShared_InfoPatchDB
call fcn.140001e80
lea r8, [rsp + 0x30]
lea rdx, str.HKEY_LOCAL_MACHINE_
lea rcx, [rbp + 0x17]
call fcn.140004230
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140083ac2
cmp dword [rdi + 0x10], 0
jl 0x140083ab4
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140083ab4
call fcn.140001b90
mov rsi, rax
mov ecx, ebx
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140083aaa
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
lea rax, [rsi + 0x18]
mov qword [rbp - 0x79], rax
jmp 0x140083ac2
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x79]
call fcn.140001e80
nop
mov rdx, qword [rbp + 0x17]
jmp 0x140083b4e
mov r8d, Ordinal_49
lea rdx, str.SOFTWARESony_CorporationShared_InfoPatchDB
call fcn.140001e80
lea r8, [rsp + 0x30]
lea rdx, str.HKEY_LOCAL_MACHINE_
lea rcx, [rbp + 0x1f]
call fcn.140004230
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140083b4a
cmp dword [rdi + 0x10], 0
jl 0x140083b3c
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140083b3c
call fcn.140001b90
mov rsi, rax
mov ecx, ebx
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140083b32
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
lea rax, [rsi + 0x18]
mov qword [rbp - 0x79], rax
jmp 0x140083b4a
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x79]
call fcn.140001e80
nop
mov rdx, qword [rbp + 0x1f]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140083b68
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test r13b, r13b
je 0x140083d33
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x41], r15
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x59], rax
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x51]
lea r8, [rbp - 0x21]
mov rdx, qword [rbp - 0x79]
mov rcx, r14
call fcn.14007f2d0
mov r13, qword [rbp - 0x49]
mov r14, qword [rbp - 0x51]
sub r13, r14
sar r13, 3
test r13d, r13d
je 0x140083c79
mov r12d, r15d
jle 0x140083c79
mov rsi, r14
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x140083c0e
mov rcx, qword [rsi]
cmp dword [rcx - 0x10], 0
jl 0x140083c0e
mov rdx, rdi
call qword [sym.imp.MSVCR100.dll_wcsstr]
test rax, rax
je 0x140083c0e
sub rax, qword [rsi]
sar rax, 1
test eax, eax
je 0x140083c1c
inc r12d
add rsi, 8
cmp r12d, r13d
jge 0x140083c79
jmp 0x140083be8
movsxd rax, r12d
mov rdx, qword [r14 + rax*8]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140083c79
cmp dword [rdi + 0x10], 0
jl 0x140083c6a
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140083c6a
call fcn.140001b90
mov rsi, rax
mov ecx, ebx
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140083c5f
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x140083c79
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140001e80
nop
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140083c98
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdi, qword [rbp - 0x51]
test rdi, rdi
je 0x140083ce4
cmp rdi, qword [rbp - 0x49]
je 0x140083cdb
nop word [rax + rax]
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140083ccd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rdi, 8
cmp rdi, qword [rbp - 0x49]
jne 0x140083cb0
mov rdi, qword [rbp - 0x51]
mov rcx, rdi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
nop
mov rdi, qword [rbp - 0x21]
test rdi, rdi
je 0x140083d33
cmp rdi, qword [rbp - 0x19]
je 0x140083d2b
nop word [rax + rax]
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140083d1d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rdi, 8
cmp rdi, qword [rbp - 0x19]
jne 0x140083d00
mov rdi, qword [rbp - 0x21]
mov rcx, rdi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
lea r8, [0x1400ddd20]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x31]
call fcn.140002ce0
nop
lea r8, [rsp + 0x38]
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.140008ad0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x30]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140083db9
cmp dword [rdi + 0x10], 0
jl 0x140083daa
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140083daa
call fcn.140001b90
mov rsi, rax
mov ecx, ebx
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140083d9f
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x30], rax
jmp 0x140083db9
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140001e80
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140083dd8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140083df6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r9d, 0x20019
mov r8, qword [rsp + 0x30]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 1]
call fcn.140008440
test eax, eax
jne 0x140083f22
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x61], rdi
mov r12d, 1
mov ecx, r12d
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x140083e5c
mov edx, 0x104
lea rcx, [rbp - 0x61]
call fcn.140001c20
mov rdi, qword [rbp - 0x61]
mov dword [rbp - 0x71], 0x208
lea rax, [rbp - 0x71]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x69]
xor r8d, r8d
lea rdx, str.patchid
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140083ea9
mov eax, dword [rbp - 0x69]
cmp eax, r12d
je 0x140083e9a
cmp eax, 2
jne 0x140083ea9
test rdi, rdi
je 0x140083ea9
cmp dword [rbp - 0x71], 0
jne 0x140083ea9
mov word [rdi], r15w
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x140083f17
cmp eax, dword [rdi - 0xc]
jg 0x140083f17
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], r15w
mov rdx, qword [rsp + 0x38]
test rdx, rdx
setne r15b
test r15d, r15d
jne 0x140083ee5
mov ecx, 0x80004005
call fcn.140001000
int3
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll__wcsicmp]
mov esi, dword [rbp - 0x6d]
movzx esi, sil
test eax, eax
cmove esi, r12d
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140083f25
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140083f25
mov ecx, 0x80070057
call fcn.140001000
nop
mov esi, dword [rbp - 0x6d]
mov rdx, qword [rbp - 0x79]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140083f44
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140083f64
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x140083f74
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140083f91
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, sil
lea r11, [rsp + 0xf0]
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