Function at 0x1033bdb
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], 0x1002c38
je 0x1033c0a
mov dword [ebp - 0x18], 0x1005b44
cmp dword [ebp + 0xc], ebx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [eax], esi
jne 0x1033cd3
lea eax, [ebp - 4]
push eax
push 0x1005b2c
push 1
push edi
call fcn.0103116b
test eax, eax
jne 0x1033cd3
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 0x1033c5b
push esi
push 0x10270133
jmp 0x1033e85
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
jmp 0x1033c64
add eax, ebx
cmp word [eax], 0x5c
je 0x1033c62
lea ecx, [ebp - 8]
push ecx
push 0
push eax
call dword [sym.imp.NTDSAPI.dll_DsBindW]
mov esi, eax
test esi, esi
je 0x1033c88
push esi
push 0x10300133
jmp 0x1033e85
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 0x1033cd1
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jbe 0x1033cd1
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x1033cd1
push dword [ebp + 0x10]
push eax
call fcn.010a4a18
mov esi, eax
test esi, esi
je 0x1033cd1
push esi
push 0x103e0133
jmp 0x1033e85
xor esi, esi
mov eax, dword [ebp + 0x10]
cmp dword [eax], esi
mov dword [ebp + 8], esi
jne 0x1033e71
cmp dword [ebp + 0xc], ebx
lea eax, [ebp - 4]
push eax
push esi
jne 0x1033d2b
push ebx
push edi
call fcn.0103116b
cmp eax, esi
je 0x1033d22
push eax
push 0x10500133
call fcn.0107ae44
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0xc]
push 0x1005b14
add eax, 0x30
push eax
call fcn.0107b75e
cmp eax, esi
je 0x1033d22
push eax
push 0x10580133
jmp 0x1033d5d
mov dword [ebp + 8], 0x10045fc
jmp 0x1033d6b
push 3
push edi
call fcn.0103116b
cmp eax, esi
je 0x1033d64
push eax
push 0x10670133
call fcn.0107ae44
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0xc]
push esi
add eax, 0x30
push eax
call fcn.0107b85e
cmp eax, esi
je 0x1033d64
push eax
push 0x106f0133
call fcn.0107ae44
jmp 0x1033d6b
mov dword [ebp + 8], 0x10048a0
cmp dword [ebp - 4], esi
je 0x1033e71
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push 0xa
push esi
call fcn.0102f153
mov esi, eax
test esi, esi
je 0x1033d93
push esi
push 0x10810133
jmp 0x1033e85
cmp dword [ebp + 0xc], ebx
jne 0x1033e4f
mov eax, 0x1005ad8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x1033da4
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, ebx
test dx, dx
jne 0x1033dba
sub eax, ecx
sar eax, 1
mov ebx, eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1033dd0
sub eax, ecx
sar eax, 1
mov ecx, eax
mov eax, dword [ebp - 4]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x1033de6
sub eax, edx
sar eax, 1
add eax, ecx
add eax, ebx
lea esi, [eax + edi + 1]
lea eax, [esi + esi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
mov dword [ebp - 0x1c], edi
jne 0x1033e1e
mov eax, 0x8007000e
push eax
push 0x10900133
jmp 0x1033e83
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp - 0x18]
push 0x1005ad8
push esi
push edi
call fcn.01029706
add esp, 0x18
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x14]
call fcn.010938d4
test eax, eax
je 0x1033e6f
push eax
push 0x10990133
push edi
jmp 0x1033e6a
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp - 0x14]
call fcn.010939a2
test eax, eax
je 0x1033e6f
push eax
push 0x10a10133
push dword [ebp - 4]
call fcn.0107ae7f
xor esi, esi
mov eax, dword [ebp + 0x10]
cmp dword [eax], esi
jne 0x1033e8a
mov eax, 0x80092004
push eax
push 0x10a90133
mov esi, eax
call fcn.0107ae44
xor edi, edi
cmp dword [ebp - 8], edi
je 0x1033e9b
lea eax, [ebp - 8]
push eax
call dword [sym.imp.NTDSAPI.dll_DsUnBindW]
cmp dword [ebp - 0xc], edi
je 0x1033ea8
push dword [ebp - 0xc]
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0x10], edi
je 0x1033eb6
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 0x1033ec6
push dword [ebp - 4]
call edi
xor ebx, ebx
push ebx
push ebx
push dword [ebp - 0x14]
call fcn.0109337f
cmp dword [ebp - 0x1c], ebx
je 0x1033edc
push dword [ebp - 0x1c]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc