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

Disassembly:
push 0x84
mov eax, 0x5ec7ca
call fcn.005234b0
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
mov eax, ebx
call fcn.0059aec9
and dword [ebp - 4], 0
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x59bffc
push 0x7636f4
mov ecx, edi
call fcn.004bb12e
push 0x763a14
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.004bb12e
imul eax, dword [ebp + 8]
cdq
and edx, 0x1f
add eax, edx
mov esi, eax
sar esi, 5
push 0x763a30
mov ecx, edi
mov dword [ebp - 0x14], esi
call fcn.004bb12e
mov ecx, eax
mov eax, esi
shl eax, 5
cdq
idiv dword [ebp + 8]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], eax
mov eax, ecx
imul eax, esi
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
mov dword [ebp - 0x28], eax
jbe 0x59baa6
call fcn.0051e314
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x59bab9
call fcn.0051e314
cmp dword [ebp - 0x40], edi
je 0x59bffc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x190]
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [ebp - 0x44]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
call fcn.0041fa7f
mov esi, eax
lea edi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x70]
shl eax, 5
cdq
idiv dword [ebp + 8]
push 0x20
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x68]
shl eax, 5
cdq
idiv dword [ebp + 8]
mov ecx, eax
pop eax
cdq
idiv dword [ebp + 8]
cmp byte [ebx + 0x46c], 0
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x68], eax
je 0x59bb22
mov eax, dword [ebp - 0x28]
jmp 0x59bb54
mov eax, dword [ebx + 0x418]
lea esi, [ebp - 0x44]
mov dword [ebp - 0x24], eax
call fcn.0041fa7f
push 0x20
push dword [ebp - 0x14]
mov esi, eax
sub esp, 0x10
mov edi, esp
push dword [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x4c]
call fcn.0041fdd3
push eax
call fcn.0059ac88
lea esi, [ebp - 0x44]
mov dword [ebp - 0x10], eax
call fcn.0041fa7f
mov edi, dword [eax + 8]
sub edi, dword [eax]
call fcn.0041fa7f
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
inc ecx
inc edi
imul ecx, edi
cmp dword [ebp - 0x10], 0
je 0x59bfe0
cmp dword [ebp + 8], 0x10
jge 0x59bc0a
cmp byte [ebx + 0x46c], 0
jne 0x59be22
mov eax, ecx
push 5
cdq
pop ecx
idiv ecx
cmp dword [ebp - 0x10], eax
jl 0x59bbac
cmp dword [ebp - 0x10], 0x64
jge 0x59be22
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
push ecx
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x420]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
movsd dword es:[edi], dword [esi]
call fcn.0041df35
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x190]
mov edi, dword [ebx + 0x418]
push eax
push dword [ebp + 8]
lea esi, [ebp - 0x44]
push dword [ebp - 0x14]
call fcn.0041fa7f
mov esi, dword [ebp - 0x4c]
push eax
push edi
call fcn.0041fdd3
push eax
lea eax, [ebx + 0x320]
push eax
mov byte [ebp - 4], 0
call fcn.00594942
jmp 0x59bf3d
push 0x763ad8
mov ecx, ebx
call fcn.004bb12e
mov ecx, dword [0x764c0c]
push 0x763c44
mov dword [ebp - 0x24], eax
call fcn.004bb12e
lea esi, [ebp - 0x44]
mov dword [ebp - 0x10], eax
call fcn.0041fa7f
mov edi, dword [eax + 8]
sub edi, dword [eax]
call fcn.0041fa7f
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
mov eax, dword [ebp - 0x10]
imul eax, eax
imul ecx, edi
shl eax, 2
cmp ecx, eax
jl 0x59bdbd
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x64]
mov edx, eax
mov dword [ebp - 0x20], eax
jg 0x59beba
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x68]
cmp eax, ecx
mov dword [ebp - 0x18], eax
jg 0x59bda6
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x10]
lea esi, [esi + edx - 1]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x7c], edx
jmp 0x59bc95
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp dword [ebp - 0x64], edx
lea ecx, [ecx + eax - 1]
mov dword [ebp - 0x34], ecx
lea esi, [ebp - 0x2c]
jl 0x59bcad
lea esi, [ebp - 0x1c]
cmp dword [ebp - 0x68], ecx
lea edx, [ebp - 0x30]
jl 0x59bcb8
lea edx, [ebp - 0x34]
cmp byte [ebx + 0x46c], 0
mov ecx, dword [esi]
mov edx, dword [edx]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], ecx
jne 0x59bd34
imul eax, dword [ebp + 8]
lea esi, [ebp - 0x80]
lea edi, [ebp - 0x90]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cdq
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and edx, 0x1f
add eax, edx
sar eax, 5
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x88]
imul eax, dword [ebp + 8]
cdq
push 0x20
push dword [ebp - 0x14]
and edx, 0x1f
add eax, edx
sub esp, 0x10
sar eax, 5
mov dword [ebp - 0x88], eax
mov eax, dword [ebx + 0x418]
mov edi, esp
lea esi, [ebp - 0x90]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x4c]
push eax
call fcn.0041fdd3
push eax
call fcn.0059ac88
test eax, eax
je 0x59bd94
push ecx
push ecx
lea eax, [ebx + 0x40c]
mov edx, dword [eax]
mov ecx, esp
add eax, 4
mov dword [ebp - 0x34], esp
mov dword [ecx], edx
push eax
add ecx, 4
call fcn.00411809
sub esp, 0x10
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0x420]
mov ecx, dword [ebx + 0x190]
mov edi, esp
push dword [ebp - 0x24]
lea esi, [ebp - 0x80]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ecx
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x4c]
call fcn.0041fdd3
push 2
lea ecx, [ebx + 0x320]
push ecx
lea ecx, [ebp - 0x54]
mov edx, eax
mov byte [ebp - 4], 0
call fcn.00594f97
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
jle 0x59bc92
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x64]
mov dword [ebp - 0x20], edx
jle 0x59bc69
jmp 0x59beba
push ecx
push ecx
lea eax, [ebx + 0x40c]
mov edx, dword [eax]
mov ecx, esp
add eax, 4
mov dword [ebp - 0x34], esp
mov dword [ecx], edx
push eax
add ecx, 4
call fcn.00411809
sub esp, 0x10
mov byte [ebp - 4], 3
mov eax, dword [ebx + 0x420]
mov ecx, dword [ebx + 0x190]
mov edi, esp
push dword [ebp - 0x24]
lea esi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ecx
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x4c]
call fcn.0041fdd3
push 2
lea ecx, [ebx + 0x320]
push ecx
lea ecx, [ebp - 0x54]
mov edx, eax
mov byte [ebp - 4], 0
call fcn.00594f97
jmp 0x59beba
cmp dword [ebp + 8], 8
jne 0x59be6f
mov eax, dword [ebx + 0x420]
mov ecx, dword [ebx + 0x190]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [0x764c0c]
push 0x763c60
movsd dword es:[edi], dword [esi]
call fcn.004bb2e3
mov esi, dword [ebp - 0x4c]
push eax
call fcn.0041fdd3
push eax
push 2
lea eax, [ebx + 0x320]
push eax
lea ecx, [ebp - 0x54]
call fcn.005949fe
jmp 0x59beba
cmp dword [ebp + 8], 4
jne 0x59beba
mov eax, dword [ebx + 0x420]
mov ecx, dword [ebx + 0x190]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [0x764c0c]
push 0x763c60
movsd dword es:[edi], dword [esi]
call fcn.004bb2e3
mov esi, dword [ebp - 0x4c]
push eax
call fcn.0041fdd3
push eax
push 2
lea eax, [ebx + 0x320]
push eax
lea ecx, [ebp - 0x54]
call fcn.00594f31
lea esi, [ebp - 0x44]
call fcn.0041fa7f
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x14]
dec eax
cmp ecx, eax
jl 0x59bf3d
call fcn.0041fa7f
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
mov eax, dword [ebp - 0x38]
dec eax
cmp ecx, eax
jl 0x59bf3d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.00411379
mov ecx, dword [0x764c0c]
push 0x763c7c
call fcn.004ba3bc
mov ecx, dword [ebx + 0x190]
mov eax, dword [ecx]
call dword [eax + 0xc]
sub eax, dword [ebp - 0x60]
push ecx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.00411379
mov ecx, dword [0x764c0c]
push 0x763c98
call fcn.004ba3bc
lea esi, [ebp - 0x44]
call fcn.0041fa7f
mov edi, dword [eax + 4]
mov dword [ebp - 0x18], edi
call fcn.0041fa7f
cmp edi, dword [eax + 0xc]
jg 0x59bfe0
mov eax, edi
imul eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea esi, [ebp - 0x44]
call fcn.0041fa7f
mov dword [ebp - 0x3c], eax
call fcn.0041fa7f
mov dword [ebp - 0x34], eax
call fcn.0041fa7f
mov edi, dword [ebx + 0x418]
mov dword [ebp - 0x30], eax
call fcn.0041fa7f
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
sub eax, dword [ecx]
lea eax, [eax*4 + 4]
push eax
call fcn.0041fdd3
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx]
mov esi, dword [ebp - 0x24]
add ecx, esi
lea eax, [eax + ecx*4]
push eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
add eax, esi
lea eax, [edi + eax*4]
push eax
call fcn.005229e0
add esi, dword [ebp - 0x14]
add esp, 0xc
inc dword [ebp - 0x18]
mov dword [ebp - 0x24], esi
lea esi, [ebp - 0x44]
call fcn.0041fa7f
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax + 0xc]
jle 0x59bf62
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [eax + 8]
jb 0x59bff0
call fcn.0051e314
add dword [ebp - 0x40], 0x10
mov esi, dword [ebp + 0xc]
jmp 0x59baac
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x59c00c
call fcn.004117b8
call fcn.00523588
ret 8