Function at 0x102090d
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
push 2
pop ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 0x10028a4
je 0x102093c
mov dword [ebp - 0x18], 0x1004a10
cmp dword [ebp + 0xc], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
jne 0x1020a00
lea eax, [ebp - 4]
push eax
push 0x10049f8
push 1
push edi
call fcn.01020746
test eax, eax
jne 0x1020a00
lea eax, [ebp - 0xc]
push eax
push 0x40
push esi
push esi
push esi
push esi
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
mov esi, eax
test esi, esi
je 0x1020988
push esi
push 0xf580133
jmp 0x1020b70
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
jmp 0x1020991
add eax, ebx
cmp word [eax], 0x5c
je 0x102098f
lea ecx, [ebp - 8]
push ecx
push 0
push eax
call dword [sym.imp.NTDSAPI.dll_DsBindW]
mov esi, eax
test esi, esi
je 0x10209b5
push esi
push 0xf610133
jmp 0x1020b70
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 1
push 1
push 8
push 0
push dword [ebp - 8]
call dword [sym.imp.NTDSAPI.dll_DsCrackNamesW]
test eax, eax
jne 0x10209fe
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jbe 0x10209fe
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x10209fe
push dword [ebp + 0x10]
push eax
call fcn.0106d913
mov esi, eax
test esi, esi
je 0x10209fe
push esi
push 0xf6f0133
jmp 0x1020b70
xor esi, esi
mov eax, dword [ebp + 0x10]
cmp dword [eax], esi
jne 0x1020b5c
cmp dword [ebp + 0xc], ebx
lea eax, [ebp - 4]
push eax
push esi
jne 0x1020a5a
push ebx
push edi
call fcn.01020746
cmp eax, esi
je 0x1020a51
push eax
push 0xf7f0133
call fcn.01053610
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0xc]
push 0x10049e0
add eax, 0x30
push eax
call fcn.01054380
cmp eax, esi
je 0x1020a51
push eax
push 0xf870133
call fcn.01053610
jmp 0x1020a95
mov dword [ebp + 8], 0x1003ffc
jmp 0x1020a95
push 3
push edi
call fcn.01020746
cmp eax, esi
je 0x1020a8e
push eax
push 0xf970133
call fcn.01053610
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0xc]
push esi
add eax, 0x30
push eax
call fcn.0105448b
cmp eax, esi
je 0x1020a8e
push eax
push 0xf9f0133
jmp 0x1020a4a
mov dword [ebp + 8], 0x10042a0
cmp dword [ebp - 4], esi
je 0x1020b5c
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push 0xa
push esi
call fcn.01062897
mov esi, eax
test esi, esi
je 0x1020abd
push esi
push 0xfb10133
jmp 0x1020b70
cmp dword [ebp + 0xc], ebx
jne 0x1020b3a
push dword [ebp + 8]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
call esi
push dword [ebp - 0x18]
mov ebx, eax
call esi
push dword [ebp - 4]
add ebx, eax
call esi
mov edi, 0x10049a4
push edi
add ebx, eax
call esi
add ebx, eax
add esp, 0x10
lea eax, [ebx + ebx + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
mov dword [ebp - 0x1c], esi
jne 0x1020b0d
mov eax, 0x8007000e
push eax
push 0xfbb0133
jmp 0x1020b6e
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp - 0x18]
push edi
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x14]
call fcn.01062289
test eax, eax
je 0x1020b5a
push eax
push 0xfc40133
push esi
jmp 0x1020b55
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp - 0x14]
call fcn.010623d3
test eax, eax
je 0x1020b5a
push eax
push 0xfcc0133
push dword [ebp - 4]
call fcn.0105364b
xor esi, esi
mov eax, dword [ebp + 0x10]
cmp dword [eax], esi
jne 0x1020b75
mov eax, 0x80092004
push eax
push 0xfd40133
mov esi, eax
call fcn.01053610
xor edi, edi
cmp dword [ebp - 8], edi
je 0x1020b86
lea eax, [ebp - 8]
push eax
call dword [sym.imp.NTDSAPI.dll_DsUnBindW]
cmp dword [ebp - 0xc], edi
je 0x1020b93
push dword [ebp - 0xc]
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0x10], edi
je 0x1020ba1
push dword [ebp - 0x10]
call dword [sym.imp.NTDSAPI.dll_DsFreeNameResultW]
cmp dword [ebp - 4], edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1020bb1
push dword [ebp - 4]
call edi
xor ebx, ebx
push ebx
push ebx
push dword [ebp - 0x14]
call fcn.01061ee4
cmp dword [ebp - 0x1c], ebx
je 0x1020bc7
push dword [ebp - 0x1c]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc