Function at 0x100ffe5
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
push esi
xor eax, eax
push edi
push 0x10031e4
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0x10031b8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
call ebx
mov esi, dword [ebp + 0x10]
pop ecx
lea ecx, [ebp - 4]
push ecx
push 0x40010220
mov edi, eax
xor eax, eax
push eax
push eax
push dword [ebp + 8]
add edi, 8
push eax
mov dword [esi], eax
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x1010077
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x1010077
push eax
call ebx
lea eax, [eax + eax + 2]
push eax
call fcn.01003329
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x101005e
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x10100c5
mov ecx, dword [ebp - 4]
push dword [ecx + 0x1c]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x10100a0
cmp dword [ebp + 8], 0
je 0x10100a0
push dword [ebp + 8]
call ebx
lea eax, [eax + eax + 2]
push eax
call fcn.01003329
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
je 0x10100c5
push dword [ebp + 8]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov eax, dword [esi]
test eax, eax
je 0x10100b4
cmp word [eax], 0
je 0x10100b4
push eax
call ebx
pop ecx
lea edi, [edi + eax + 1]
lea eax, [edi + edi]
push eax
call fcn.01003329
test eax, eax
pop ecx
mov dword [ebp + 8], eax
jne 0x10100cf
mov eax, 0x8007000e
jmp 0x10101d1
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x1002d4c
push 0x10031b0
push eax
call edi
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x1010107
cmp word [eax], 0
je 0x1010107
push esi
mov esi, dword [ebp + 8]
push 0x10031a8
push esi
call ebx
pop ecx
lea eax, [esi + eax*2]
push eax
call edi
add esp, 0xc
push 0x10031e4
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0
push dword [ebp + 8]
call sub.adsldpc.dll_ADSIOpenDSObject
test eax, eax
mov dword [ebp + 0x10], eax
jl 0x10101a8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call sub.adsldpc.dll_ADSIGetObjectAttributes
test eax, eax
mov dword [ebp + 0x10], eax
jl 0x10101a8
mov esi, dword [ebp - 0xc]
sub esp, 0x14
push 5
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0100fe52
mov edi, eax
push edi
call ebx
mov esi, 0x1003174
push esi
mov dword [ebp - 0x18], eax
call ebx
mov ecx, dword [ebp - 0x18]
add ecx, eax
lea eax, [ecx + ecx + 2]
push eax
call fcn.01003329
mov ecx, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
mov dword [ecx], eax
jne 0x1010191
mov dword [ebp + 0x10], 0x8007000e
cmp dword [ebp + 0x10], 0
jl 0x10101a8
push edi
push esi
push 0x1003168
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp dword [ebp - 8], 0
je 0x10101b6
push dword [ebp - 8]
call sub.adsldpc.dll_ADSICloseDSObject
cmp dword [ebp - 0xc], 0
je 0x10101c4
push dword [ebp - 0xc]
call sub.ACTIVEDS.dll_FreeADsMem
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp + 0x10]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc