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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x579630
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5d3da4]
cmp byte [eax], 0
jne 0x579436
mov bl, 1
jmp 0x579615
xor eax, eax
mov dword [ebp - 8], eax
mov byte [ebp - 0xa], 0
mov eax, dword [0x5d338c]
mov eax, dword [eax]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x5795b5
inc esi
xor edi, edi
mov eax, dword [0x5d338c]
mov eax, dword [eax]
mov edx, edi
call fcn.00419afc
mov ebx, eax
cmp dword [ebx], 0
je 0x5795ad
cmp byte [ebx + 0x38], 0
je 0x5795ad
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
mov edx, dword [ebx + 4]
call fcn.005b4df8
mov dword [ebp - 0x10], eax
mov byte [ebp - 9], 1
cmp dword [ebp - 0x10], 0
je 0x5794dd
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x2c], eax
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx eax, word [eax + 0x122]
push eax
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx ecx, word [eax + 0x120]
mov eax, dword [ebp - 0x10]
movzx edx, word [eax + 0x122]
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0x120]
call fcn.005c40cc
cmp eax, 4
jle 0x5794f0
mov byte [ebp - 9], 0
jmp 0x5794f0
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x2c]
cmp eax, 0xbb8
jbe 0x5794f0
mov byte [ebp - 9], 0
cmp byte [ebp - 9], 0
jne 0x5795ad
push 0x579648
mov eax, dword [0x5d3eb8]
mov eax, dword [eax]
push dword [eax + 0x7c]
push 0x57965c
lea edx, [ebp - 0x18]
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx eax, word [eax + 0x120]
call fcn.00408cf0
push dword [ebp - 0x18]
push 0x57965c
lea edx, [ebp - 0x1c]
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx eax, word [eax + 0x122]
call fcn.00408cf0
push dword [ebp - 0x1c]
push 0x579668
lea eax, [ebp - 0x14]
mov edx, 7
call fcn.00404794
inc dword [ebp - 8]
mov byte [ebp - 0xa], 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebx + 0x20]
call fcn.00404820
jne 0x57957d
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebx + 0x24]
add edx, 0x2710
cmp eax, edx
jbe 0x57958e
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov ecx, ebx
mov edx, dword [ebp - 0x14]
call fcn.0055a38c
mov eax, dword [0x5d3e6c]
cmp byte [eax], 0
jne 0x5795ad
mov eax, dword [0x5d3e6c]
mov byte [eax], 1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d37b8]
mov dword [edx], eax
inc edi
dec esi
jne 0x579455
cmp dword [ebp - 8], 0
jne 0x5795c3
mov eax, dword [0x5d3e6c]
mov byte [eax], 0
mov eax, dword [0x5d3e6c]
cmp byte [eax], 0
je 0x57960f
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d37b8]
sub eax, dword [edx]
cmp eax, 0x249f0
jbe 0x57960f
mov eax, dword [0x5d3e6c]
mov byte [eax], 0
mov eax, dword [0x5d3cac]
mov edx, 0x579674
call fcn.00404468
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.00557694
mov eax, dword [0x5d3cc0]
mov byte [eax], 0
mov bl, byte [ebp - 0xa]
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x579637
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404438
ret