Function at 0x712ff283
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x71316010]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0x450], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x438], esi
call fcn.71314729
and eax, 0x20
mov dword [ebp - 0x440], eax
xor eax, eax
cmp dword [0x71319cc8], esi
push ebx
setne al
mov dword [ebp - 0x448], eax
call fcn.712fed09
mov edi, eax
cmp edi, esi
jl 0x712ff5e0
push ebx
call fcn.712fedca
mov edi, eax
cmp edi, esi
jl 0x712ff5e0
mov eax, dword [ebx + 0x10]
cmp eax, 0x11
jb 0x712ff3a0
cmp eax, 0x12
jbe 0x712ff383
cmp eax, 0x14
jbe 0x712ff3a0
cmp eax, 0x16
jbe 0x712ff383
cmp eax, 0x1a
je 0x712ff36c
cmp eax, 0x21
jne 0x712ff3a0
push dword [ebp - 0x43c]
push dword [ebp - 0x418]
push ebx
call fcn.712fef09
jmp 0x712ff5de
push dword [ebp - 0x43c]
push dword [ebp - 0x418]
push ebx
call fcn.712fee91
jmp 0x712ff5de
push dword [ebp - 0x43c]
push dword [ebx + 0x424]
push dword [ebp - 0x418]
push ebx
call fcn.712fef84
jmp 0x712ff5de
cmp dword [ebx + 8], esi
jne 0x712ff51b
push 1
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
push dword [ebx + 0x424]
call sub.adsldpc.dll_GetDefaultServer
cmp eax, esi
je 0x712ff3e4
jle 0x712ff3da
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, esi
jl 0x712ff5e0
cmp dword [ebp - 0x448], esi
lea edi, [ebp - 0x414]
je 0x712ff434
mov eax, dword [0x71319ccc]
cmp eax, esi
je 0x712ff417
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x712ff417
cmp dword [0x71319ccc], esi
jne 0x712ff434
push dword [0x71319cc8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
xor edi, edi
mov dword [ebp - 0x448], esi
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x450]
call sub.adsldpc.dll_BuildLDAPPathFromADsPath2
push dword [ebp - 0x44c]
lea eax, [ebp - 0x438]
push dword [ebp - 0x418]
mov dword [ebp - 0x430], esi
push eax
push dword [ebp - 0x428]
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.adsldpc.dll_LdapOpenObject2
mov edi, eax
cmp edi, esi
jl 0x712ff4bc
cmp dword [ebp - 0x440], esi
jne 0x712ff4bc
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x712f3158
push dword [ebp - 0x428]
push dword [ebp - 0x438]
call sub.adsldpc.dll_LdapReadAttributeFast
mov edi, eax
cmp edi, esi
jl 0x712ff5e0
cmp edi, 0x80070035
je 0x712ff4cc
cmp edi, 0x8007203a
jne 0x712ff51b
cmp dword [ebp - 0x420], esi
jne 0x712ff51b
mov eax, dword [0x71319cd0]
mov dword [ebp - 0x420], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x420]
cmp ecx, esi
je 0x712ff501
cmp ecx, eax
ja 0x712ff4f7
sub eax, ecx
jmp 0x712ff4fa
sub eax, ecx
dec eax
cmp eax, 0x493e0
jbe 0x712ff51b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x71319cd0], eax
mov dword [ebp - 0x420], 1
jmp 0x712ff3a9
cmp edi, esi
jl 0x712ff5e0
cmp dword [ebp - 0x430], esi
jne 0x712ff53d
cmp dword [ebp - 0x440], esi
jne 0x712ff53d
mov edi, 0x80005000
jmp 0x712ff5e0
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.adsldpc.dll_BuildADsParentPathFromObjectInfo2
mov edi, eax
cmp edi, esi
jl 0x712ff5e0
cmp dword [ebp - 0x440], esi
lea eax, [ebp - 0x434]
push esi
je 0x712ff596
push dword [ebp - 0x440]
push eax
push 0x712f3e1c
push 1
push dword [ebp - 0x418]
push 0x712f2f90
push dword [ebp - 0x41c]
push dword [ebp - 0x424]
call fcn.71305df6
jmp 0x712ff5c2
push esi
push eax
push 0x712f3e1c
push 1
push dword [ebp - 0x418]
push dword [ebp - 0x430]
push dword [ebp - 0x42c]
push dword [ebp - 0x41c]
push dword [ebp - 0x424]
call fcn.71305c2d
mov edi, eax
cmp edi, esi
jl 0x712ff5e0
push dword [ebp - 0x43c]
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax]
push 0x712f3c1c
push eax
call dword [ecx]
mov edi, eax
mov eax, dword [ebp - 0x434]
cmp eax, esi
je 0x712ff5f0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x42c], esi
je 0x712ff603
push dword [ebp - 0x42c]
call sub.adsldpc.dll_LdapValueFree
cmp dword [ebp - 0x444], esi
je 0x712ff616
push dword [ebp - 0x444]
call sub.ACTIVEDS.dll_FreeADsStr
cmp dword [ebp - 0x428], esi
je 0x712ff629
push dword [ebp - 0x428]
call sub.ACTIVEDS.dll_FreeADsStr
cmp dword [ebp - 0x424], esi
je 0x712ff63c
push dword [ebp - 0x424]
call sub.ACTIVEDS.dll_FreeADsStr
cmp dword [ebp - 0x41c], esi
je 0x712ff64f
push dword [ebp - 0x41c]
call sub.ACTIVEDS.dll_FreeADsStr
cmp dword [ebp - 0x438], esi
je 0x712ff662
push dword [ebp - 0x438]
call sub.adsldpc.dll_LdapCloseObject
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.7131316b
leave
ret 0x10