Function at 0x140003dd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0x80
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r14, r8
mov rsi, rdx
mov r13, rcx
mov ecx, 8
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140003e23
lea rcx, [rsp + 0x50]
mov qword [rax], rcx
xor ebx, ebx
jmp 0x140003e28
xor ebx, ebx
mov rax, rbx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0xb8], ebx
cmp qword [rsi + 0x20], 8
jb 0x140003e57
lea rdi, [rsi + 8]
mov rdx, qword [rdi]
jmp 0x140003e5e
lea rdi, [rsi + 8]
mov rdx, rdi
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r12d, eax
test eax, eax
je 0x140003eed
cmp qword [rsi + 0x18], 0
jne 0x140003e99
lea rdi, str._default_
jmp 0x140003ea3
cmp qword [rsi + 0x20], 8
jb 0x140003ea3
mov rdi, qword [rdi]
mov r9d, eax
mov r8, rdi
lea rdx, str.RegistryKey::GetString
lea rcx, str._s:_Failed_to_get_value___S___last_error_0x_lx._n
call sub.vmtools.dll_Log
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003ecc
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov rcx, qword [rsp + 0x50]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, r12d
jmp 0x1400040b6
mov r9d, dword [rsp + 0x30]
cmp r9d, 1
je 0x140003f5b
cmp qword [rsi + 0x18], 0
jne 0x140003f08
lea rdi, str._default_
jmp 0x140003f12
cmp qword [rsi + 0x20], 8
jb 0x140003f12
mov rdi, qword [rdi]
mov r8, rdi
lea rdx, str.RegistryKey::GetString
lea rcx, str._s:_Registry_value___S__has_unexpected_type__u._n
call sub.vmtools.dll_Log
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003f38
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov rcx, qword [rsp + 0x50]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, 0xd
jmp 0x1400040b6
mov edx, dword [rsp + 0xb8]
add rdx, 2
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.140003c70
nop
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
cmp rax, rcx
jne 0x140003f8e
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rcx, qword [rsp + 0x68]
cmp qword [rsi + 0x20], 8
jb 0x140003f9a
mov rdx, qword [rdi]
jmp 0x140003f9d
mov rdx, rdi
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r12d, eax
test eax, eax
je 0x14000402c
cmp qword [rsi + 0x18], 0
jne 0x140003fd8
lea rdi, str._default_
jmp 0x140003fe2
cmp qword [rsi + 0x20], 8
jb 0x140003fe2
mov rdi, qword [rdi]
mov r9d, eax
mov r8, rdi
lea rdx, str.RegistryKey::GetString
lea rcx, str._s:_Failed_to_get_value___S___last_error__lx._n
call sub.vmtools.dll_Log
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000400b
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov rcx, qword [rsp + 0x50]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, r12d
jmp 0x1400040b6
mov rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
cmp rax, rdx
jne 0x140004046
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rdx, qword [rsp + 0x68]
mov eax, dword [rsp + 0xb8]
shr eax, 1
mov word [rdx + rax*2], bx
mov rcx, r14
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000406c
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov rcx, qword [rsp + 0x50]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
jmp 0x1400040b6
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop r12
ret