Function at 0x525a9d
Capabilities:
Get domain controller name

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x666fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x758f44]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
lea ebx, [edi + 4]
push ebx
push 0x40000000
push eax
push eax
push eax
push eax
mov dword [edi], eax
mov esi, eax
mov dword [ebx], eax
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
mov dword [ebp + 8], eax
test eax, eax
je 0x525b99
push 5
pop ecx
call fcn.00488e9b
test al, al
je 0x525cb8
push ecx
lea ecx, [ebp - 0xa4]
call fcn.004506fd
and dword [ebp - 4], esi
lea ecx, [ebp - 0xa4]
mov edx, str.Domain_controller_lookup_result__error_code:
call fcn.00451714
push dword [ebp + 8]
mov ecx, eax
call fcn.00455eec
sub esp, 0x18
mov ecx, 0x7061b0
mov eax, esp
mov dword [ebp + 8], esp
push eax
call fcn.00455b3d
sub esp, 0x18
mov byte [ebp - 4], 1
mov eax, esp
mov dword [ebp], esp
mov ecx, 0x706198
push eax
call fcn.004671f3
sub esp, 0x18
mov byte [ebp - 4], 2
mov eax, esp
lea ecx, [ebp - 0xa0]
mov dword [ebp + 4], eax
push eax
call fcn.00450fef
push 0x5c
pop edx
push 5
pop ecx
mov byte [ebp - 4], 0
call fcn.00488e21
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
add esp, 0x48
call fcn.0044ec83
jmp 0x525cb8
push 2
pop ecx
call fcn.00488e9b
test al, al
je 0x525cb4
push ecx
lea ecx, [ebp - 0xa4]
call fcn.004506fd
mov edx, str.Domain_controller_information:
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xa4]
call fcn.00451714
mov esi, eax
lea ecx, [ebp + 0x3c]
mov eax, dword [ebx]
push dword [eax]
call fcn.0044eb76
lea edx, [ebp + 0x3c]
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.0048a4b7
mov edx, eax
mov byte [ebp - 4], 5
mov ecx, esi
call fcn.0045195f
mov edx, 0x706008
mov ecx, eax
call fcn.00451714
mov esi, eax
lea ecx, [ebp + 0x54]
mov eax, dword [ebx]
push dword [eax + 4]
call fcn.0044eb76
lea edx, [ebp + 0x54]
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x24]
call fcn.0048a4b7
mov edx, eax
mov byte [ebp - 4], 7
mov ecx, esi
call fcn.0045195f
lea ecx, [ebp + 0x24]
call fcn.004511a7
lea ecx, [ebp + 0x54]
call fcn.004510b9
lea ecx, [ebp + 0xc]
call fcn.004511a7
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 3
call fcn.004510b9
sub esp, 0x18
mov ecx, 0x7061b0
mov eax, esp
mov dword [ebp + 4], esp
push eax
call fcn.00455b3d
sub esp, 0x18
mov byte [ebp - 4], 8
mov eax, esp
mov dword [ebp], esp
mov ecx, 0x706198
push eax
call fcn.004671f3
sub esp, 0x18
mov byte [ebp - 4], 9
mov eax, esp
lea ecx, [ebp - 0xa0]
mov dword [ebp + 8], eax
push eax
call fcn.00450fef
push 0x60
pop edx
push 2
pop ecx
mov byte [ebp - 4], 3
call fcn.00488e21
add esp, 0x48
lea ecx, [ebp - 0xa4]
or dword [ebp - 4], 0xffffffff
call fcn.0044ec83
mov eax, dword [ebx]
mov esi, dword [eax]
push edi
push 0
push esi
call dword [sym.imp.NTDSAPI.dll_DsBindW]
mov esi, eax
test esi, esi
je 0x525d63
push 5
pop ecx
call fcn.00488e9b
test al, al
je 0x525df5
push ecx
lea ecx, [ebp - 0xa4]
call fcn.004506fd
mov edx, str.Directory_service_bind_result__error_code:
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0xa4]
call fcn.00451714
push esi
mov ecx, eax
call fcn.00455eec
sub esp, 0x18
mov ecx, 0x7061b0
mov eax, esp
mov dword [ebp + 4], esp
push eax
call fcn.00455b3d
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov eax, esp
mov dword [ebp], esp
mov ecx, 0x706198
push eax
call fcn.004671f3
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov eax, esp
lea ecx, [ebp - 0xa0]
mov dword [ebp + 8], eax
push eax
call fcn.00450fef
push 0x66
pop edx
push 5
pop ecx
mov byte [ebp - 4], 0xa
call fcn.00488e21
lea ecx, [ebp - 0xa4]
jmp 0x525ded
push 2
pop ecx
call fcn.00488e9b
test al, al
je 0x525df5
push ecx
lea ecx, [ebp - 0x13c]
call fcn.004506fd
mov edx, str.Domain_services_bind_successful.
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x13c]
call fcn.00451714
sub esp, 0x18
mov ecx, 0x7061b0
mov eax, esp
mov dword [ebp + 4], esp
push eax
call fcn.00455b3d
sub esp, 0x18
mov byte [ebp - 4], 0xe
mov eax, esp
mov dword [ebp], esp
mov ecx, 0x706198
push eax
call fcn.004671f3
sub esp, 0x18
mov byte [ebp - 4], 0xf
mov eax, esp
lea ecx, [ebp - 0x138]
mov dword [ebp + 8], eax
push eax
call fcn.00450fef
push 0x6a
pop edx
push 2
pop ecx
mov byte [ebp - 4], 0xd
call fcn.00488e21
lea ecx, [ebp - 0x13c]
add esp, 0x48
call fcn.0044ec83
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.005f9dd5
add ebp, 0x70
leave
ret