Function at 0x1400d2660
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5008]
mov eax, 0x5108
call fcn.140323790
sub rsp, rax
mov rax, qword [0x1405a9ae8]
xor rax, rsp
mov qword [rbp + 0x4ff0], rax
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r8
mov edi, edx
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x34], r14d
mov rdx, r9
lea rcx, [rbp + 0xa8]
call fcn.1400d6680
mov r13, rax
add rsi, 8
mov r12, qword [rsi + 0x10]
movabs rax, 0x7ffffffffffffffe
mov rcx, rax
sub rcx, r12
cmp rcx, 1
jb 0x1400d2f89
cmp qword [rsi + 0x18], 8
jb 0x1400d26e8
mov rsi, qword [rsi]
mov qword [rbp + 0x68], r14
lea r15, [r12 + 1]
mov ebx, 7
lea r14, [rbp + 0x68]
cmp r15, rbx
jbe 0x1400d2730
mov rbx, r15
or rbx, 7
cmp rbx, rax
jbe 0x1400d2710
mov rbx, rax
jmp 0x1400d271c
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp + 0x68]
call fcn.140032d30
mov r14, rax
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x78], r15
mov qword [rbp + 0x80], rbx
lea rbx, [r12 + r12]
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.14032409c
mov eax, 0x5c
mov word [r14 + rbx], ax
xor r12d, r12d
mov word [r14 + r15*2], r12w
mov r9, r13
lea r8, [rbp + 0x68]
movzx edx, byte [rsp + 0x30]
lea rcx, [rbp + 0xc8]
call fcn.1400ce760
nop
lea r8d, [r12 + 5]
lea rdx, str..json
lea rcx, [rbp + 0xc8]
call fcn.140032da0
mov qword [rbp + 0x88], r12
mov qword [rbp + 0x98], r12
mov qword [rbp + 0xa0], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x88], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x98], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rbp + 0xe0]
cmp rdx, 8
jb 0x1400d2813
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d280e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d280e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140322dc0
mov qword [rbp + 0xd8], r12
mov qword [rbp + 0xe0], 7
mov word [rbp + 0xc8], r12w
mov rdx, qword [rbp + 0x80]
cmp rdx, 8
jb 0x1400d2874
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d286e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d286e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140322dc0
nop
mov rdx, qword [rbp + 0xc0]
cmp rdx, 8
jb 0x1400d28bd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d28b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d28b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140322dc0
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0xc0], 7
mov word [rbp + 0xa8], r12w
lea rax, [0x1404989b8]
mov qword [rsp + 0x50], rax
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x34], 0xf
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], r14
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x4c], edx
lea rax, [rsp + 0x60]
mov qword [rbp + 0x60], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x60], rax
mov byte [rbp - 0x24], 0
mov byte [rbp - 0x2f], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x20], r12
mov rax, qword [0x1405b8758]
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x38], r12
lea rdx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 8
cmovae rdx, qword [rbp + 0x88]
mov r9d, 0x40
lea r8d, [r9 - 0x1f]
lea rcx, [rsp + 0x60]
call fcn.1400d37f0
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
je 0x1400d29ca
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x1400d29d8
add rcx, rax
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, qword [rsp + 0x50]
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x60], 6
je 0x1400d29ef
xor bl, bl
jmp 0x1400d2ede
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x110], xmm0
mov qword [rbp + 0x120], r12
mov qword [rbp + 0x128], r12
mov qword [rbp + 0x138], r12
mov qword [rbp + 0x140], 0xf
mov byte [rbp + 0x128], 0
mov qword [rbp + 0x148], r12
mov qword [rbp + 0x158], r12
mov qword [rbp + 0x160], 0xf
mov byte [rbp + 0x148], 0
mov qword [rbp + 0x168], r12
mov qword [rbp + 0x178], r12
mov qword [rbp + 0x180], 0xf
mov byte [rbp + 0x168], 0
mov qword [rbp + 0x188], r12
mov qword [rbp + 0x1a0], 0xf
mov qword [rbp + 0x198], 5
mov eax, dword [str.stdio]
mov dword [rbp + 0x188], eax
movzx eax, byte [0x1404989c4]
mov byte [rbp + 0x18c], al
mov byte [rbp + 0x18d], 0
lea r8, [rsp + 0x50]
mov edx, edi
lea rcx, [rbp + 0x110]
call fcn.1400d06c0
test al, al
je 0x1400d2ecb
cmp qword [rbp - 0x20], 0
je 0x1400d2b3a
mov rax, qword [rsp + 0x78]
lea rcx, [rbp - 0x30]
cmp qword [rax], rcx
jne 0x1400d2ae8
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
mov qword [rax], rcx
mov rax, qword [rbp - 0x68]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x50]
mov dword [rax], edx
lea rbx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.1400cffa0
test al, al
cmove rbx, r12
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
cmovne rbx, r12
mov byte [rbp - 0x24], 0
mov byte [rbp - 0x2f], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x20], r12
mov rax, qword [0x1405b8758]
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x38], r12
test rbx, rbx
jne 0x1400d2b7e
jmp 0x1400d2b60
mov byte [rbp - 0x24], 0
mov byte [rbp - 0x2f], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x20], r12
mov rax, qword [0x1405b8758]
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x38], r12
mov rax, qword [rsp + 0x50]
movsxd r8, dword [rax + 4]
lea rcx, [rsp + 0x50]
add rcx, r8
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rdx, [rbp + 0x110]
mov rcx, qword [rsp + 0x38]
call fcn.1400cf5d0
test al, al
jne 0x1400d2ecb
mov rsi, r12
mov qword [rbp + 0xc8], r12
mov dword [rbp + 0xd0], r12d
mov qword [rbp + 0xd8], r12
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp + 0x1b0]
call fcn.1400d6680
mov rbx, rax
sub edi, 1
je 0x1400d2be0
sub edi, 1
je 0x1400d2bd7
cmp edi, 6
je 0x1400d2bd7
mov rdx, r12
jmp 0x1400d2be7
lea rdx, str.SoftwareGoogleChromeNativeMessagingHosts
jmp 0x1400d2be7
lea rdx, str.SoftwareMozillaNativeMessagingHosts
mov qword [rbp + 0x68], r12
mov qword [rbp + 0x78], r12
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], r12w
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400d2c10
lea rcx, [rbp + 0x68]
call fcn.140032f20
nop
mov r8d, 1
lea rdx, [0x1404986c0]
lea rcx, [rbp + 0x68]
call fcn.140032da0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xa8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xb8], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov r9, rbx
lea r8, [rbp + 0xa8]
movzx edx, byte [rsp + 0x30]
lea rcx, [rbp + 0xe8]
call fcn.1400ce760
nop
mov rdx, qword [rbp + 0xc0]
cmp rdx, 8
jb 0x1400d2cc6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d2cc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d2cc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140322dc0
nop
mov rdx, qword [rbp + 0x80]
cmp rdx, 8
jb 0x1400d2d0c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d2d07
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d2d07
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140322dc0
mov qword [rbp + 0x78], r12
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], r12w
mov rdx, qword [rbp + 0x1c8]
cmp rdx, 8
jb 0x1400d2d69
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d2d64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d2d64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140322dc0
lea rdx, [rbp + 0xe8]
cmp qword [rbp + 0x100], 8
cmovae rdx, qword [rbp + 0xe8]
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400d2db1
mov eax, r12d
mov rsi, qword [rsp + 0x38]
test eax, eax
jne 0x1400d2e23
xor edx, edx
mov r8d, 0x4e20
lea rcx, [rbp + 0x1d0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x34], 0x4e20
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400d2e23
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x1400d2e23
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x1400d2e69
test al, 1
jne 0x1400d2e23
shr rax, 1
cmp word [rbp + rax*2 + 0x1ce], 0
je 0x1400d2e71
xor bl, bl
mov rdx, qword [rbp + 0x100]
cmp rdx, 8
jb 0x1400d2ea1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d2e9c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d2e9c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov word [rbp + 0x1d0], r12w
lea rdx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 8
cmovae rdx, qword [rbp + 0x88]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
sete bl
jmp 0x1400d2e25
call fcn.140322dc0
mov qword [rbp + 0xf8], r12
mov qword [rbp + 0x100], 7
mov word [rbp + 0xe8], r12w
test rsi, rsi
je 0x1400d2ecd
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400d2ecd
xor bl, bl
lea rcx, [rbp + 0x110]
call fcn.1400cf310
mov rcx, qword [rsp + 0x50]
movsxd rax, dword [rcx + 4]
mov qword [rsp + rax + 0x50], r14
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x60]
call fcn.1400cef90
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 8
jb 0x1400d2f63
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d2f5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d2f5e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140322dc0
movzx eax, bl
mov rcx, qword [rbp + 0x4ff0]
xor rcx, rsp
call fcn.1403230f0
add rsp, 0x5108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140019a00
nop
int3