Function at 0x1401d5de8
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 - 7]
sub rsp, 0xe8
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov r14, qword [rbp + 0x7f]
mov rbx, r8
mov r8, qword [rbp + 0x8f]
mov rdi, rdx
mov r12, qword [rbp + 0x87]
mov rdx, rcx
mov r15d, r9d
mov rsi, rcx
mov r9d, dword [rbp + 0x97]
xor r13d, r13d
mov rcx, rbx
mov dword [rsp + 0x40], r13d
call fcn.1401d802c
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1401d5ef6
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 5
jbe 0x1401d5eed
cmp qword [rbx + 0x18], 8
lea rax, str.Could_not_open_or_create_the_registry_path._Return_default_value
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], 0x82
jb 0x1401d5e83
mov rbx, qword [rbx]
lea rdx, [0x140344690]
mov rcx, r13
test rbx, rbx
je 0x1401d5ea3
mov rdx, rbx
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], r13w
jne 0x1401d5e99
lea eax, [rcx*2 + 2]
mov qword [rbp - 0x61], rdx
mov dword [rbp - 0x59], eax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x51], rax
mov dword [rbp - 0x55], r13d
mov qword [rbp - 0x49], 4
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403ddd8b]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov eax, dword [rsp + 0x40]
jmp 0x1401d610a
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x1401d5f03
mov r8, qword [rdi]
mov rcx, qword [rsi]
mov r9d, r15d
mov qword [rsp + 0x30], r14
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1401d6001
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 5
jbe 0x1401d5eed
cmp qword [rdi + 0x18], 8
lea rax, str.Failed_to_get_registry_value_size._Return_default_value
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], WSAStartup
jb 0x1401d5f58
mov rdi, qword [rdi]
or rcx, 0xffffffffffffffff
lea rdx, [0x140344690]
mov r8, rdx
mov rax, r13
test rdi, rdi
je 0x1401d5f7e
mov r8, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r13w
jne 0x1401d5f74
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x59], eax
mov qword [rbp - 0x61], r8
mov dword [rbp - 0x55], r13d
jb 0x1401d5f9a
mov rbx, qword [rbx]
mov rax, r13
test rbx, rbx
je 0x1401d5fb2
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], r13w
jne 0x1401d5fa8
lea eax, [rax*2 + 2]
mov qword [rbp - 0x51], rdx
mov dword [rbp - 0x49], eax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x41], rax
mov dword [rbp - 0x45], r13d
mov qword [rbp - 0x39], 4
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403dddc1]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001158
jmp 0x1401d5eed
mov eax, dword [r14]
cmp byte [rbp + 0x6f], r13b
je 0x1401d600c
shr eax, 1
mov dword [r12], eax
cmp eax, 1
jb 0x1401d6021
cmp eax, dword [rbp + 0x77]
ja 0x1401d6021
xor eax, eax
jmp 0x1401d610a
call fcn.14004d8a4
mov r8d, 4
mov r10, qword [rax + 8]
cmp dword [r10], r8d
jbe 0x1401d6105
cmp qword [rdi + 0x18], 8
lea rax, str.Registry_value_is_empty_or_bigger_than_max_length._Return_default_value
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], DllRegisterServer
jb 0x1401d6056
mov rdi, qword [rdi]
or rcx, 0xffffffffffffffff
lea rdx, [0x140344690]
mov r9, rdx
mov rax, r13
test rdi, rdi
je 0x1401d607c
mov r9, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], r13w
jne 0x1401d6072
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x59], eax
mov qword [rbp - 0x61], r9
mov dword [rbp - 0x55], r13d
jb 0x1401d6098
mov rbx, qword [rbx]
mov rax, r13
test rbx, rbx
je 0x1401d60b0
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], r13w
jne 0x1401d60a6
lea eax, [rax*2 + 2]
mov qword [rbp - 0x51], rdx
mov dword [rbp - 0x49], eax
lea rax, [rbp + 0x77]
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x45], r13d
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], r8
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], r8
mov qword [rbp - 0x19], r8
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403dde51]
xor r8d, r8d
mov dword [rsp + 0x20], 8
mov rcx, r10
call fcn.140001158
mov eax, SafeArrayGetDim
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.1402dfdb0
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret