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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x18]
push ecx
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
pop ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov edx, dword [0x47fd54]
call fcn.004061c8
xor eax, eax
push ebp
push 0x59a545
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [ebp - 0x10], 1
jbe 0x59a402
cmp dword [ebp - 0x14], 0
jl 0x59a402
mov edx, dword [ebx*4 + 0x7d2ed4]
mov eax, dword [ebp - 0x14]
cmp edx, eax
jl 0x59a28a
movzx ecx, word [ebp - 0x10]
add ecx, eax
dec ecx
cmp edx, ecx
jle 0x59a291
mov dword [ebx*4 + 0x7d2ed4], eax
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx*4 + 0x7d312c]
cmp eax, 0x64
jbe 0x59a2b5
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx*4 + 0x7d312c], eax
inc dword [ebx*4 + 0x7d2ed4]
mov edx, dword [ebx*4 + 0x7d2ed4]
mov eax, dword [ebp - 0x14]
cmp edx, eax
jl 0x59a2ce
movzx ecx, word [ebp - 0x10]
add ecx, eax
dec ecx
cmp edx, ecx
jle 0x59a2d5
mov dword [ebx*4 + 0x7d2ed4], eax
mov eax, dword [ebp - 8]
mov edx, 0x59a560
call fcn.0040566c
je 0x59a529
mov eax, dword [ebp - 8]
call fcn.0059a9f8
mov esi, eax
test esi, esi
je 0x59a529
mov edx, 0x59a56c
mov eax, dword [ebp - 8]
call fcn.00434734
test al, al
je 0x59a3b9
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebx*4 + 0x7d2ed4]
mov eax, esi
call fcn.0048434c
mov edi, eax
cmp dword [edi + 0x18], 0x15
jne 0x59a370
movsx eax, word [ebp - 0xe]
add dword [ebp - 0x28], eax
movsx eax, word [ebp - 0xc]
add dword [ebp - 0x2c], eax
test edi, edi
je 0x59a529
lea edx, [ebp - 0x3c]
mov eax, edi
mov si, 0xfffa
call fcn.00404524
lea eax, [ebp - 0x3c]
push eax
push edi
push 1
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.0047d590
jmp 0x59a529
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebx*4 + 0x7d2ed4]
mov eax, esi
call fcn.0048434c
mov edi, eax
movsx eax, word [ebp - 0xe]
add dword [ebp - 0x28], eax
movsx eax, word [ebp - 0xc]
add dword [ebp - 0x2c], eax
test edi, edi
je 0x59a529
push edi
push 1
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.005b6b24
jmp 0x59a529
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebx*4 + 0x7d2ed4]
mov eax, esi
call fcn.0048434c
mov edi, eax
movsx eax, word [ebp - 0xe]
add dword [ebp - 0x28], eax
movsx eax, word [ebp - 0xc]
add dword [ebp - 0x2c], eax
test edi, edi
je 0x59a529
push edi
push 1
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.005b6b24
jmp 0x59a529
cmp dword [ebp - 0x14], 0
jl 0x59a529
mov eax, dword [ebp - 8]
mov edx, 0x59a560
call fcn.0040566c
je 0x59a529
mov eax, dword [ebp - 8]
call fcn.0059a9f8
mov esi, eax
test esi, esi
je 0x59a529
mov edx, 0x59a56c
mov eax, dword [ebp - 8]
call fcn.00434734
test al, al
je 0x59a4e9
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebx*4 + 0x7d2ed4]
mov eax, esi
call fcn.0048434c
mov edi, eax
cmp dword [edi + 0x18], 0x15
jne 0x59a4a7
movsx eax, word [ebp - 0xe]
add dword [ebp - 0x28], eax
movsx eax, word [ebp - 0xc]
add dword [ebp - 0x2c], eax
test edi, edi
je 0x59a529
lea edx, [ebp - 0x3c]
mov eax, edi
mov si, 0xfffa
call fcn.00404524
lea eax, [ebp - 0x3c]
push eax
push edi
push 1
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.0047d590
jmp 0x59a529
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebx*4 + 0x7d2ed4]
mov eax, esi
call fcn.0048434c
mov edi, eax
movsx eax, word [ebp - 0xe]
add dword [ebp - 0x28], eax
movsx eax, word [ebp - 0xc]
add dword [ebp - 0x2c], eax
test edi, edi
je 0x59a529
push edi
push 1
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.005b6b24
jmp 0x59a529
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebx*4 + 0x7d2ed4]
mov eax, esi
call fcn.0048434c
mov edi, eax
movsx eax, word [ebp - 0xe]
add dword [ebp - 0x28], eax
movsx eax, word [ebp - 0xc]
add dword [ebp - 0x2c], eax
test edi, edi
je 0x59a529
push edi
push 1
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.005b6b24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59a54c
lea eax, [ebp - 0x18]
mov edx, dword [0x47fd54]
call fcn.00406084
ret