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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ee84
mov eax, dword fs:[0]
push eax
mov eax, 0x10160
call fcn.00537af0
mov eax, dword [0x5b5be8]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 8]
mov dword [ebp - 0x10160], eax
xor eax, eax
mov dword [ebp - 0x1015c], eax
mov dword [ebp - 0x1013c], eax
mov byte [ebp - 0x1014c], al
lea edi, [eax + 0xb]
mov eax, str.check_list
lea esi, [ebp - 0x1014c]
mov dword [ebp - 0x10168], ebx
mov dword [ebp - 0x10164], ecx
mov dword [ebp - 0x10154], edx
mov dword [ebp - 0x10138], 0xf
call fcn.00409b10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10154]
push eax
push ecx
xor edi, edi
push str._s__d
mov eax, 0x100
lea edx, [ebp - 0x114]
mov dword [ebp - 4], edi
call fcn.00422400
lea eax, [ebp - 0x114]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e392
sub eax, esi
push eax
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x1014c]
call fcn.0040a0b0
push 1
mov eax, 0x58d71c
lea ecx, [ebp - 0x1014c]
call fcn.0040a0b0
cmp dword [ebp - 0x10138], 0x10
mov eax, dword [ebp - 0x1014c]
jae 0x40e3d4
lea eax, [ebp - 0x1014c]
mov ecx, dword [ebp - 0x10160]
mov esi, dword [ebp - 0x1013c]
mov edx, dword [ecx + 0x18]
add ecx, 0x18
push esi
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x1011c], 0xf
mov dword [ebp - 0x10120], edi
mov byte [ebp - 0x10130], 0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10154], eax
or eax, 0xffffffff
test byte [0x5be918], 1
mov dword [ebp - 0x1015c], eax
mov dword [ebp - 0x10150], eax
jne 0x40e43d
or dword [0x5be918], 1
mov dword [0x5be804], 0x592794
push 0x14
call fcn.004310a7
add esp, 4
mov dword [ebp - 0x1016c], eax
mov byte [ebp - 4], 2
cmp eax, edi
je 0x40e468
push 0x2000
mov ecx, 0x5be804
mov edx, eax
call fcn.00427ad0
mov edi, eax
mov esi, dword [ebp - 0x10164]
mov byte [ebp - 4], 1
mov cl, byte [esi + 0xa4]
test cl, cl
jne 0x40e5ba
mov ecx, dword [ebp - 0x10160]
call fcn.00421920
test al, al
je 0x40e58d
mov ecx, dword [ebp - 0x10160]
mov edx, dword [ecx + 0x18]
mov edx, dword [edx + 4]
add ecx, 0x18
push 0xffff
lea eax, [ebp - 0x10114]
push eax
call edx
cmp eax, 1
jl 0x40e635
mov edx, dword [edi]
mov edx, dword [edx + 4]
push eax
lea eax, [ebp - 0x10114]
push eax
mov ecx, edi
call edx
cmp dword [ebp - 0x1015c], 0xffffffff
jne 0x40e50d
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
cmp eax, 4
jb 0x40e504
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 4
lea ecx, [ebp - 0x1015c]
push ecx
mov ecx, edi
call edx
mov ecx, dword [ebp - 0x1015c]
mov eax, dword [ebp + 0x10]
cmp ecx, eax
jne 0x40e6c4
cmp dword [ebp - 0x1015c], 0xffffffff
je 0x40e57f
mov eax, dword [ebp - 0x10150]
cmp eax, 0xffffffff
jne 0x40e55c
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
cmp eax, 4
jb 0x40e556
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 4
lea ecx, [ebp - 0x10150]
push ecx
mov ecx, edi
call edx
mov eax, dword [ebp - 0x10150]
test eax, eax
jg 0x40e55c
push eax
push str.Check_Chunk_Size_failed._ChunkSize:__d
push 3
mov eax, esi
call fcn.00401690
add esp, 0xc
jmp 0x40e5cb
mov eax, dword [ebp - 0x10150]
cmp dword [ebp - 0x1015c], 0xffffffff
je 0x40e57f
cmp eax, 0xffffffff
je 0x40e57f
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
cmp eax, dword [ebp - 0x10150]
jae 0x40e6dc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10154], eax
jmp 0x40e5ac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x10154]
cmp eax, 0xea60
ja 0x40e823
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [esi + 0xa4]
test al, al
je 0x40e480
push str._tUser_Cancel.
push 2
mov eax, esi
call fcn.00401690
add esp, 8
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
xor edi, edi
mov eax, 0x58bd25
mov esi, ebx
mov byte [ebx], 0
call fcn.00409b10
mov esi, 0x10
cmp dword [ebp - 0x1011c], esi
jb 0x40e606
mov ecx, dword [ebp - 0x10130]
push ecx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x1011c], 0xf
mov dword [ebp - 0x10120], edi
mov byte [ebp - 0x10130], 0
cmp dword [ebp - 0x10138], esi
jb 0x40e8b1
mov edx, dword [ebp - 0x1014c]
push edx
jmp 0x40e8a9
push str.Disconnect_Server.
push 3
mov eax, esi
call fcn.00401690
mov dword [esi + 0xa8], 3
mov dword [esi + 0xa0], 0xb
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
add esp, 8
xor edi, edi
mov eax, 0x58bd25
mov esi, ebx
mov byte [ebx], 0
call fcn.00409b10
mov esi, 0x10
cmp dword [ebp - 0x1011c], esi
jb 0x40e695
mov eax, dword [ebp - 0x10130]
push eax
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x10120], edi
mov dword [ebp - 0x1011c], 0xf
mov byte [ebp - 0x10130], 0
cmp dword [ebp - 0x10138], esi
jb 0x40e8b1
mov ecx, dword [ebp - 0x1014c]
push ecx
jmp 0x40e8a9
push ecx
push eax
push str.Check_AppVersion_failed._Request:__d__Receive:__d
push 3
mov eax, esi
call fcn.00401690
add esp, 0x10
jmp 0x40e848
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x40e799
cmp dword [ebp - 0x10150], 0xd
jb 0x40e799
mov eax, dword [esi]
cmp eax, dword [0x591d08]
jne 0x40e799
mov al, 0x1a
cmp byte [esi + 4], al
jne 0x40e799
mov ebx, dword [esi + 5]
lea ecx, [ebx + 1]
push ecx
call fcn.004310d6
mov edi, dword [ebp - 0x10150]
mov dword [ebp - 0x10154], eax
mov edx, eax
add esp, 4
mov eax, esi
call fcn.00418d70
cmp al, 1
jne 0x40e766
mov esi, dword [ebp - 0x10154]
lea edx, [ebp - 0x10130]
push edx
mov eax, esi
mov byte [esi + ebx], 0
call fcn.004097d0
push esi
call fcn.004310e1
mov ebx, dword [ebp - 0x10168]
add esp, 4
jmp 0x40e7da
mov eax, dword [ebp - 0x10150]
push eax
mov eax, dword [ebp - 0x10164]
push str.Check_Chunk_uncompress_failed._ChunkSize:__d
push 3
call fcn.00401690
mov esi, dword [ebp - 0x10154]
add esp, 0xc
push esi
call fcn.004310e1
mov ebx, dword [ebp - 0x10168]
add esp, 4
jmp 0x40e7da
mov edx, dword [edi]
mov edx, dword [edx + 4]
push 1
lea eax, [ebp - 0x10155]
push eax
mov ecx, edi
mov byte [ebp - 0x10155], 0
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov ecx, edi
call edx
mov esi, eax
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e7c2
sub ecx, edx
mov eax, esi
mov edi, ecx
lea esi, [ebp - 0x10130]
call fcn.00409b10
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
lea edi, [ebp - 0x10130]
mov esi, ebx
mov byte [ebx], 0
call fcn.00409930
mov esi, 0x10
cmp dword [ebp - 0x1011c], esi
jb 0x40e814
mov eax, dword [ebp - 0x10130]
push eax
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x10120], 0
jmp 0x40e69b
push str.Connection_Timeout.
push 3
mov eax, esi
call fcn.00401690
mov dword [esi + 0xa8], 2
add esp, 8
mov dword [esi + 0xa0], 0xb
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
xor edi, edi
mov eax, 0x58bd25
mov esi, ebx
mov byte [ebx], 0
call fcn.00409b10
mov esi, 0x10
cmp dword [ebp - 0x1011c], esi
jb 0x40e883
mov edx, dword [ebp - 0x10130]
push edx
call fcn.004310e1
add esp, 4
mov byte [ebp - 0x10130], 0
mov dword [ebp - 0x10120], edi
mov dword [ebp - 0x1011c], 0xf
cmp dword [ebp - 0x10138], esi
jb 0x40e8b1
mov eax, dword [ebp - 0x1014c]
push eax
call fcn.004310e1
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005320a3
mov esp, ebp
pop ebp
ret