Function at 0x140012950
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r12d, r12d
mov dword [rbp - 0x20], 0x208
mov dword [rcx], r12d
lea rax, [rbp - 0x10]
mov dword [rdx], r12d
mov rsi, r8
mov r15, rdx
mov qword [rbp - 0x10], r12
mov r14, rcx
mov dword [rbp + 0x48], 4
lea rdx, str.SOFTWAREMicrosoftServicesForNFS
mov dword [rbp + 0x40], r12d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov ebx, r12d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x1400129d1
mov eax, 0xc0000001
jmp 0x140012c18
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
lea rax, [rbp - 0x18]
xor r8d, r8d
lea rdx, str.Rfc2307
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov edi, 0xc0000001
mov r13d, 1
test eax, eax
jne 0x140012a68
cmp dword [rbp + 0x58], 4
jne 0x140012a68
cmp dword [rbp - 0x18], r12d
je 0x140012a75
mov dword [r14], r13d
test rsi, rsi
je 0x140012c01
cmp dword [rbp - 0x20], r12d
je 0x140012c01
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, str.Rfc2307Domain
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140012a75
cmp dword [rbp + 0x58], r13d
je 0x140012a6c
mov ebx, edi
jmp 0x140012a75
cmp word [rsi], r12w
je 0x140012a75
mov dword [r15], r13d
cmp dword [r14], r12d
jne 0x140012c01
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
lea rax, [rbp - 0x18]
mov dword [rbp + 0x48], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Rfc2307LdapLookup
mov ebx, r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140012ac3
mov ebx, edi
jmp 0x140012c01
cmp dword [rbp + 0x58], 4
jne 0x140012abc
cmp dword [rbp - 0x18], r12d
je 0x140012c01
mov dword [r14], r13d
test rsi, rsi
je 0x140012b24
cmp dword [rbp - 0x20], r12d
je 0x140012b24
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, str.Rfc2307LdapServer
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140012b24
cmp dword [rbp + 0x58], r13d
je 0x140012b1b
mov ebx, edi
jmp 0x140012b24
cmp word [rsi], r12w
je 0x140012b24
mov dword [r15], r13d
mov r14, qword [rbp + 0x60]
mov rcx, qword [rbp - 0x10]
test r14, r14
je 0x140012c05
lea rax, [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
lea rdx, str.Rfc2307LdapNamingContext
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140012b71
cmp dword [rbp + 0x58], r13d
je 0x140012b71
mov eax, r12d
mov ebx, edi
mov dword [rbp + 0x40], eax
jmp 0x140012b74
mov eax, dword [rbp + 0x40]
test eax, eax
je 0x140012c01
mov ecx, eax
add rcx, 2
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x140012bef
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, str.Rfc2307LdapNamingContext
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140012bf4
cmp dword [rbp + 0x58], r13d
je 0x140012bc9
mov ebx, edi
jmp 0x140012bf4
cmp word [rsi], r12w
je 0x140012bf4
mov eax, dword [rbp + 0x40]
shr rax, 1
mov word [rsi + rax*2], r12w
mov rcx, qword [r14]
test rcx, rcx
je 0x140012be7
call sub.msvcrt.dll_free
mov qword [r14], rsi
mov rsi, r12
jmp 0x140012bf4
mov ebx, 0xc000009a
test rsi, rsi
je 0x140012c01
mov rcx, rsi
call sub.msvcrt.dll_free
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140012c16
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret