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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x5a3a04
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a3d47
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
call fcn.00404460
xor eax, eax
push ebp
push 0x5a3a4b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0059ff8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a3a55
cmp dword [ebp - 0x18], 0
jne 0x5a3a88
xor eax, eax
push ebp
push 0x5a3a7e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0059ff8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a3a88
cmp dword [ebp - 0x18], 0
jne 0x5a3abb
xor eax, eax
push ebp
push 0x5a3ab1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0059ff8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a3abb
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x20
mov edx, 0x21
mov eax, dword [0x5b45b8]
call fcn.00404990
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x5a3d60
call fcn.0040477c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0059b738
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x4183c8]
call fcn.0041d6e8
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4183c8]
call fcn.0041d6e8
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x5a3d1d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x14], eax
call sub.kernel32.dll_GetTickCount_1
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041d018
jmp 0x5a3b50
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403020
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0xc
mov edx, 1
mov eax, dword [0x5b4588]
call fcn.00404990
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00408c7c
lea eax, [ebp - 0x38]
mov edx, 0x5a3d74
call fcn.00404738
mov eax, dword [ebp - 0x38]
call fcn.00404730
mov edx, eax
mov eax, 0x10
call fcn.0042c36c
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, 0xc
mov edx, 1
mov eax, dword [0x5b4588]
call fcn.00404990
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00408c7c
lea eax, [ebp - 0x40]
mov edx, 0x5a3d74
call fcn.00404738
mov eax, dword [ebp - 0x40]
call fcn.00404930
lea edx, [ebp - 0x28]
pop ecx
call fcn.00402988
jmp 0x5a3bf7
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0041cdec
pop edx
sub edx, eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00593134
call sub.kernel32.dll_GetTickCount_1
mov eax, dword [ebp - 4]
call fcn.0044a690
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x5a3cbe
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 4]
mov eax, 0x5a3d84
call fcn.00404a74
test eax, eax
jle 0x5a3cbe
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.00408c7c
mov eax, dword [ebp - 0x48]
call fcn.00404730
cmp eax, 8
jne 0x5a3cbe
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.00408c7c
mov eax, dword [ebp - 0x4c]
mov edx, 0x5b4510
call fcn.00409330
test al, al
je 0x5a3cbe
xor eax, eax
push ebp
push 0x5a3cb4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.00408c7c
mov eax, dword [ebp - 0x50]
call fcn.004092dc
mov dword [0x5b4510], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a3cbe
cmp dword [ebp - 0x18], 0
jne 0x5a3cd1
lea eax, [ebp - 0x18]
mov edx, 0x5a3d90
call fcn.004044f8
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x18]
call fcn.00408c7c
mov eax, dword [ebp - 0x54]
call fcn.004092dc
cmp eax, dword [0x5b4510]
jg 0x5a3cf8
mov dword [0x5b4508], 1
jmp 0x5a3cff
xor eax, eax
mov dword [0x5b4508], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a3d24
mov eax, dword [ebp - 0xc]
call fcn.0040366c
mov eax, dword [ebp - 0x10]
call fcn.0040366c
ret