Function at 0x140006768
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 0x1400067d0
mov eax, dword [rbp + 0x48]
lea ecx, [rax - 3]
cmp ecx, 0x39
ja 0x1400067d5
mov dword [0x14003ac24], eax
jmp 0x1400067e8
cmp edx, 2
je 0x1400067e8
movzx eax, dx
or eax, r14d
test edx, edx
cmovle eax, edx
test eax, eax
js 0x140006aed
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 0x14000682f
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140006aed
mov ecx, dword [rbp - 0xc]
mov eax, 3
cmp ecx, eax
cmova ecx, eax
cmp dword [0x14003ac1c], ebx
mov dword [rbp - 0xc], ecx
je 0x140006869
test ecx, ecx
jne 0x140006862
call fcn.14001465c
mov ecx, 1
call fcn.1400146b8
mov dword [0x14003ac1c], ebx
jmp 0x140006895
call fcn.1400146b8
jmp 0x140006895
test ecx, ecx
je 0x140006895
call fcn.1400146b8
call fcn.140012860
test eax, eax
js 0x140006aed
call fcn.1400147cc
mov qword [0x14003ace8], rbx
mov dword [0x14003ac1c], 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 0x1400068d8
cmp dword [rbp - 0x10], ebx
mov eax, ebx
setne al
mov dword [0x14003ac28], eax
jmp 0x1400068f0
cmp ecx, 2
je 0x1400068f0
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006aed
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 0x140006932
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x140006937
mov dword [0x14003ac2c], eax
jmp 0x14000694a
cmp ecx, 2
je 0x14000694a
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006aed
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 0x14000698d
cmp dword [rbp - 0x10], ebx
mov eax, ebx
setne al
mov dword [0x14003ac30], eax
jmp 0x1400069a5
cmp ecx, 2
je 0x1400069a5
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006aed
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 0x1400069e7
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x1400069ec
mov dword [0x14003ac34], eax
jmp 0x1400069ff
cmp ecx, 2
je 0x1400069ff
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006aed
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 0x140006a42
cmp dword [rbp - 0x10], ebx
mov eax, ebx
setne al
mov dword [0x14003ac38], eax
jmp 0x140006a5a
cmp ecx, 2
je 0x140006a5a
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006aed
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 0x140006a9c
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x140006aa1
mov dword [0x14003ac3c], eax
jmp 0x140006ab0
cmp ecx, 2
je 0x140006ab0
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006aed
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 0x140006aed
cmp dword [rbp - 0x10], ebx
setne bl
mov dword [0x14003ac40], ebx
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret