Function at 0x44f9af
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], ecx
mov eax, edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x408598
push edi
cmp eax, 2
je 0x44f9e6
mov dword [ebp - 0x1c], 0x40cb90
mov edi, dword [ebp + 8]
mov ebx, esi
mov dword [ebp - 0x18], esi
mov dword [edi], esi
jne 0x44fab2
lea eax, [ebp - 4]
xor edx, edx
push eax
push 0x40cbe0
inc edx
call fcn.0044f7d6
test eax, eax
jne 0x44faac
lea eax, [ebp - 0x14]
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 0x44fa38
push esi
push 0x1ab80133
call dword [sym.imp.certcli.dll_Ordinal_357]
xor edi, edi
jmp 0x44fc70
mov eax, dword [ebp - 0x14]
push 0x5c
pop ecx
mov eax, dword [eax]
jmp 0x44fa45
add eax, 2
cmp word [eax], cx
je 0x44fa42
lea ecx, [ebp - 0x10]
push ecx
xor ecx, ecx
push ecx
push eax
call dword [sym.imp.NTDSAPI.dll_DsBindW]
mov esi, eax
test esi, esi
je 0x44fa66
push esi
push 0x1ac10133
jmp 0x44fa2b
lea eax, [ebp - 0x20]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push 1
push 1
push 8
push esi
push dword [ebp - 0x10]
call dword [sym.imp.NTDSAPI.dll_DsCrackNamesW]
test eax, eax
jne 0x44faac
mov eax, dword [ebp - 0x20]
cmp dword [eax], esi
jbe 0x44faac
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x44faac
mov edx, edi
call fcn.004c723f
mov esi, eax
test esi, esi
je 0x44faaa
push esi
push 0x1acf0133
jmp 0x44fa2b
xor esi, esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edi, esi
xor edx, edx
mov esi, dword [ebp + 8]
cmp dword [esi], edx
jne 0x44fc55
cmp eax, 2
lea eax, [ebp - 4]
push eax
push edx
jne 0x44fb1c
push 2
pop edx
call fcn.0044f7d6
mov edi, eax
test edi, edi
je 0x44fb0e
push edi
push 0x1ae10133
call dword [sym.imp.certcli.dll_Ordinal_357]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
mov edx, 0x40cbf8
mov ecx, dword [ecx + 0xc]
add ecx, 0x30
call fcn.004cb9b0
mov edi, eax
test edi, edi
je 0x44fb0e
push edi
push 0x1ae90133
call dword [sym.imp.certcli.dll_Ordinal_357]
neg edi
sbb edi, edi
not edi
and edi, 0x40b894
jmp 0x44fb5f
push 3
pop edx
call fcn.0044f7d6
test eax, eax
je 0x44fb5a
push eax
push 0x1af80133
call dword [sym.imp.certcli.dll_Ordinal_357]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
xor edx, edx
mov ecx, dword [ecx + 0xc]
add ecx, 0x30
call fcn.004cbade
test eax, eax
je 0x44fb5a
push eax
push 0x1b000133
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x44fb5f
mov edi, 0x40b590
cmp dword [ebp - 4], ebx
je 0x44fc55
xor eax, eax
xor ecx, ecx
push eax
push eax
lea eax, [ebp - 0x18]
push eax
push 0xa
pop edx
call fcn.00448df3
mov esi, eax
test esi, esi
je 0x44fb8b
push esi
push 0x1b120133
jmp 0x44fa2b
cmp dword [ebp - 0xc], 2
jne 0x44fc31
mov ecx, dword [ebp - 0x1c]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x44fb9d
sub ecx, edx
mov edx, edi
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x44fbb1
sub edx, esi
mov esi, dword [ebp - 4]
sar edx, 1
lea ebx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, word [ebp - 0x24]
jne 0x44fbc6
sub esi, ebx
sar esi, 1
lea eax, [esi + edx]
lea esi, [ecx + 0x1e]
add esi, eax
lea eax, [esi + esi]
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x44fc01
mov esi, 0x8007000e
push esi
push 0x1b210133
jmp 0x44fa2b
push dword [ebp - 4]
push edi
push dword [ebp - 0x1c]
push 0x40cba4
push esi
push ebx
call fcn.0043ec15
mov ecx, dword [ebp - 0x18]
add esp, 0x18
mov edx, ebx
push dword [ebp + 8]
call fcn.004e8521
test eax, eax
je 0x44fc52
push eax
push 0x1b2a0133
push ebx
jmp 0x44fc4c
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
call fcn.004e85f1
test eax, eax
je 0x44fc52
push eax
push 0x1b320133
push dword [ebp - 4]
call dword [sym.imp.certcli.dll_Ordinal_359]
mov esi, dword [ebp + 8]
xor edi, edi
cmp dword [esi], edi
jne 0x44fc6e
mov esi, 0x80092004
push esi
push 0x1b3a0133
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x44fc70
mov esi, edi
cmp dword [ebp - 0x10], 0
je 0x44fc80
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.NTDSAPI.dll_DsUnBindW]
cmp dword [ebp - 0x14], 0
je 0x44fc8f
push dword [ebp - 0x14]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x44fc9d
push eax
call dword [sym.imp.NTDSAPI.dll_DsFreeNameResultW]
cmp dword [ebp - 4], 0
je 0x44fcac
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x18]
xor edx, edx
push edi
call fcn.004e6d5b
test ebx, ebx
je 0x44fcc2
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4