Function at 0x14006438c
Capabilities:
Get domain controller name

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x1400b02e8]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbx, rdx
mov rsi, rcx
mov rax, rdx
mov r15d, 8
cmp qword [rdx + 0x18], r15
jb 0x1400643ca
mov rax, qword [rdx]
xor r14d, r14d
mov qword [rdx + 0x10], r14
mov word [rax], r14w
mov qword [rsp + 0xd0], r14
lea r12d, [r14 + 7]
mov qword [rsp + 0xd8], r12
mov word [rsp + 0xc0], r14w
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r12
mov word [rsp + 0x60], r14w
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x60]
call fcn.140063c48
mov rdi, rax
shr rax, 0x27
not eax
test al, 1
je 0x140064477
mov rdx, qword [rsp + 0x78]
cmp rdx, r15
jb 0x14006443d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
call fcn.140003d24
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r12
mov word [rsp + 0x60], r14w
mov rdx, qword [rsp + 0xd8]
cmp rdx, r15
jb 0x14006446f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc0]
call fcn.140003d24
mov rax, rdi
jmp 0x140064b0e
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r12
mov word [rsp + 0x80], r14w
lea rdx, [rsp + 0x80]
call fcn.140065f40
mov edi, eax
test eax, eax
je 0x140064587
mov edx, 0x5c
lea rcx, str.admin_appman_appv_shareduseruserinfo.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x1400644c9
inc rax
jmp 0x1400644d0
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400b1690]
call fcn.140013934
shl rax, 0x34
mov rbx, rdi
or rbx, rax
movabs rax, 0x262500000000
or rbx, rax
mov rdx, qword [rsp + 0x98]
cmp rdx, r15
jb 0x140064518
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x80]
call fcn.140003d24
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r12
mov word [rsp + 0x80], r14w
mov rdx, qword [rsp + 0x78]
cmp rdx, r15
jb 0x14006454d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
call fcn.140003d24
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r12
mov word [rsp + 0x60], r14w
mov rdx, qword [rsp + 0xd8]
cmp rdx, r15
jb 0x14006457f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc0]
call fcn.140003d24
mov rax, rbx
jmp 0x140064b0e
lea rdx, [rsp + 0xc0]
cmp qword [rsp + 0xd8], r15
cmovae rdx, qword [rsp + 0xc0]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
nop dword [rax + rax]
test eax, eax
jne 0x1400645e3
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
lea rcx, [rsp + 0xc0]
call fcn.140003b34
mov rcx, qword [rsp + 0x30]
jmp 0x1400645ed
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400645f9
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
nop dword [rax + rax]
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xb8], r12
mov word [rsp + 0xa0], r14w
lea rdx, [rsp + 0x80]
cmp qword [rsp + 0x98], r15
cmovae rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0xc0]
cmp qword [rsp + 0xd8], r15
cmovae rcx, qword [rsp + 0xc0]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140064669
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xa0]
call fcn.14003642c
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x40], r14d
lea rcx, [rsp + 0x48]
call fcn.14003ea88
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x14006469a
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
nop dword [rax + rax]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x140064809
lea edx, [rax + 0x5c]
lea rcx, str.admin_appman_appv_shareduseruserinfo.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x1400646c2
inc rax
jmp 0x1400646c9
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400b1690]
call fcn.140013934
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
or rdi, rbx
movabs rax, 0x2a2500000000
or rdi, rax
cmp dword [rsp + 0x40], r14d
je 0x140064732
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x140064732
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rsp + 0x48]
call fcn.14003eb20
nop
mov rdx, qword [rsp + 0xb8]
cmp rdx, r15
jb 0x14006475f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa0]
call fcn.140003d24
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xb8], r12
mov word [rsp + 0xa0], r14w
mov rdx, qword [rsp + 0x98]
cmp rdx, r15
jb 0x14006479a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x80]
call fcn.140003d24
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r12
mov word [rsp + 0x80], r14w
mov rdx, qword [rsp + 0x78]
cmp rdx, r15
jb 0x1400647cf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
call fcn.140003d24
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r12
mov word [rsp + 0x60], r14w
mov rdx, qword [rsp + 0xd8]
cmp rdx, r15
jb 0x140064801
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc0]
call fcn.140003d24
mov rax, rdi
jmp 0x140064b0e
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], r15
cmovae rdx, qword [rsp + 0x60]
cmp qword [rsp + 0xb0], r14
jne 0x140064828
mov rcx, r14
jmp 0x140064841
lea rcx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], r15
cmovae rcx, qword [rsp + 0xa0]
lea r9, [rsp + 0x38]
mov r8d, 4
call qword [sym.imp.NETAPI32.dll_NetUserGetInfo]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x1400649d3
test rcx, rcx
je 0x140064878
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
nop dword [rax + rax]
mov edx, 0x5c
lea rcx, str.admin_appman_appv_shareduseruserinfo.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14006489a
inc rax
jmp 0x1400648a1
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400b1690]
call fcn.140013934
shl rax, 0x34
mov rbx, rdi
or rbx, rax
movabs rax, 0x2b2500000000
or rbx, rax
cmp dword [rsp + 0x40], r14d
je 0x1400648fc
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x1400648fc
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rsp + 0x48]
call fcn.14003eb20
nop
mov rdx, qword [rsp + 0xb8]
cmp rdx, r15
jb 0x140064929
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa0]
call fcn.140003d24
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xb8], r12
mov word [rsp + 0xa0], r14w
mov rdx, qword [rsp + 0x98]
cmp rdx, r15
jb 0x140064964
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x80]
call fcn.140003d24
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r12
mov word [rsp + 0x80], r14w
mov rdx, qword [rsp + 0x78]
cmp rdx, r15
jb 0x140064999
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
call fcn.140003d24
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r12
mov word [rsp + 0x60], r14w
mov rdx, qword [rsp + 0xd8]
cmp rdx, r15
jb 0x1400649cb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc0]
call fcn.140003d24
mov rax, rbx
jmp 0x140064b0e
mov rdx, qword [rcx + 0xa8]
test rdx, rdx
je 0x1400649ec
mov rcx, rbx
call fcn.140003b34
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
nop dword [rax + rax]
nop
cmp dword [rsp + 0x40], r14d
je 0x140064a2e
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x140064a2e
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rsp + 0x48]
call fcn.14003eb20
nop
mov rdx, qword [rsp + 0xb8]
cmp rdx, r15
jb 0x140064a5b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa0]
call fcn.140003d24
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xb8], r12
mov word [rsp + 0xa0], r14w
mov rdx, qword [rsp + 0x98]
cmp rdx, r15
jb 0x140064a96
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x80]
call fcn.140003d24
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r12
mov word [rsp + 0x80], r14w
mov rdx, qword [rsp + 0x78]
cmp rdx, r15
jb 0x140064acb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
call fcn.140003d24
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r12
mov word [rsp + 0x60], r14w
mov rdx, qword [rsp + 0xd8]
cmp rdx, r15
jb 0x140064afd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc0]
call fcn.140003d24
movabs rax, 0x8000000000
jmp 0x140064b0e
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140066420
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret