Function at 0x1401d670c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov qword [rbp - 0x49], rsi
mov r9d, 0x20019
mov r8, 0xffffffff80000002
lea rdx, [rbp - 0x49]
mov rcx, rbx
call fcn.1401d802c
mov dword [rbp - 0x59], eax
test eax, eax
je 0x1401d6815
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401d6929
lea rax, str.Could_not_open_or_create_the_registry_path._Return_default_value
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], 0x82
lea rax, [rbp - 0x59]
mov qword [rbp - 9], rax
mov qword [rbp - 1], 4
cmp qword [rbx + 0x18], 8
jb 0x1401d67a7
mov rbx, qword [rbx]
lea rdx, [0x140344690]
mov rcx, rsi
test rbx, rbx
je 0x1401d67c6
mov rdx, rbx
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x1401d67bd
mov qword [rbp + 7], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x13], esi
mov dword [rbp - 0x55], esi
lea rax, [rbp - 0x55]
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], 4
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403d5eb0]
mov rcx, r10
call fcn.140001158
jmp 0x1401d6929
mov dword [rbp - 0x51], esi
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1401d6825
mov rdx, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x51]
xor r8d, r8d
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov dword [rbp - 0x59], eax
test eax, eax
je 0x1401d692d
call fcn.14004d8a4
mov r10, qword [rax + 8]
mov r8d, 4
cmp dword [r10], r8d
jbe 0x1401d6929
lea rax, str.Failed_to_read_registry_value_type._Return_default_value
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], WSAStartup
cmp qword [rdi + 0x18], 8
jb 0x1401d6880
mov rdi, qword [rdi]
lea rdx, [0x140344690]
mov r9, rdx
mov rax, rsi
or rcx, 0xffffffffffffffff
test rdi, rdi
je 0x1401d68a5
mov r9, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x1401d689c
mov qword [rbp - 9], r9
lea eax, [rax*2 + 2]
mov dword [rbp - 1], eax
mov dword [rbp + 3], esi
cmp qword [rbx + 0x18], 8
jb 0x1401d68c0
mov rbx, qword [rbx]
mov rax, rsi
test rbx, rbx
je 0x1401d68d7
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x1401d68ce
mov qword [rbp + 7], rdx
lea eax, [rax*2 + 2]
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x13], esi
lea rax, [rbp - 0x59]
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], r8
mov dword [rbp - 0x55], esi
lea rax, [rbp - 0x55]
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], r8
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 7
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403ddf72]
mov rcx, r10
call fcn.140001158
mov ebx, esi
jmp 0x1401d6930
mov ebx, dword [rbp - 0x51]
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x1401d693f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402dfdb0
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret