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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x638c8c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
call fcn.00405814
xor eax, eax
push ebp
push 0x6395fd
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x639540
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 4], 0
jne 0x638cd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x63959e
mov eax, dword [ebp - 4]
test eax, eax
je 0x638ce0
sub eax, 4
mov eax, dword [eax]
mov ebx, dword [select]
mov ebx, dword [ebx + 0x1a4c]
cmp eax, ebx
jle 0x638d1e
lea eax, [ebp - 0x20]
push eax
mov eax, dword [select]
mov ecx, ebx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040588c
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0040a354
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.0040542c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x14]
sub eax, dword [edx + 0xc08]
mov edx, dword [select]
cmp eax, dword [edx + 0x1a50]
jae 0x638dc3
mov eax, dword [ebp - 0x14]
inc dword [eax + 0xc04]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc04]
mov edx, dword [select]
cmp eax, dword [edx + 0x1a54]
jl 0x638ddc
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xc0c], 1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [select]
add eax, dword [edx + 0x1a58]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xc10], eax
push 1
lea eax, [ebp - 0x24]
push eax
mov eax, dword [select]
mov eax, dword [eax + 0x1a58]
mov ecx, 0xea60
xor edx, edx
div ecx
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x2c]
mov eax, dword [0x6c11b8]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0040bb18
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
call fcn.006658ec
jmp 0x638ddc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xc08], eax
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax + 0xc04], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx + 0xc10]
jb 0x638df6
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xc0c], 0
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0xc0c]
mov byte [ebp - 0x15], al
mov eax, dword [0x6c0c04]
mov eax, dword [eax]
call fcn.00499450
xor eax, eax
push ebp
push 0x638e5c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x14]
add edx, 0x15
call fcn.004055f8
mov edx, dword [ebp - 0x30]
mov eax, dword [0x6c0c04]
mov eax, dword [eax]
call fcn.00498d58
test eax, eax
jl 0x638e42
mov byte [ebp - 0x15], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x638e63
mov eax, dword [0x6c0c04]
mov eax, dword [eax]
call fcn.0049945c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x639604
lea eax, [ebp - 0xbc]
mov edx, 0xd
call fcn.004053b8
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.004053b8
lea eax, [ebp - 0x6c]
mov edx, 5
call fcn.004053b8
lea eax, [ebp - 0x40]
mov edx, 5
call fcn.004053b8
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004053b8
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004053b8
ret