Function at 0x180003010
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [r11 - 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x180038010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
mov qword [r11 - 0x48], rcx
xor r14d, r14d
mov dword [r11 - 0x58], r14d
xor eax, eax
mov qword [rcx], rax
call fcn.180001110
mov rcx, rax
test rax, rax
je 0x180003252
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov esi, 1
mov dword [rsp + 0x30], esi
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x60], r14
lea rcx, [rsp + 0x50]
call fcn.180002f00
mov rbp, qword [rsp + 0x50]
test eax, eax
jne 0x180003209
mov rax, qword [rbx]
mov edx, esi
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, 0x400
or ecx, edx
jge 0x1800030c3
mov edx, 0x400
mov rcx, rbx
call fcn.180001560
mov rdi, qword [rbx]
cmp dword [rdi - 0xc], 0x400
jl 0x180003247
mov dword [rdi - 0x10], 0x400
mov rax, qword [rbx]
mov word [rax + 0x800], r14w
mov dword [rsp + 0x48], 0x800
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.Server
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1800031be
cmp eax, 0xea
jne 0x1800031d9
mov rcx, qword [rbx]
test rcx, rcx
jne 0x180003134
mov eax, r14d
jmp 0x180003145
movsxd rdx, dword [rcx - 0xc]
call fcn.1800137cc
test eax, eax
js 0x180003268
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x180003268
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], r14w
mov rax, qword [rbx]
sub esi, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, esi
jge 0x180003176
xor edx, edx
mov rcx, rbx
call fcn.180001560
mov rdi, qword [rbx]
cmp dword [rdi - 0xc], 0
jl 0x18000325d
mov dword [rdi - 0x10], r14d
mov rax, qword [rbx]
mov word [rax], r14w
mov dword [rsp + 0x48], r14d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.Server
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800031d9
mov eax, dword [rsp + 0x4c]
dec eax
cmp eax, 1
ja 0x1800031d9
test rdi, rdi
je 0x1800031d9
cmp dword [rsp + 0x48], 0
jne 0x1800031d9
mov word [rdi], r14w
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1800031e6
mov eax, r14d
jmp 0x1800031f3
movsxd rdx, dword [rcx - 0xc]
call fcn.1800137cc
test eax, eax
js 0x18000323c
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x18000323c
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], r14w
test rbp, rbp
je 0x180003217
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18000ed70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.1800013d0
int3
mov ecx, 0x80070057
call fcn.1800013d0
nop
mov ecx, 0x80004005
call fcn.1800013d0
nop
mov ecx, 0x80070057
call fcn.1800013d0
int3
mov ecx, 0x80070057
call fcn.1800013d0
int3