Function at 0x1400057f0
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 0x14000585c
mov eax, dword [rbp - 0x10]
lea ecx, [rax - 3]
cmp ecx, 0x39
ja 0x140005861
mov dword [0x140038ac4], eax
jmp 0x140005874
cmp eax, 2
je 0x140005874
movzx eax, dx
or eax, r12d
test edx, edx
cmovle eax, edx
test eax, eax
js 0x140005b8e
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 0x1400058bb
movzx ecx, ax
or ecx, r12d
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140005b8e
mov ecx, dword [rbp - 8]
mov eax, 3
cmp ecx, eax
cmova ecx, eax
mov dword [rbp - 8], ecx
cmp dword [r14], ebx
je 0x1400058f9
test ecx, ecx
jne 0x1400058ed
lea ecx, [rax - 2]
call fcn.140014204
mov edx, 1
mov ecx, edx
call fcn.140014130
mov dword [r14], ebx
jmp 0x140005936
mov edx, 1
call fcn.140014130
jmp 0x140005936
test ecx, ecx
je 0x140005936
mov edx, 1
call fcn.140014130
xor r9d, r9d
mov dword [rsp + 0x20], 1
lea r8, [0x14002a0e8]
xor ecx, ecx
lea rdx, [0x140029e30]
call fcn.140013ff8
test eax, eax
js 0x140005b8e
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 0x140005979
cmp dword [rbp - 0xc], ebx
mov eax, ebx
setne al
mov dword [0x140038ac8], eax
jmp 0x140005991
cmp eax, 2
je 0x140005991
movzx eax, ax
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b8e
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 0x1400059d3
mov eax, dword [rbp - 0x10]
test eax, eax
je 0x1400059d8
mov dword [0x140038acc], eax
jmp 0x1400059eb
cmp eax, 2
je 0x1400059eb
movzx eax, cx
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b8e
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 0x140005a2e
cmp dword [rbp - 0xc], ebx
mov eax, ebx
setne al
mov dword [0x140038ad0], eax
jmp 0x140005a46
cmp eax, 2
je 0x140005a46
movzx eax, ax
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b8e
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 0x140005a88
mov eax, dword [rbp - 0x10]
test eax, eax
je 0x140005a8d
mov dword [0x140038ad4], eax
jmp 0x140005aa0
cmp eax, 2
je 0x140005aa0
movzx eax, cx
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b8e
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 0x140005ae3
cmp dword [rbp - 0xc], ebx
mov eax, ebx
setne al
mov dword [0x140038ad8], eax
jmp 0x140005afb
cmp eax, 2
je 0x140005afb
movzx eax, ax
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b8e
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 0x140005b3d
mov eax, dword [rbp - 0x10]
test eax, eax
je 0x140005b42
mov dword [0x140038adc], eax
jmp 0x140005b51
cmp eax, 2
je 0x140005b51
movzx eax, cx
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b8e
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 0x140005b8e
cmp dword [rbp - 0xc], ebx
setne bl
mov dword [0x140038ae0], ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret