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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d6e6
mov eax, dword fs:[0]
push eax
mov eax, 0x10150
call fcn.00537af0
mov eax, dword [0x5b5be8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10154], ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x10150], eax
xor eax, eax
mov dword [ebp - 0x1014c], esi
mov dword [ebp - 0x10158], edx
mov dword [ebp - 0x1015c], eax
cmp ecx, dword [ebx + 4]
jne 0x40df2f
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
xor edi, edi
mov eax, 0x58bd25
call fcn.00409b10
jmp 0x40e2c1
mov dword [ebp - 0x10138], eax
mov byte [ebp - 0x10148], al
mov edi, 0xa
mov eax, str.file_info
lea esi, [ebp - 0x10148]
mov dword [ebp - 0x10134], 0xf
call fcn.00409b10
mov edx, dword [ebp - 0x10158]
push edx
push 0x58d804
mov eax, 0x100
lea edx, [ebp - 0x110]
mov dword [ebp - 4], 0
call fcn.00422400
lea eax, [ebp - 0x110]
add esp, 8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40df90
sub eax, edx
push eax
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0x10148]
call fcn.0040a0b0
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
cmp edi, ebx
je 0x40dfda
push 0
push edi
or eax, 0xffffffff
lea esi, [ebp - 0x10148]
call fcn.00409fc0
push 1
mov eax, 0x58d1bc
mov ecx, esi
call fcn.0040a0b0
add edi, 0x1c
cmp edi, ebx
jne 0x40dfb4
push 1
mov eax, 0x58d71c
lea ecx, [ebp - 0x10148]
call fcn.0040a0b0
cmp dword [ebp - 0x10134], 0x10
mov eax, dword [ebp - 0x10148]
jae 0x40e001
lea eax, [ebp - 0x10148]
mov ecx, dword [ebp - 0x10138]
mov ebx, dword [ebp - 0x10150]
mov edx, dword [ebx + 0x18]
mov edx, dword [edx + 8]
push ecx
push eax
lea ecx, [ebx + 0x18]
call edx
mov dword [ebp - 0x10118], 0xf
mov dword [ebp - 0x1011c], 0
mov byte [ebp - 0x1012c], 0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 0x10154]
mov esi, eax
mov al, byte [edi + 0xa4]
test al, al
jne 0x40e119
mov ecx, dword [ebp - 0x10150]
call fcn.00421920
test al, al
je 0x40e0f0
mov edx, dword [ebx + 0x18]
mov edx, dword [edx + 4]
push 0xffff
lea eax, [ebp - 0x10110]
push eax
lea ecx, [ebx + 0x18]
call edx
cmp eax, 1
jl 0x40e19a
cmp eax, 0xffff
ja 0x40e19a
mov byte [ebp + eax - 0x10110], 0
lea eax, [ebp - 0x10110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e0a4
sub eax, edx
push eax
lea eax, [ebp - 0x10110]
lea ecx, [ebp - 0x1012c]
call fcn.0040a0b0
cmp dword [ebp - 0x10118], 0x10
mov eax, dword [ebp - 0x1012c]
jae 0x40e0d4
lea eax, [ebp - 0x1012c]
push 0x58d7f4
push eax
call fcn.00532ce0
add esp, 8
test eax, eax
jne 0x40e12c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
jmp 0x40e10b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0xea60
ja 0x40e22e
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [edi + 0xa4]
test al, al
je 0x40e055
push str._tUser_Cancel.
push 2
mov eax, edi
call fcn.00401690
jmp 0x40e250
mov esi, dword [ebp - 0x1014c]
mov ebx, 0xf
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
lea edi, [ebp - 0x1012c]
mov byte [esi], 0
call fcn.00409930
mov edi, 0x10
cmp dword [ebp - 0x10118], edi
jb 0x40e16b
mov eax, dword [ebp - 0x1012c]
push eax
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x10118], ebx
mov dword [ebp - 0x1011c], 0
mov byte [ebp - 0x1012c], 0
cmp dword [ebp - 0x10134], edi
jb 0x40e2c1
mov ecx, dword [ebp - 0x10148]
push ecx
jmp 0x40e2b9
push str.Disconnect_Server.
push 3
mov eax, edi
call fcn.00401690
mov esi, dword [ebp - 0x1014c]
mov dword [edi + 0xa8], 3
mov dword [edi + 0xa0], 0xb
mov ebx, 0xf
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
add esp, 8
xor edi, edi
mov eax, 0x58bd25
mov byte [esi], 0
call fcn.00409b10
mov edi, 0x10
cmp dword [ebp - 0x10118], edi
jb 0x40e1ff
mov edx, dword [ebp - 0x1012c]
push edx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x10118], ebx
mov dword [ebp - 0x1011c], 0
mov byte [ebp - 0x1012c], 0
cmp dword [ebp - 0x10134], edi
jb 0x40e2c1
mov eax, dword [ebp - 0x10148]
push eax
jmp 0x40e2b9
push str.Connection_Timeout.
push 3
mov eax, edi
call fcn.00401690
mov dword [edi + 0xa8], 2
mov dword [edi + 0xa0], 0xb
mov esi, dword [ebp - 0x1014c]
mov ebx, 0xf
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
add esp, 8
xor edi, edi
mov eax, 0x58bd25
mov byte [esi], 0
call fcn.00409b10
mov edi, 0x10
cmp dword [ebp - 0x10118], edi
jb 0x40e293
mov ecx, dword [ebp - 0x1012c]
push ecx
call fcn.004310e1
add esp, 4
mov byte [ebp - 0x1012c], 0
mov dword [ebp - 0x1011c], 0
mov dword [ebp - 0x10118], ebx
cmp dword [ebp - 0x10134], edi
jb 0x40e2c1
mov edx, dword [ebp - 0x10148]
push edx
call fcn.004310e1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005320a3
mov esp, ebp
pop ebp
ret