Function at 0x100eb9e
Capabilities:
Get domain controller name

Disassembly:
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 0x100ec2e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x100ec2e
push eax
call ebx
lea eax, [eax + eax + 2]
push eax
call fcn.010032c8
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x100ec15
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x100ec7c
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 0x100ec57
cmp dword [ebp + 8], 0
je 0x100ec57
push dword [ebp + 8]
call ebx
lea eax, [eax + eax + 2]
push eax
call fcn.010032c8
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
je 0x100ec7c
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 0x100ec6b
cmp word [eax], 0
je 0x100ec6b
push eax
call ebx
pop ecx
lea edi, [edi + eax + 1]
lea eax, [edi + edi]
push eax
call fcn.010032c8
test eax, eax
pop ecx
mov dword [ebp + 8], eax
jne 0x100ec86
mov eax, 0x8007000e
jmp 0x100ed88
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 0x100ecbe
cmp word [eax], 0
je 0x100ecbe
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 0x100ed5f
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 0x100ed5f
mov esi, dword [ebp - 0xc]
sub esp, 0x14
push 5
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0100ea3c
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.010032c8
mov ecx, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
mov dword [ecx], eax
jne 0x100ed48
mov dword [ebp + 0x10], 0x8007000e
cmp dword [ebp + 0x10], 0
jl 0x100ed5f
push edi
push esi
push 0x1003168
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp dword [ebp - 8], 0
je 0x100ed6d
push dword [ebp - 8]
call sub.adsldpc.dll_ADSICloseDSObject
cmp dword [ebp - 0xc], 0
je 0x100ed7b
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