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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
xor eax, eax
push ebp
push 0x57a29f
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, 8
je 0x579e61
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp - 8]
call fcn.005b6b24
jmp 0x579ea7
test bl, 4
je 0x579e80
mov eax, dword [ebp - 0xc]
push eax
push 1
push 0
push 0
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp - 8]
call fcn.005b6e88
jmp 0x579ea7
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov si, 0xfffa
call fcn.00404524
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp - 8]
call fcn.0047d590
test bl, 2
je 0x57a212
cmp dword [ebp + 8], 0
je 0x57a212
movzx ebx, byte [edi + 0x77]
test bl, bl
jne 0x579f8c
cmp word [edi + 0x1d], 0xa
jbe 0x579f8c
movzx ebx, byte [edi + 0x1d]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x68ff60]
sub eax, dword [edx]
mov ecx, 0x64
xor edx, edx
div ecx
mov ecx, 0x14
xor edx, edx
div ecx
mov eax, edx
movzx edx, word [edi + 0x1d]
sub edx, 0xb
add edx, edx
add edx, edx
lea edx, [edx + edx*4]
add edx, eax
mov eax, dword [0x68fcf8]
mov eax, dword [eax]
call fcn.00484504
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x579f8c
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], 0x15
jne 0x579f58
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov si, 0xfffa
call fcn.00404524
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
sub ecx, 0x16
mov eax, dword [ebp + 8]
mov edx, dword [eax]
sub edx, 0x16
mov eax, dword [ebp - 8]
call fcn.0047d590
jmp 0x579f8c
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov si, 0xfffa
call fcn.00404524
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 1
push 0x7c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
sub ecx, 0x16
mov eax, dword [ebp + 8]
mov edx, dword [eax]
sub edx, 0x16
mov eax, dword [ebp - 8]
call fcn.0047e364
test bl, bl
jne 0x579f9f
movzx eax, word [edi + 0x1d]
dec eax
sub ax, 9
jae 0x579f9f
movzx ebx, byte [edi + 0x1d]
mov eax, ebx
dec eax
sub al, 9
jae 0x57a16c
mov eax, ebx
dec eax
sub al, 4
jae 0x57a0c0
dec bl
je 0x579fca
dec bl
je 0x579ff2
dec bl
je 0x57a01a
dec bl
je 0x57a042
jmp 0x57a062
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x68ff60]
sub eax, dword [edx]
mov ecx, 0x96
xor edx, edx
div ecx
mov ecx, 6
xor edx, edx
div ecx
mov eax, edx
add eax, 0x104
jmp 0x57a064
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x68ff60]
sub eax, dword [edx]
mov ecx, 0x96
xor edx, edx
div ecx
mov ecx, 0xa
xor edx, edx
div ecx
mov eax, edx
add eax, 0xe6
jmp 0x57a064
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x68ff60]
sub eax, dword [edx]
mov ecx, 0x96
xor edx, edx
div ecx
mov ecx, 0xa
xor edx, edx
div ecx
mov eax, edx
add eax, 0xf0
jmp 0x57a064
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x68ff60]
sub eax, dword [edx]
mov ecx, 0x96
xor edx, edx
div ecx
and eax, 7
add eax, 0xfa
jmp 0x57a064
xor eax, eax
test eax, eax
jle 0x57a212
mov edx, dword [0x68fe0c]
mov edx, dword [edx]
xchg edx, eax
call fcn.00484504
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x57a212
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov si, 0xfffa
call fcn.00404524
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 1
push 0x7c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
sub ecx, 0x16
mov eax, dword [ebp + 8]
mov edx, dword [eax]
sub edx, 0x16
mov eax, dword [ebp - 8]
call fcn.0047e364
jmp 0x57a212
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x68ff60]
sub eax, dword [edx]
mov ecx, 0x96
xor edx, edx
div ecx
mov ecx, 0xa
xor edx, edx
div ecx
mov eax, edx
cmp bl, 9
jne 0x57a0ed
add eax, 0x3ca
jmp 0x57a11f
cmp bl, 8
jne 0x57a0f9
add eax, 0x3c0
jmp 0x57a11f
cmp bl, 7
jne 0x57a105
add eax, 0x3d4
jmp 0x57a11f
cmp bl, 6
jne 0x57a111
add eax, 0x3e8
jmp 0x57a11f
cmp bl, 5
jne 0x57a11d
add eax, 0x3de
jmp 0x57a11f
xor eax, eax
test eax, eax
jle 0x57a212
mov edx, dword [0x69034c]
mov edx, dword [edx]
xchg edx, eax
call fcn.00484504
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x57a212
mov eax, dword [ebp - 0x10]
push eax
push 1
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov si, 0xfffa
call fcn.00404524
lea ecx, [ebp - 0x20]
mov eax, dword [ebp + 8]
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0047e27c
jmp 0x57a212
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x68ff60]
sub eax, dword [edx]
mov ecx, 0x96
xor edx, edx
div ecx
mov ecx, 0xa
xor edx, edx
div ecx
mov eax, edx
movzx edx, byte [edi + 0x9f]
cmp dl, 0xf
jb 0x57a1a0
add eax, 0x3ca
jmp 0x57a1d2
cmp dl, 0xc
jb 0x57a1ac
add eax, 0x3c0
jmp 0x57a1d2
cmp dl, 9
jb 0x57a1b8
add eax, 0x3d4
jmp 0x57a1d2
cmp dl, 6
jb 0x57a1c4
add eax, 0x3e8
jmp 0x57a1d2
cmp dl, 3
jb 0x57a1d0
add eax, 0x3de
jmp 0x57a1d2
xor eax, eax
test eax, eax
jle 0x57a212
mov edx, dword [0x69034c]
mov edx, dword [edx]
xchg edx, eax
call fcn.00484504
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x57a212
mov eax, dword [ebp - 0x10]
push eax
push 1
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov si, 0xfffa
call fcn.00404524
lea ecx, [ebp - 0x20]
mov eax, dword [ebp + 8]
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0047e27c
cmp byte [ebp + 0x10], 0
je 0x57a27c
test byte [edi + 0x13], 4
je 0x57a27c
cmp word [edi + 0x1f], 1
jbe 0x57a27c
movzx ebx, word [edi + 0x72]
cmp bx, 1
jbe 0x57a27c
lea edx, [ebp - 4]
movzx eax, bx
call fcn.0040a1ec
push 0xffffff
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 4]
call fcn.00405bc0
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 4]
call fcn.00405bc0
mov edx, dword [ebp - 0x28]
mov eax, dword [0x68f780]
mov eax, dword [eax]
call fcn.0047ccf8
mov edx, dword [ebp + 0x1c]
sub edx, eax
mov eax, dword [0x68f780]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
call fcn.0047c8b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57a2a6
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00405a64
lea eax, [ebp - 4]
call fcn.00405234
ret