Function at 0x1400057e0
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 0x14000584c
mov eax, dword [rbp - 0x10]
lea ecx, [rax - 3]
cmp ecx, 0x39
ja 0x140005851
mov dword [0x140038ab4], eax
jmp 0x140005864
cmp eax, 2
je 0x140005864
movzx eax, dx
or eax, r12d
test edx, edx
cmovle eax, edx
test eax, eax
js 0x140005b7e
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 0x1400058ab
movzx ecx, ax
or ecx, r12d
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140005b7e
mov ecx, dword [rbp - 8]
mov eax, 3
cmp ecx, eax
cmova ecx, eax
mov dword [rbp - 8], ecx
cmp dword [r14], ebx
je 0x1400058e9
test ecx, ecx
jne 0x1400058dd
lea ecx, [rax - 2]
call fcn.140013f18
mov edx, 1
mov ecx, edx
call fcn.140013e44
mov dword [r14], ebx
jmp 0x140005926
mov edx, 1
call fcn.140013e44
jmp 0x140005926
test ecx, ecx
je 0x140005926
mov edx, 1
call fcn.140013e44
xor r9d, r9d
mov dword [rsp + 0x20], 1
lea r8, [0x14002a0f8]
xor ecx, ecx
lea rdx, [0x140029e40]
call fcn.140013d0c
test eax, eax
js 0x140005b7e
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 0x140005969
cmp dword [rbp - 0xc], ebx
mov eax, ebx
setne al
mov dword [0x140038ab8], eax
jmp 0x140005981
cmp eax, 2
je 0x140005981
movzx eax, ax
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b7e
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 0x1400059c3
mov eax, dword [rbp - 0x10]
test eax, eax
je 0x1400059c8
mov dword [0x140038abc], eax
jmp 0x1400059db
cmp eax, 2
je 0x1400059db
movzx eax, cx
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b7e
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 0x140005a1e
cmp dword [rbp - 0xc], ebx
mov eax, ebx
setne al
mov dword [0x140038ac0], eax
jmp 0x140005a36
cmp eax, 2
je 0x140005a36
movzx eax, ax
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b7e
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 0x140005a78
mov eax, dword [rbp - 0x10]
test eax, eax
je 0x140005a7d
mov dword [0x140038ac4], eax
jmp 0x140005a90
cmp eax, 2
je 0x140005a90
movzx eax, cx
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b7e
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 0x140005ad3
cmp dword [rbp - 0xc], ebx
mov eax, ebx
setne al
mov dword [0x140038ac8], eax
jmp 0x140005aeb
cmp eax, 2
je 0x140005aeb
movzx eax, ax
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b7e
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 0x140005b2d
mov eax, dword [rbp - 0x10]
test eax, eax
je 0x140005b32
mov dword [0x140038acc], eax
jmp 0x140005b41
cmp eax, 2
je 0x140005b41
movzx eax, cx
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140005b7e
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 0x140005b7e
cmp dword [rbp - 0xc], ebx
setne bl
mov dword [0x140038ad0], ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret