Function at 0x1082c58
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.010aecd7
mov esi, eax
cmp esi, ebx
je 0x1082c9f
push esi
push 0x11500c9
jmp 0x1082e8f
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x1082cca
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x14]
call fcn.01082bc2
mov esi, eax
cmp esi, ebx
je 0x1082cc7
push esi
push 0x11f00c9
jmp 0x1082e8f
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.01082adb
mov esi, eax
cmp esi, ebx
je 0x1082cf3
push esi
push 0x12e00c9
jmp 0x1082e8f
lea eax, [ebp - 0xc]
push eax
mov edi, 0x10021d4
push edi
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.010ae810
mov esi, eax
cmp esi, ebx
je 0x1082d15
push esi
push 0x13700c9
jmp 0x1082d79
lea eax, [ebp - 0x24]
push eax
mov edi, 0x100c068
push edi
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.010ae883
mov esi, eax
cmp esi, ebx
je 0x1082d37
push esi
push 0x14100c9
jmp 0x1082d79
lea eax, [ebp - 0x1c]
push eax
mov edi, 0x101a6b0
push edi
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.010ae883
mov esi, eax
cmp esi, ebx
je 0x1082d59
push esi
push 0x14b00c9
jmp 0x1082d79
lea eax, [ebp - 4]
push eax
mov edi, 0x101a694
push edi
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.010ae810
mov esi, eax
cmp esi, ebx
je 0x1082d84
push esi
push 0x15500c9
push edi
call fcn.0108c595
jmp 0x1082e94
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x14]
push dword [ebp - 4]
push 0x101a674
call fcn.010af0f3
mov esi, eax
cmp esi, 0x80070002
je 0x1082db7
cmp esi, ebx
je 0x1082db7
push esi
push 0x16000c9
jmp 0x1082e8f
cmp dword [ebp + 0x20], ebx
jne 0x1082e4d
cmp dword [ebp - 0x1c], ebx
je 0x1082e4d
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 0x1082df9
jle 0x1082dec
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push 0x17300c9
jmp 0x1082e8f
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x1082e40
cmp dword [eax], ebx
je 0x1082e40
mov edx, dword [eax]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1082e0b
sub eax, esi
sar eax, 1
cmp eax, 2
jbe 0x1082e40
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push 0xc8
add edx, 4
push edx
call fcn.010a7eee
mov esi, eax
cmp esi, ebx
je 0x1082e4d
push esi
push 0x18300c9
jmp 0x1082e8f
mov esi, 0x8000ffff
push esi
push 0x17a00c9
jmp 0x1082e8f
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.01089834
mov esi, eax
cmp esi, ebx
je 0x1082e94
push esi
push 0x19700c9
call fcn.0108c55a
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], ebx
je 0x1082ea4
push dword [ebp - 8]
call edi
cmp dword [ebp - 0xc], ebx
je 0x1082eae
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 0x10], ebx
je 0x1082eb8
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 4], ebx
je 0x1082ec2
push dword [ebp - 4]
call edi
cmp dword [ebp - 0x14], ebx
je 0x1082ecf
push dword [ebp - 0x14]
call sub.NETAPI32.dll_NetApiBufferFree
push ebx
push ebx
push dword [ebp - 0x18]
call fcn.010a73b4
lea eax, [ebp - 0x48]
push eax
call fcn.01082aa6
push ebx
push ebx
push ebx
push 1
push 0xe8
push esi
push 0x1b0
push 0xc9
call fcn.010a9a17
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x24