Function at 0x14000681c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [rbp + 0x48]
mov dword [rbp - 0xc], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea r15d, [rbx + 4]
mov rdi, rcx
lea rdx, str.Timeout
mov dword [rbp + 0x38], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
mov r14d, 0x80070000
test eax, eax
jne 0x140006884
mov eax, dword [rbp + 0x48]
lea ecx, [rax - 3]
cmp ecx, 0x39
ja 0x140006889
mov dword [0x14003aab4], eax
jmp 0x14000689c
cmp edx, 2
je 0x14000689c
movzx eax, dx
or eax, r14d
test edx, edx
cmovle eax, edx
test eax, eax
js 0x140006ba1
lea rax, [rbp + 0x38]
mov dword [rbp + 0x38], r15d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [rbp - 0xc]
xor r8d, r8d
lea rdx, str.LogLevel
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, 0xfffffffd
je 0x1400068e3
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140006ba1
mov ecx, dword [rbp - 0xc]
mov eax, 3
cmp ecx, eax
cmova ecx, eax
cmp dword [0x14003aaac], ebx
mov dword [rbp - 0xc], ecx
je 0x14000691d
test ecx, ecx
jne 0x140006916
call fcn.140014b28
mov ecx, 1
call fcn.140014b94
mov dword [0x14003aaac], ebx
jmp 0x140006949
call fcn.140014b94
jmp 0x140006949
test ecx, ecx
je 0x140006949
call fcn.140014b94
call fcn.140012c2c
test eax, eax
js 0x140006ba1
call fcn.140014ca8
mov qword [0x14003ab78], rbx
mov dword [0x14003aaac], 1
lea rax, [rbp + 0x38]
mov dword [rbp + 0x38], r15d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, str.CDBufferRead
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x14000698c
cmp dword [rbp - 0x10], ebx
mov eax, ebx
setne al
mov dword [0x14003aab8], eax
jmp 0x1400069a4
cmp ecx, 2
je 0x1400069a4
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006ba1
lea rax, [rbp + 0x38]
mov dword [rbp + 0x38], r15d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [rbp + 0x48]
xor r8d, r8d
lea rdx, str.CDBufferSize
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x1400069e6
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x1400069eb
mov dword [0x14003aabc], eax
jmp 0x1400069fe
cmp ecx, 2
je 0x1400069fe
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006ba1
lea rax, [rbp + 0x38]
mov dword [rbp + 0x38], r15d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, str.NetworkBufferRead
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140006a41
cmp dword [rbp - 0x10], ebx
mov eax, ebx
setne al
mov dword [0x14003aac0], eax
jmp 0x140006a59
cmp ecx, 2
je 0x140006a59
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006ba1
lea rax, [rbp + 0x38]
mov dword [rbp + 0x38], r15d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [rbp + 0x48]
xor r8d, r8d
lea rdx, str.NetworkBufferSize
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140006a9b
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x140006aa0
mov dword [0x14003aac4], eax
jmp 0x140006ab3
cmp ecx, 2
je 0x140006ab3
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006ba1
lea rax, [rbp + 0x38]
mov dword [rbp + 0x38], r15d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, str.InternetBufferRead
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140006af6
cmp dword [rbp - 0x10], ebx
mov eax, ebx
setne al
mov dword [0x14003aac8], eax
jmp 0x140006b0e
cmp ecx, 2
je 0x140006b0e
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006ba1
lea rax, [rbp + 0x38]
mov dword [rbp + 0x38], r15d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [rbp + 0x48]
xor r8d, r8d
lea rdx, str.InternetBufferSize
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140006b50
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x140006b55
mov dword [0x14003aacc], eax
jmp 0x140006b64
cmp ecx, 2
je 0x140006b64
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006ba1
lea rax, [rbp + 0x38]
mov dword [rbp + 0x38], r15d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, str.BufferWrite
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006ba1
cmp dword [rbp - 0x10], ebx
setne bl
mov dword [0x14003aad0], ebx
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret