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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5d23ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 0x1d], 0
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x14], eax
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jbe 0x5d2165
mov eax, dword [0x6c0f20]
mov eax, dword [eax]
mov edx, dword [0x6c1060]
mov dword [edx], eax
jmp 0x5d2326
mov eax, dword [0x6c1174]
push eax
call sub.kernel32.dll_EnterCriticalSection
xor eax, eax
push ebp
push 0x5d2313
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [select]
mov edi, dword [edi + 0x68dc]
mov esi, dword [select]
mov esi, dword [esi + 0x68e0]
cmp esi, 0x18
jl 0x5d22b5
mov ebx, edi
cmp dword [ebx], 0xaa55aa55
jne 0x5d2220
movzx eax, word [ebx + 4]
cmp ax, word [ebx + 0x12]
jne 0x5d2220
mov eax, dword [ebx + 0x14]
add eax, 0x18
cmp esi, eax
jl 0x5d222b
mov eax, edi
add eax, 0x18
mov dword [ebp - 0x1c], eax
movzx eax, word [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x5d2205
movzx eax, word [ebx + 0xa]
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, dword [ebx + 6]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
dec eax
jne 0x5d21f5
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
mov ecx, 0xac95
call fcn.004031fc
mov byte [ebp - 0xe], 1
mov byte [ebp - 0xd], 1
xor esi, esi
mov byte [ebp - 0x1d], 1
jmp 0x5d222b
add edi, 0x18
add edi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x14]
add eax, 0x18
sub esi, eax
mov eax, dword [select]
inc dword [eax + 0x68c0]
jmp 0x5d2222
inc edi
dec esi
cmp esi, 0x14
jge 0x5d219f
test esi, esi
jle 0x5d227d
mov eax, dword [select]
cmp esi, dword [eax + 0x68e0]
je 0x5d22b5
mov eax, esi
call fcn.00402f94
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov eax, edi
mov ecx, esi
call fcn.004031fc
mov eax, dword [select]
mov eax, dword [eax + 0x68dc]
call fcn.00402fb0
mov eax, dword [select]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x68dc], edx
mov eax, dword [select]
mov dword [eax + 0x68e0], esi
jmp 0x5d22b5
mov eax, dword [select]
cmp dword [eax + 0x68dc], 0
je 0x5d229b
mov eax, dword [select]
mov eax, dword [eax + 0x68dc]
call fcn.00402fb0
mov eax, dword [select]
xor edx, edx
mov dword [eax + 0x68dc], edx
mov eax, dword [select]
xor edx, edx
mov dword [eax + 0x68e0], edx
cmp byte [ebp - 0x1d], 0
je 0x5d22fa
mov eax, dword [select]
cmp dword [eax + 0x68dc], 0
je 0x5d22d9
mov eax, dword [select]
mov eax, dword [eax + 0x68dc]
call fcn.00402fb0
mov eax, dword [select]
xor edx, edx
mov dword [eax + 0x68dc], edx
mov eax, dword [select]
xor edx, edx
mov dword [eax + 0x68e0], edx
call fcn.00404d90
jmp 0x5d2326
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d231a
mov eax, dword [0x6c1174]
push eax
call sub.kernel32.dll_LeaveCriticalSection
ret
cmp byte [ebp - 0xe], 0
jne 0x5d23a4
cmp byte [ebp + 8], 0
je 0x5d236c
lea edx, [ebp - 0x28]
mov eax, 0x5d20ec
call fcn.004078c4
push dword [ebp - 0x28]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.0040a784
push dword [ebp - 0x2c]
push 0x5d240c
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00405728
mov eax, dword [ebp - 0x24]
call fcn.0049fdd4
jmp 0x5d23a4
lea edx, [ebp - 0x34]
mov eax, 0x5d20f4
call fcn.004078c4
push dword [ebp - 0x34]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 8]
call fcn.0040a784
push dword [ebp - 0x38]
push 0x5d240c
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00405728
mov eax, dword [ebp - 0x30]
call fcn.0049fdd4
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x14]
mov edx, dword [0x6c05ac]
cmp eax, dword [edx]
jbe 0x5d23c6
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x14]
mov edx, dword [0x6c05ac]
mov dword [edx], eax
mov eax, dword [select]
mov byte [eax + 0x68e8], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d23f4
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.004053b8
ret