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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
call fcn.0108e625
mov ebx, eax
cmp ebx, edi
je 0x1050f82
push ebx
push 0x10b70136
jmp 0x1051022
mov eax, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp + 8], esi
cmp dword [eax], edi
je 0x1050f97
inc esi
cmp dword [eax + esi*4], edi
jne 0x1050f8e
mov dword [ebp + 8], esi
lea eax, [ebp - 0x18]
push eax
call fcn.010a8de7
mov ebx, eax
cmp ebx, edi
je 0x1050fae
push ebx
push 0x10bd0136
jmp 0x1051022
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.NETAPI32.dll_DsGetSiteNameW]
mov ebx, eax
cmp ebx, edi
je 0x1050fd4
push ebx
push 0x10c00136
push dword [ebp - 0x18]
call fcn.01089421
jmp 0x1051221
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0x100d104
call fcn.01099014
mov ebx, esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add esp, 0xc
shl ebx, 2
push ebx
push edi
call esi
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x105100a
mov eax, 0x8007000e
push eax
push 0x10cd0136
jmp 0x1051020
push ebx
push edi
call esi
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x105102c
mov eax, 0x8007000e
push eax
push 0x10d50136
mov ebx, eax
call fcn.010893e6
jmp 0x1051221
xor ebx, ebx
cmp dword [ebp + 8], edi
jbe 0x105118e
mov eax, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + ebx*4]
push edi
push dword [ebp - 4]
push ebx
push 0x100d0c8
call fcn.01099014
add esp, 0x10
call esi
push dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
push edi
call dword [sym.imp.NETAPI32.dll_DsGetSiteNameW]
mov dword [ebp - 0x28], eax
call esi
sub eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], 0
push eax
je 0x10510a3
push dword [ebp - 0x28]
push 0x100d0ac
call fcn.01099014
add esp, 0xc
push dword [ebp - 0x28]
push 0x10e80136
push edi
call fcn.01089421
mov eax, dword [ebp - 0x1c]
mov dword [eax + ebx*4], 0x7fffffff
jmp 0x10510c5
mov eax, dword [ebp - 0x20]
push dword [eax]
push 0x100d094
call fcn.01099014
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
add esp, 0xc
inc dword [ebp - 4]
add dword [ebp - 0x20], 4
mov dword [eax + ebx*4], ecx
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x1051043
cmp dword [ebp - 4], 0
je 0x105118c
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
call fcn.01050e59
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x10510f5
push ebx
push 0x10f60136
jmp 0x1051129
push dword [ebp - 0xc]
push 0x100d060
call fcn.01099014
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x24]
call fcn.01050eab
mov ebx, eax
cmp ebx, esi
je 0x1051135
push ebx
mov dword [ebp - 0x10], esi
push 0x11030136
call fcn.010893e6
xor edi, edi
jmp 0x1051221
cmp dword [ebp - 4], esi
jbe 0x105118c
mov eax, dword [ebp - 0x10]
cmp dword [eax + esi*8], 0
je 0x1051167
push esi
push 0x110d0136
push dword [ebp - 0xc]
call fcn.01089421
mov eax, dword [ebp - 0x10]
push dword [eax + esi*8]
mov eax, dword [ebp - 8]
push 0x11110136
push dword [eax + esi*4]
call fcn.01089421
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*8]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp - 8]
push dword [eax + esi*4]
push esi
push 0x100cff8
call fcn.01099014
add esp, 0x14
inc esi
cmp esi, dword [ebp - 4]
jb 0x105113a
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], edi
jbe 0x105121f
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + ebx*4]
cmp eax, 0x7fffffff
je 0x10511fd
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx + eax*8]
mov edx, dword [ecx]
cmp edx, edi
je 0x10511c5
mov ecx, dword [ebp - 8]
push edx
push 0x11220136
push dword [ecx + eax*4]
call fcn.01089421
jmp 0x10511fd
mov esi, dword [ecx + 4]
mov ecx, dword [ebp - 8]
push esi
push dword [ecx + eax*4]
mov ecx, dword [ebp - 0x14]
push dword [ecx + ebx*4]
push eax
push ebx
push 0x100cfa0
call fcn.01099014
add esp, 0x18
cmp esi, edi
jl 0x10511f0
cmp esi, 0x7ffffffd
jle 0x10511f5
mov esi, 0x7ffffffd
cmp esi, 0x7ffffffe
jne 0x1051215
mov eax, dword [ebp - 0x14]
push 0x7ffffffe
push dword [eax + ebx*4]
push 0x100cf60
call fcn.01099014
add esp, 0xc
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x1051199
xor ebx, ebx
push dword [ebp - 0x14]
call fcn.0108e5e8
cmp dword [ebp - 0x18], edi
je 0x1051237
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], edi
je 0x1051244
push dword [ebp - 0xc]
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 8], edi
je 0x105126f
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x1051266
mov eax, dword [ebp - 8]
mov eax, dword [eax + esi*4]
cmp eax, edi
je 0x1051260
push eax
call sub.NETAPI32.dll_NetApiBufferFree
inc esi
cmp esi, dword [ebp - 4]
jb 0x1051250
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x1c], edi
je 0x105127d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x10], edi
je 0x105128a
push dword [ebp - 0x10]
call fcn.01050f09
cmp dword [ebp - 0x24], edi
je 0x1051299
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.NTDSAPI.dll_DsUnBindW]
push ebx
call fcn.0108ed8e
pop edi
pop esi
pop ebx
leave
ret 4