Function at 0x14005f5d0
Capabilities:
Get domain controller name

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0xf0
mov rax, qword [0x1400ab2f8]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov qword [rdx + 0x10], r14
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x14005f60c
mov rax, qword [rdx]
mov word [rax], r14w
movdqa xmm0, xmmword [0x140091cb0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r14w
movdqu xmmword [rsp + 0xb0], xmm0
mov word [rsp + 0xa0], r14w
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0xa0]
call fcn.14005ef18
mov rdi, rax
mov rcx, rax
shr rcx, 0x27
not ecx
test cl, 1
je 0x14005f679
lea rcx, [rsp + 0xa0]
call fcn.140003764
nop
lea rcx, [rsp + 0x60]
call fcn.140003764
mov rax, rdi
jmp 0x14005faf4
movdqa xmm0, xmmword [0x140091cb0]
movdqu xmmword [rsp + 0xd0], xmm0
mov word [rsp + 0xc0], r14w
lea rdx, [rsp + 0xc0]
call fcn.140060b7c
mov edi, eax
test eax, eax
je 0x14005f723
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 0x14005f6c8
inc rax
jmp 0x14005f6cf
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400ac650]
call fcn.140011ab4
shl rax, 0x34
mov rbx, rdi
or rbx, rax
movabs rax, 0x262500000000
or rbx, rax
lea rcx, [rsp + 0xc0]
call fcn.140003764
nop
lea rcx, [rsp + 0xa0]
call fcn.140003764
nop
lea rcx, [rsp + 0x60]
call fcn.140003764
mov rax, rbx
jmp 0x14005faf4
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
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 0x14005f774
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
lea rcx, [rsp + 0x60]
call fcn.140003804
mov rcx, qword [rsp + 0x30]
jmp 0x14005f77e
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14005f78a
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
nop dword [rax + rax]
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], 7
mov word [rsp + 0x80], r14w
lea rdx, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14005f7f4
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.1400333b8
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x40], r14d
lea rcx, [rsp + 0x48]
call fcn.14003b460
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x14005f825
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 0x14005f904
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 0x14005f84d
inc rax
jmp 0x14005f854
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400ac650]
call fcn.140011ab4
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 0x14005f8bd
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x14005f8bd
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.14003b4f8
nop
lea rcx, [rsp + 0x80]
call fcn.140003764
nop
lea rcx, [rsp + 0xc0]
call fcn.140003764
nop
lea rcx, [rsp + 0xa0]
call fcn.140003764
nop
lea rcx, [rsp + 0x60]
call fcn.140003764
mov rax, rdi
jmp 0x14005faf4
cmp qword [rsp + 0x90], r14
jne 0x14005f913
mov rcx, r14
jmp 0x14005f92d
lea rcx, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae rdx, 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 0x14005fa49
test rcx, rcx
je 0x14005f97e
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 0x14005f9a0
inc rax
jmp 0x14005f9a7
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400ac650]
call fcn.140011ab4
shl rax, 0x34
mov rbx, rdi
or rbx, rax
movabs rax, 0x2b2500000000
or rbx, rax
cmp dword [rsp + 0x40], r14d
je 0x14005fa02
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x14005fa02
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.14003b4f8
nop
lea rcx, [rsp + 0x80]
call fcn.140003764
nop
lea rcx, [rsp + 0xc0]
call fcn.140003764
nop
lea rcx, [rsp + 0xa0]
call fcn.140003764
nop
lea rcx, [rsp + 0x60]
call fcn.140003764
mov rax, rbx
jmp 0x14005faf4
mov rdx, qword [rcx + 0xa8]
test rdx, rdx
je 0x14005fa62
mov rcx, rbx
call fcn.140003804
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
nop dword [rax + rax]
nop
cmp dword [rsp + 0x40], r14d
je 0x14005faa4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x14005faa4
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.14003b4f8
nop
lea rcx, [rsp + 0x80]
call fcn.140003764
nop
lea rcx, [rsp + 0xc0]
call fcn.140003764
nop
lea rcx, [rsp + 0xa0]
call fcn.140003764
nop
lea rcx, [rsp + 0x60]
call fcn.140003764
movabs rax, 0x8000000000
jmp 0x14005faf4
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140061060
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop r14
pop rdi
pop rsi
ret