Function at 0x4017b0
Capabilities:
Get domain controller name
List domain servers
List user accounts for group
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
mov eax, dword [0x40c2c0]
push ebx
xor ebx, ebx
mov dword [esp + 0x7c], eax
cmp dword [0x40c818], ebx
push ebp
mov ebp, dword [esp + 0x88]
push edi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x38], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], 1
je 0x40180a
push edi
push ebp
push str.GLOBAL_GROUP:__s_s_n
call fcn.00402525
add esp, 0xc
mov eax, ebp
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401810
sub eax, esi
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
call fcn.00402952
add esp, 4
push esi
push eax
push 0xffffffffffffffff
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
push ebx
mov dword [esp + 0x44], eax
call ebp
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401841
sub eax, esi
lea esi, [eax + eax]
lea ecx, [esi + 2]
push ecx
call fcn.00402952
add esp, 4
push esi
push eax
push 0xffffffffffffffff
push edi
push 1
push ebx
mov dword [esp + 0x3c], eax
call ebp
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x18]
push edx
push eax
push ebx
call sub.NETAPI32.dll_NetGetDCName
test eax, eax
jne 0x401978
nop
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 0x400
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
call sub.NETAPI32.dll_NetGroupGetUsers
mov ebp, eax
cmp ebp, 0x52e
jne 0x4018ef
mov eax, dword [esp + 0x18]
push eax
call fcn.00401600
add esp, 4
test eax, eax
je 0x401978
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 0x400
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
call sub.NETAPI32.dll_NetGroupGetUsers
mov ebp, eax
cmp ebp, ebx
je 0x4018fb
cmp ebp, 0xea
jne 0x401978
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
xor edi, edi
cmp eax, ebx
jbe 0x401959
lea esp, [esp]
mov ecx, dword [esi]
push ebx
push ebx
push 0x3c
lea eax, [esp + 0x58]
push eax
push ecx
call fcn.004027f7
mov edx, dword [esi]
add esp, 4
push eax
push edx
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x3c]
mov byte [esp + eax + 0x4c], bl
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.00401700
mov eax, dword [esp + 0x1c]
add esp, 8
inc edi
movzx edx, di
add esi, 4
cmp edx, eax
jb 0x401910
mov eax, dword [esp + 0x10]
push eax
call sub.NETAPI32.dll_NetApiBufferFree
cmp ebp, 0xea
mov dword [esp + 0x10], ebx
je 0x401880
jmp 0x401b4c
mov ecx, dword [esp + 0x2c]
push ebx
push ecx
push 0x10
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x50]
push eax
push 0x100
lea ecx, [esp + 0x48]
push ecx
push 0x64
push ebx
call sub.NETAPI32.dll_NetServerEnum
cmp dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
jbe 0x401b48
mov esi, dword [esp + 0x30]
add esi, 4
mov dword [esp + 0x28], esi
jmp 0x4019c0
mov esi, dword [esp + 0x28]
jmp 0x4019c0
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 6]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4019de
push eax
call fcn.00402899
add esp, 4
push edi
call fcn.00402952
mov ebp, eax
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov word [ebp], 0x5c
mov word [ebp + 2], 0x5c
mov eax, dword [esi]
add esp, 4
push eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [esi]
lea ecx, [eax + eax + 2]
mov edx, ecx
shr ecx, 2
lea edi, [ebp + 4]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x20], ebx
jmp 0x401a37
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
push edx
push 0x400
lea eax, [esp + 0x20]
push eax
push ebx
push ecx
push ebp
call sub.NETAPI32.dll_NetGroupGetUsers
mov ebp, eax
cmp ebp, 0x52e
jne 0x401aa6
mov edx, dword [esp + 0x18]
push edx
call fcn.00401600
add esp, 4
test eax, eax
je 0x401b27
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
push 0x400
lea eax, [esp + 0x20]
push eax
push ebx
push ecx
push edx
call sub.NETAPI32.dll_NetGroupGetUsers
mov ebp, eax
cmp ebp, ebx
je 0x401ab2
cmp ebp, 0xea
jne 0x401b23
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
xor edi, edi
cmp eax, ebx
jbe 0x401b09
mov ecx, dword [esi]
push ebx
push ebx
push 0x3c
lea eax, [esp + 0x58]
push eax
push ecx
call fcn.004027f7
mov edx, dword [esi]
add esp, 4
push eax
push edx
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x3c]
mov byte [esp + eax + 0x4c], bl
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.00401700
mov eax, dword [esp + 0x1c]
add esp, 8
inc edi
movzx edx, di
add esi, 4
cmp edx, eax
jb 0x401ac0
mov eax, dword [esp + 0x10]
push eax
call sub.NETAPI32.dll_NetApiBufferFree
cmp ebp, 0xea
mov dword [esp + 0x10], ebx
je 0x401a33
cmp ebp, ebx
je 0x401b4c
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x44]
inc eax
add ecx, 8
mov dword [esp + 0x28], ecx
movzx ecx, ax
mov dword [esp + 0x44], eax
cmp ecx, dword [esp + 0x40]
jb 0x4019b7
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
pop esi
je 0x401b5e
push eax
call fcn.00402899
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x401b6f
push eax
call fcn.00402899
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x401b80
push eax
call fcn.00402899
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x401b8e
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x401b9c
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [esp + 0x2c]
pop edi
pop ebp
cmp eax, ebx
pop ebx
je 0x401bad
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x28]
call fcn.0040273a
add esp, 0x7c
ret