Function at 0x140006814
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 0x14000687c
mov eax, dword [rbp + 0x48]
lea ecx, [rax - 3]
cmp ecx, 0x39
ja 0x140006881
mov dword [0x14003bc14], eax
jmp 0x140006894
cmp edx, 2
je 0x140006894
movzx eax, dx
or eax, r14d
test edx, edx
cmovle eax, edx
test eax, eax
js 0x140006b99
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 0x1400068db
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140006b99
mov ecx, dword [rbp - 0xc]
mov eax, 3
cmp ecx, eax
cmova ecx, eax
cmp dword [0x14003bc0c], ebx
mov dword [rbp - 0xc], ecx
je 0x140006915
test ecx, ecx
jne 0x14000690e
call fcn.1400149ec
mov ecx, 1
call fcn.140014a58
mov dword [0x14003bc0c], ebx
jmp 0x140006941
call fcn.140014a58
jmp 0x140006941
test ecx, ecx
je 0x140006941
call fcn.140014a58
call fcn.140012aa4
test eax, eax
js 0x140006b99
call fcn.140014b6c
mov qword [0x14003bcd8], rbx
mov dword [0x14003bc0c], 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 0x140006984
cmp dword [rbp - 0x10], ebx
mov eax, ebx
setne al
mov dword [0x14003bc18], eax
jmp 0x14000699c
cmp ecx, 2
je 0x14000699c
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006b99
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 0x1400069de
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x1400069e3
mov dword [0x14003bc1c], eax
jmp 0x1400069f6
cmp ecx, 2
je 0x1400069f6
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006b99
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 0x140006a39
cmp dword [rbp - 0x10], ebx
mov eax, ebx
setne al
mov dword [0x14003bc20], eax
jmp 0x140006a51
cmp ecx, 2
je 0x140006a51
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006b99
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 0x140006a93
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x140006a98
mov dword [0x14003bc24], eax
jmp 0x140006aab
cmp ecx, 2
je 0x140006aab
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006b99
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 0x140006aee
cmp dword [rbp - 0x10], ebx
mov eax, ebx
setne al
mov dword [0x14003bc28], eax
jmp 0x140006b06
cmp ecx, 2
je 0x140006b06
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006b99
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 0x140006b48
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x140006b4d
mov dword [0x14003bc2c], eax
jmp 0x140006b5c
cmp ecx, 2
je 0x140006b5c
movzx eax, cx
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140006b99
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 0x140006b99
cmp dword [rbp - 0x10], ebx
setne bl
mov dword [0x14003bc30], ebx
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret