Function at 0x1082be5
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 7
pop ecx
xor eax, eax
xor ebx, ebx
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.010aed42
mov esi, eax
cmp esi, ebx
je 0x1082c2c
push esi
push 0x11500c9
jmp 0x1082e1c
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x1082c57
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x14]
call fcn.01082b4f
mov esi, eax
cmp esi, ebx
je 0x1082c54
push esi
push 0x11f00c9
jmp 0x1082e1c
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x48]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push dword [ebp + 0x14]
call fcn.01082a68
mov esi, eax
cmp esi, ebx
je 0x1082c80
push esi
push 0x12e00c9
jmp 0x1082e1c
lea eax, [ebp - 0xc]
push eax
mov edi, 0x10021cc
push edi
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.010ae87b
mov esi, eax
cmp esi, ebx
je 0x1082ca2
push esi
push 0x13700c9
jmp 0x1082d06
lea eax, [ebp - 0x24]
push eax
mov edi, 0x100c078
push edi
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.010ae8ee
mov esi, eax
cmp esi, ebx
je 0x1082cc4
push esi
push 0x14100c9
jmp 0x1082d06
lea eax, [ebp - 0x1c]
push eax
mov edi, 0x101a620
push edi
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.010ae8ee
mov esi, eax
cmp esi, ebx
je 0x1082ce6
push esi
push 0x14b00c9
jmp 0x1082d06
lea eax, [ebp - 4]
push eax
mov edi, 0x101a604
push edi
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.010ae87b
mov esi, eax
cmp esi, ebx
je 0x1082d11
push esi
push 0x15500c9
push edi
call fcn.0108c53e
jmp 0x1082e21
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x14]
push dword [ebp - 4]
push 0x101a5e4
call fcn.010af15e
mov esi, eax
cmp esi, 0x80070002
je 0x1082d44
cmp esi, ebx
je 0x1082d44
push esi
push 0x16000c9
jmp 0x1082e1c
cmp dword [ebp + 0x20], ebx
jne 0x1082dda
cmp dword [ebp - 0x1c], ebx
je 0x1082dda
lea eax, [ebp - 0x14]
push eax
push 0x40001000
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
cmp eax, ebx
je 0x1082d86
jle 0x1082d79
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push 0x17300c9
jmp 0x1082e1c
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x1082dcd
cmp dword [eax], ebx
je 0x1082dcd
mov edx, dword [eax]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1082d98
sub eax, esi
sar eax, 1
cmp eax, 2
jbe 0x1082dcd
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push 0xc8
add edx, 4
push edx
call fcn.010a7f5c
mov esi, eax
cmp esi, ebx
je 0x1082dda
push esi
push 0x18300c9
jmp 0x1082e1c
mov esi, 0x8000ffff
push esi
push 0x17a00c9
jmp 0x1082e1c
push dword [ebp - 0x18]
lea eax, [ebp - 0x48]
push dword [ebp - 0x10]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 0x1c]
push dword [ebp + 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push eax
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010897dd
mov esi, eax
cmp esi, ebx
je 0x1082e21
push esi
push 0x19700c9
call fcn.0108c503
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], ebx
je 0x1082e31
push dword [ebp - 8]
call edi
cmp dword [ebp - 0xc], ebx
je 0x1082e3b
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 0x10], ebx
je 0x1082e45
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 4], ebx
je 0x1082e4f
push dword [ebp - 4]
call edi
cmp dword [ebp - 0x14], ebx
je 0x1082e5c
push dword [ebp - 0x14]
call sub.NETAPI32.dll_NetApiBufferFree
push ebx
push ebx
push dword [ebp - 0x18]
call fcn.010a740a
lea eax, [ebp - 0x48]
push eax
call fcn.01082a33
push ebx
push ebx
push ebx
push 1
push 0xe8
push esi
push 0x1b0
push 0xc9
call fcn.010a9a82
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x24