Function at 0x14005eae0
Capabilities:
Get domain controller name

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0xf0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400bc288]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov qword [rdx + 0x10], r14
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x14005eb2c
mov rax, qword [rdx]
mov word [rax], r14w
movdqa xmm0, xmmword [0x140093d30]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r14w
movdqu xmmword [rsp + 0xb8], xmm0
mov word [rsp + 0xa8], r14w
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0xa8]
call fcn.14005e4b4
mov rdi, rax
mov rcx, rax
shr rcx, 0x27
not ecx
mov r15d, 1
test r15b, cl
je 0x14005eb9f
lea rcx, [rsp + 0xa8]
call fcn.140003388
nop
lea rcx, [rsp + 0x68]
call fcn.140003388
mov rax, rdi
jmp 0x14005f076
movdqa xmm0, xmmword [0x140093d30]
movdqu xmmword [rsp + 0xd8], xmm0
mov word [rsp + 0xc8], r14w
lea rdx, [rsp + 0xc8]
call fcn.14005fe6c
mov edi, eax
test eax, eax
je 0x14005ec43
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]
test rax, rax
je 0x14005ebe8
add rax, r15
jmp 0x14005ebef
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
shl rax, 0x34
mov rbx, rdi
or rbx, rax
movabs rax, 0x252500000000
or rbx, rax
lea rcx, [rsp + 0xc8]
call fcn.140003388
nop
lea rcx, [rsp + 0xa8]
call fcn.140003388
nop
lea rcx, [rsp + 0x68]
call fcn.140003388
mov rax, rbx
jmp 0x14005f076
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rdx, qword [rsp + 0x68]
lea rax, [rsp + 0x48]
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]
test eax, eax
jne 0x14005ec91
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
lea rcx, [rsp + 0x68]
call fcn.1400033fc
mov rcx, qword [rsp + 0x48]
jmp 0x14005ec9b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14005eca1
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], 7
mov word [rsp + 0x88], r14w
lea rdx, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14005ed08
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.140031fcc
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0x38]
call fcn.14003b2f4
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14005ed33
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x14005ee3c
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]
test rax, rax
je 0x14005ed55
add rax, r15
jmp 0x14005ed5c
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or rdi, rbx
movabs rax, 0x292500000000
or rdi, rax
cmp dword [rsp + 0x30], r14d
je 0x14005edb3
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x14005edb3
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x14005ee00
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x14005ede0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], r14
mov byte [rsp + 0x38], r14b
jmp 0x14005ee00
test rcx, rcx
je 0x14005edeb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rsp + 0x88]
call fcn.140003388
nop
lea rcx, [rsp + 0xc8]
call fcn.140003388
nop
lea rcx, [rsp + 0xa8]
call fcn.140003388
nop
lea rcx, [rsp + 0x68]
call fcn.140003388
mov rax, rdi
jmp 0x14005f076
cmp qword [rsp + 0x98], r14
jne 0x14005ee4b
mov rcx, r14
jmp 0x14005ee65
lea rcx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 8
cmovae rcx, qword [rsp + 0x88]
lea rdx, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rdx, qword [rsp + 0xa8]
lea r9, [rsp + 0x50]
mov r8d, 4
call qword [sym.imp.NETAPI32.dll_NetUserGetInfo]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x14005efa5
test rcx, rcx
je 0x14005eeaa
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
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]
test rax, rax
je 0x14005eec6
add rax, r15
jmp 0x14005eecd
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
shl rax, 0x34
mov rbx, rdi
or rbx, rax
movabs rax, 0x2b2500000000
or rbx, rax
cmp dword [rsp + 0x30], r14d
je 0x14005ef1c
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x14005ef1c
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x14005ef69
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x14005ef49
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], r14
mov byte [rsp + 0x38], r14b
jmp 0x14005ef69
test rcx, rcx
je 0x14005ef54
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rsp + 0x88]
call fcn.140003388
nop
lea rcx, [rsp + 0xc8]
call fcn.140003388
nop
lea rcx, [rsp + 0xa8]
call fcn.140003388
nop
lea rcx, [rsp + 0x68]
call fcn.140003388
mov rax, rbx
jmp 0x14005f076
mov rdx, qword [rcx + 0xa8]
test rdx, rdx
je 0x14005efbe
mov rcx, rbx
call fcn.1400033fc
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
nop
cmp dword [rsp + 0x30], r14d
je 0x14005efee
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x14005efee
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x14005f031
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x14005f011
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005f031
test rcx, rcx
je 0x14005f01c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rsp + 0x88]
call fcn.140003388
nop
lea rcx, [rsp + 0xc8]
call fcn.140003388
nop
lea rcx, [rsp + 0xa8]
call fcn.140003388
nop
lea rcx, [rsp + 0x68]
call fcn.140003388
movabs rax, 0x8000000000
jmp 0x14005f076
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140060290
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret