Function at 0x140005888
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push r13
push r14
sub rsp, 0x40
lea rax, [r11 + 0x18]
xor ebx, ebx
mov rsi, rdx
mov qword [r11 - 0x30], rax
lea rax, [r11 - 0x28]
lea r14d, [rbx + 4]
lea r9, [r11 + 0x20]
lea rdx, str.Timeout
xor r8d, r8d
mov qword [r11 - 0x38], rax
mov rbp, rcx
mov dword [rsp + 0x38], ebx
mov dword [r11 + 0x18], r14d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r13d, 0x80070000
mov r11d, eax
cmp eax, ebx
jne 0x1400058f5
mov edx, dword [rsp + 0x30]
lea ecx, [rdx - 3]
cmp ecx, 0x39
ja 0x1400058fa
mov dword [0x140029524], edx
jmp 0x14000590f
cmp eax, 2
je 0x14000590f
movzx eax, ax
or eax, r13d
cmp r11d, ebx
cmovle eax, r11d
cmp eax, ebx
jl 0x140005c66
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x78]
lea rdx, str.LogLevel
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x14000595c
cmp eax, ebx
je 0x14000595c
movzx ecx, ax
or ecx, r13d
cmp eax, ebx
cmovle ecx, eax
cmp ecx, ebx
jl 0x140005c66
mov ecx, dword [rsp + 0x38]
mov eax, 3
cmp ecx, eax
cmova ecx, eax
mov dword [rsp + 0x38], ecx
cmp dword [rsi], ebx
je 0x14000599a
cmp ecx, ebx
jne 0x14000598e
lea ecx, [rax - 2]
call fcn.140013760
mov edx, 1
mov ecx, edx
call fcn.1400137c0
mov dword [rsi], ebx
jmp 0x1400059d6
mov edx, 1
call fcn.1400137c0
jmp 0x1400059d6
cmp ecx, ebx
jbe 0x1400059d6
mov edx, 1
call fcn.1400137c0
lea r8, [0x140021ec8]
lea rdx, [0x140021ec0]
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x20], 1
call fcn.140013624
cmp eax, ebx
jl 0x140005c66
mov dword [rsi], 1
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x78]
lea rdx, str.CDBufferRead
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
cmp eax, ebx
jne 0x140005a1f
cmp dword [rsp + 0x34], ebx
mov eax, ebx
setne al
mov dword [0x140029528], eax
jmp 0x140005a39
cmp eax, 2
je 0x140005a39
movzx eax, ax
or eax, r13d
cmp r11d, ebx
cmovle eax, r11d
cmp eax, ebx
jl 0x140005c66
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x78]
lea rdx, str.CDBufferSize
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
cmp eax, ebx
jne 0x140005a81
mov eax, dword [rsp + 0x30]
cmp eax, ebx
jbe 0x140005a86
mov dword [0x14002952c], eax
jmp 0x140005a9c
cmp eax, 2
je 0x140005a9c
movzx eax, r11w
or eax, r13d
cmp r11d, ebx
cmovle eax, r11d
cmp eax, ebx
jl 0x140005c66
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x78]
lea rdx, str.NetworkBufferRead
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
cmp eax, ebx
jne 0x140005ae5
cmp dword [rsp + 0x34], ebx
mov eax, ebx
setne al
mov dword [0x140029530], eax
jmp 0x140005aff
cmp eax, 2
je 0x140005aff
movzx eax, ax
or eax, r13d
cmp r11d, ebx
cmovle eax, r11d
cmp eax, ebx
jl 0x140005c66
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x78]
lea rdx, str.NetworkBufferSize
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
cmp eax, ebx
jne 0x140005b47
mov eax, dword [rsp + 0x30]
cmp eax, ebx
jbe 0x140005b4c
mov dword [0x140029534], eax
jmp 0x140005b62
cmp eax, 2
je 0x140005b62
movzx eax, r11w
or eax, r13d
cmp r11d, ebx
cmovle eax, r11d
cmp eax, ebx
jl 0x140005c66
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x78]
lea rdx, str.InternetBufferRead
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
cmp eax, ebx
jne 0x140005bab
cmp dword [rsp + 0x34], ebx
mov eax, ebx
setne al
mov dword [0x140029538], eax
jmp 0x140005bc5
cmp eax, 2
je 0x140005bc5
movzx eax, ax
or eax, r13d
cmp r11d, ebx
cmovle eax, r11d
cmp eax, ebx
jl 0x140005c66
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x78]
lea rdx, str.InternetBufferSize
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
cmp eax, ebx
jne 0x140005c0d
mov eax, dword [rsp + 0x30]
cmp eax, ebx
jbe 0x140005c12
mov dword [0x14002953c], eax
jmp 0x140005c24
cmp eax, 2
je 0x140005c24
movzx eax, r11w
or eax, r13d
cmp r11d, ebx
cmovle eax, r11d
cmp eax, ebx
jl 0x140005c66
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x78]
lea rdx, str.BufferWrite
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x140005c66
cmp dword [rsp + 0x34], ebx
setne bl
mov dword [0x140029540], ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop r13
pop rsi
ret