Function at 0x10004b8c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rbp, rdx
mov r12, rcx
mov r15d, 7
mov qword [rsp + 0x70], r15
xor r13d, r13d
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
lea r8d, [r15 + 0xf]
lea rdx, [0x100005070]
lea rcx, [rsp + 0x50]
call fcn.10002cf94
nop
lea r8, [rsp + 0x50]
lea edx, [r15 - 3]
lea rcx, [rsp + 0x88]
call fcn.1000a11f0
nop
cmp qword [rsp + 0x70], 8
jb 0x10004b95a
mov rcx, qword [rsp + 0x58]
cmp rcx, r13
je 0x10004b95a
call sub.msvcrt.dll_free
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
mov r14, 0xffffffff80000002
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
lea r8, [rsp + 0x48]
mov rdx, r14
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, eax
cmp eax, r13d
jne 0x10004bc61
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1000050a0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp eax, r13d
jne 0x10004bc61
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x100005100]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp eax, r13d
jne 0x10004bc61
mov edx, dword [rsp + 0x30]
inc edx
add rdx, rdx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
cmp rax, r13
jne 0x10004ba26
mov edi, 0xd
jmp 0x10004bc53
mov ebx, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x100005100]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov word [rsi + rbx*2], r13w
cmp eax, r13d
jne 0x10004bc53
mov word [rsp + 0xb8], r13w
lea rdx, [0x1000049bc]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rbx, rax
cmp rax, r13
jne 0x10004ba8e
mov edi, 0xd
jmp 0x10004bc53
mov r9d, 1
mov r8, rsi
lea edi, [r9 + 4]
mov rdx, rdi
lea rcx, [rsp + 0xb8]
call sub.msvcrt.dll_wcsncpy_s
lea rcx, [rsp + 0xb8]
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rbp + 4], eax
lea r8, [rbx + 2]
lea r9d, [rdi - 4]
mov rdx, rdi
lea rcx, [rsp + 0xb8]
call sub.msvcrt.dll_wcsncpy_s
lea rcx, [rsp + 0xb8]
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rbp + 8], eax
mov rdx, qword [rsp + 0x48]
mov rcx, rbp
call fcn.10004b7d4
mov edi, eax
cmp eax, r13d
jne 0x10004bc53
mov qword [rsp + 0x78], r13
lea r8, [rsp + 0x78]
mov edx, 0x65
mov rcx, r12
call sub.NETAPI32.dll_NetServerGetInfo
mov edi, eax
mov rcx, qword [rsp + 0x78]
cmp eax, r13d
jne 0x10004bb4a
mov byte [rbp + 0x11a], r13b
bt dword [rcx + 0x18], 0xf
jb 0x10004bb43
test byte [rcx + 0x18], 8
jne 0x10004bb43
test byte [rcx + 0x18], 0x10
jne 0x10004bb43
mov byte [rbp + 0x11a], 1
jmp 0x10004bb4a
mov byte [rbp + 0x11a], 3
cmp rcx, r13
je 0x10004bb54
call sub.NETAPI32.dll_NetApiBufferFree
cmp edi, 0x842
jne 0x10004bc53
mov rcx, qword [rsp + 0x38]
cmp rcx, r13
je 0x10004bb75
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x100005120]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp eax, r13d
jne 0x10004bc53
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x100005180]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp eax, r13d
jne 0x10004bc53
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [rsp + 0x30]
add edx, 2
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
cmp rax, r13
jne 0x10004bc04
mov edi, 0xd
jmp 0x10004bc53
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x100005180]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp eax, r13d
jne 0x10004bc53
lea rdx, [0x100005198]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
sbb cl, cl
and cl, 2
inc cl
mov byte [rbp + 0x11a], cl
cmp rsi, r13
je 0x10004bc61
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
cmp rcx, r14
je 0x10004bc71
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
cmp rcx, r13
je 0x10004bc81
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10009f954
mov rbx, rax
cmp rax, r13
je 0x10004bcdb
mov r8d, edi
lea rdx, [0x100004288]
lea rcx, [rsp + 0x50]
call fcn.10009ef30
nop
mov edx, 0x20
mov r8, rax
mov rcx, rbx
call fcn.1000a1180
nop
cmp qword [rsp + 0x70], 8
jb 0x10004bccb
mov rcx, qword [rsp + 0x58]
cmp rcx, r13
je 0x10004bccb
call sub.msvcrt.dll_free
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
lea rcx, [rsp + 0x88]
call fcn.1000a1360
mov eax, edi
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1000c8b30
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret