Function at 0x1402058b0
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 + 0x20], rbx
mov rax, qword [0x1405420e0]
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
lea rdx, [rbp - 0x49]
mov rcx, rbx
call fcn.140207434
mov dword [rbp - 0x59], eax
test eax, eax
je 0x1402059b2
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x140205acc
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 0x140205944
mov rbx, qword [rbx]
lea rdx, [0x1403cb630]
mov rcx, rsi
test rbx, rbx
je 0x140205963
mov rdx, rbx
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x14020595a
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, [0x140478cc6]
mov rcx, r10
call fcn.140001208
jmp 0x140205acc
mov dword [rbp - 0x51], esi
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1402059c2
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]
nop dword [rax + rax]
mov dword [rbp - 0x59], eax
test eax, eax
je 0x140205ad0
call fcn.1400550c0
mov r10, qword [rax + 8]
mov r8d, 4
cmp dword [r10], r8d
jbe 0x140205acc
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 0x140205a23
mov rdi, qword [rdi]
lea rdx, [0x1403cb630]
mov r9, rdx
mov rax, rsi
or rcx, 0xffffffffffffffff
test rdi, rdi
je 0x140205a48
mov r9, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x140205a3f
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 0x140205a63
mov rbx, qword [rbx]
mov rax, rsi
test rbx, rbx
je 0x140205a7a
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x140205a71
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, [0x140478c77]
mov rcx, r10
call fcn.140001208
mov ebx, esi
jmp 0x140205ad3
mov ebx, dword [rbp - 0x51]
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x140205ae8
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140356560
mov rbx, qword [rsp + 0x108]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret