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

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor ebx, ebx
xor ecx, ecx
mov edi, edx
neg edi
mov esi, eax
mov eax, dword [esi + 0x19c]
sbb edi, edi
and edi, 0x493e0
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jle 0x4656d2
lea ecx, [ebx + 1]
cmp edx, ebx
je 0x4656e1
cmp dword [esi + 0x1a0], ebx
jle 0x4656e1
or ecx, 2
sub ecx, 1
je 0x4657f4
sub ecx, 1
je 0x465846
sub ecx, 1
je 0x4657ea
cmp edx, ebx
jne 0x4657f6
mov eax, dword [esi + 0x498]
mov ecx, dword [esi + 0x49c]
mov edx, eax
add edx, 1
mov edi, ecx
adc edi, ebx
cmp ecx, ebx
mov dword [esi + 0x498], edx
mov dword [esi + 0x49c], edi
jl 0x465785
jg 0x465730
cmp eax, 0x1e
jbe 0x465785
call fcn.0047bf80
mov ecx, dword [esi + 0x488]
add ecx, dword [esi + 0x480]
mov edi, dword [esi + 0x48c]
mov ebp, dword [esi + 0x490]
adc edi, dword [esi + 0x484]
cmp ebp, ecx
jne 0x465761
mov ebp, dword [esi + 0x494]
cmp ebp, edi
je 0x46579d
mov dword [esi + 0x490], ecx
mov dword [esi + 0x494], edi
mov dword [esi + 0x518], eax
mov dword [esi + 0x51c], edx
mov dword [esi + 0x498], ebx
mov dword [esi + 0x49c], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x465793
mov dword [eax], 0x16
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [esi + 0x51c]
push ecx
mov ecx, dword [esi + 0x518]
push ecx
push edx
push eax
call fcn.0047bfb0
mov edi, eax
add esp, 0x10
cmp edi, 0x2bf20
jle 0x465785
push edi
push str.timeoutNodata0:_d_n
call fcn.00475a40
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, ebx
je 0x4657db
mov dword [eax], 0x14
mov eax, 0x2bf20
sub eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edi, dword [esi + 0x1a0]
cmp eax, edi
jge 0x4657f6
mov edi, eax
cmp ebp, ebx
jne 0x46580b
call fcn.0047bf80
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
lea ebp, [esp + 0x10]
mov edx, dword [esi + 0x50c]
mov eax, dword [esi + 0x508]
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp]
push eax
push ecx
push edx
call fcn.0047bfb0
add esp, 0x10
sub edi, eax
jne 0x46584e
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x46583b
mov dword [eax], 0x17
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edi, dword [esi + 0x1a0]
jmp 0x4657f6
mov eax, dword [esi + 0x498]
mov ecx, dword [esi + 0x49c]
mov edx, eax
add edx, 1
mov ebp, ecx
adc ebp, ebx
cmp ecx, ebx
mov dword [esi + 0x498], edx
mov dword [esi + 0x49c], ebp
jl 0x46592a
jg 0x465882
cmp eax, 0x1e
jbe 0x46592a
call fcn.0047bf80
mov ecx, dword [esi + 0x488]
add ecx, dword [esi + 0x480]
mov ebx, dword [esi + 0x48c]
mov ebp, dword [esi + 0x490]
adc ebx, dword [esi + 0x484]
cmp ebp, ecx
jne 0x4658b3
mov ebp, dword [esi + 0x494]
cmp ebp, ebx
je 0x4658db
mov dword [esi + 0x494], ebx
xor ebx, ebx
mov dword [esi + 0x490], ecx
mov dword [esi + 0x518], eax
mov dword [esi + 0x51c], edx
mov dword [esi + 0x498], ebx
mov dword [esi + 0x49c], ebx
jmp 0x46592a
mov ecx, dword [esi + 0x51c]
push ecx
mov ecx, dword [esi + 0x518]
push ecx
push edx
push eax
call fcn.0047bfb0
mov ebx, eax
add esp, 0x10
cmp ebx, 0x2bf20
jle 0x465928
push ebx
push str.timeoutNodata1:_d_n
call fcn.00475a40
mov eax, dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x465919
mov dword [eax], 0x15
mov eax, 0x2bf20
sub eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ebx, ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x465938
mov dword [eax], 0x18
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret