Function at 0x1400057f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x48]
mov r14, rdx
mov dword [rbp - 8], ebx
lea rax, [rbp - 0x10]
xor r8d, r8d
lea r13d, [rbx + 4]
mov qword [rsp + 0x20], rax
lea rdx, str.Timeout
mov dword [rbp + 0x40], r13d
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
mov r12d, 0x80070000
test eax, eax
jne 0x140005864
mov eax, dword [rbp - 0x10]
lea ecx, [rax - 3]
cmp ecx, 0x39
ja 0x140005869
mov dword [0x140037aac], eax
jmp 0x14000587c
cmp eax, 2
je 0x14000587c
movzx eax, dx
or eax, r12d
test edx, edx
cmovle eax, edx
test eax, eax
js 0x140005b96
lea rax, [rbp + 0x40]
mov dword [rbp + 0x40], r13d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x48]
lea rax, [rbp - 8]
xor r8d, r8d
lea rdx, str.LogLevel
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, 0xfffffffd
je 0x1400058c3
movzx ecx, ax
or ecx, r12d
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140005b96
mov ecx, dword [rbp - 8]
mov eax, 3
cmp ecx, eax
cmova ecx, eax
mov dword [rbp - 8], ecx
cmp dword [r14], ebx
je 0x140005901
test ecx, ecx
jne 0x1400058f5
lea ecx, [rax - 2]
call fcn.140013ee4
mov edx, 1
mov ecx, edx
call fcn.140013e10
mov dword [r14], ebx
jmp 0x14000593e
mov edx, 1
call fcn.140013e10
jmp 0x14000593e
test ecx, ecx
je 0x14000593e
mov edx, 1
call fcn.140013e10
xor r9d, r9d
mov dword [rsp + 0x20], 1
lea r8, [0x14002a0c8]
xor ecx, ecx
lea rdx, [0x140029e10]
call fcn.140013cd8
test eax, eax
js 0x140005b96
mov dword [r14], 1
lea rax, [rbp + 0x40]
mov dword [rbp + 0x40], r13d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x48]
lea rax, [rbp - 0xc]
xor r8d, r8d
lea rdx, str.CDBufferRead
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140005981
cmp dword [rbp - 0xc], ebx
mov eax, ebx
setne al
mov dword [0x140037ab0], eax
jmp 0x140005999
cmp eax, 2
je 0x140005999
movzx eax, ax
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b96
lea rax, [rbp + 0x40]
mov dword [rbp + 0x40], r13d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x48]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, str.CDBufferSize
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x1400059db
mov eax, dword [rbp - 0x10]
test eax, eax
je 0x1400059e0
mov dword [0x140037ab4], eax
jmp 0x1400059f3
cmp eax, 2
je 0x1400059f3
movzx eax, cx
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b96
lea rax, [rbp + 0x40]
mov dword [rbp + 0x40], r13d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x48]
lea rax, [rbp - 0xc]
xor r8d, r8d
lea rdx, str.NetworkBufferRead
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140005a36
cmp dword [rbp - 0xc], ebx
mov eax, ebx
setne al
mov dword [0x140037ab8], eax
jmp 0x140005a4e
cmp eax, 2
je 0x140005a4e
movzx eax, ax
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b96
lea rax, [rbp + 0x40]
mov dword [rbp + 0x40], r13d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x48]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, str.NetworkBufferSize
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140005a90
mov eax, dword [rbp - 0x10]
test eax, eax
je 0x140005a95
mov dword [0x140037abc], eax
jmp 0x140005aa8
cmp eax, 2
je 0x140005aa8
movzx eax, cx
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b96
lea rax, [rbp + 0x40]
mov dword [rbp + 0x40], r13d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x48]
lea rax, [rbp - 0xc]
xor r8d, r8d
lea rdx, str.InternetBufferRead
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140005aeb
cmp dword [rbp - 0xc], ebx
mov eax, ebx
setne al
mov dword [0x140037ac0], eax
jmp 0x140005b03
cmp eax, 2
je 0x140005b03
movzx eax, ax
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b96
lea rax, [rbp + 0x40]
mov dword [rbp + 0x40], r13d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x48]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, str.InternetBufferSize
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140005b45
mov eax, dword [rbp - 0x10]
test eax, eax
je 0x140005b4a
mov dword [0x140037ac4], eax
jmp 0x140005b59
cmp eax, 2
je 0x140005b59
movzx eax, cx
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b96
lea rax, [rbp + 0x40]
mov dword [rbp + 0x40], r13d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x48]
lea rax, [rbp - 0xc]
xor r8d, r8d
lea rdx, str.BufferWrite
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005b96
cmp dword [rbp - 0xc], ebx
setne bl
mov dword [0x140037ac8], ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret