Function at 0x14001d8e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r15, rdx
mov esi, ecx
xor r13d, r13d
mov qword [rsp + 0x40], r13
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWARESony_CorporationShared_InfoVersionPath_
test rdx, 0xffffffffffff0000
jne 0x14001d977
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x14001d988
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140001f70
jmp 0x14001d988
mov r8d, 0x32
lea rcx, [rsp + 0x38]
call fcn.140001e80
nop
mov r8d, 0xb
lea rdx, [0x1400de340]
lea rcx, [rsp + 0x38]
call fcn.140003c10
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
or esi, 0x20019
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movsxd rsi, eax
or r12, 0xffffffffffffffff
test eax, eax
jne 0x14001dbd7
mov dword [rsp + 0x48], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.Version
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rsi, eax
test eax, eax
jne 0x14001dbc7
mov ecx, dword [rsp + 0x30]
inc ecx
mov eax, 2
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.1400ca8e8
mov r14, rax
mov ecx, dword [rsp + 0x30]
inc ecx
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
test r14, r14
je 0x14001dbc2
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.Version
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rsi, eax
test eax, eax
jne 0x14001dbb8
xor eax, eax
mov rcx, r12
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140001e80
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 0x10], 0
jne 0x14001dac7
lea esi, [r12 + 9]
jmp 0x14001dbb8
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.14001a890
nop
mov r9d, reloc.ATL100.DLL_Ordinal_64
lea r8d, [r9 - 0x3f]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400198b0
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x60]
jne 0x14001db10
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP100.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
jmp 0x14001db18
xor edx, edx
call qword [sym.imp.MSVCP100.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool____ptr64]
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + rcx + 0x60]
test byte [rax + 0x10], 6
cmovne rax, r13
test rax, rax
je 0x14001dba9
mov word [rbp + 0x70], r13w
xor edx, edx
mov r8d, 0xc6
lea rcx, [rbp + 0x72]
call sub.MSVCR100.dll_memset
mov r8d, 0x64
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP100.dll_public:_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::getline_wchar_t____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [r15], rax
mov rcx, rsi
mov esi, 8
test rax, rax
cmove rcx, rsi
mov rsi, rcx
lea rcx, [rsp + 0x70]
call fcn.14001a750
test rax, rax
jne 0x14001dbae
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x60]
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP100.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
jmp 0x14001dbae
mov esi, 2
lea rcx, [rsp + 0x60]
call fcn.14001aca0
mov rcx, r14
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
jmp 0x14001dbc7
mov esi, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r13
test rsi, rsi
sete r13b
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001dbfa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x14001dc1a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, r13d
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400cafa0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x250
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret