Function at 0x10241600
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword fs:[0x2c]
xorps xmm0, xmm0
mov edx, dword [0x11d0c5b8]
push ebx
push esi
mov esi, ecx
movlpd qword [esp + 0x44], xmm0
mov ebx, dword [eax + edx*4]
push edi
mov dword [esp + 0x24], esi
mov eax, dword [esi + 0xdc]
mov dword [esp + 0x18], ebx
mov eax, dword [eax]
mov dword [ebx + 0x10], eax
cmp byte [esi + 4], 0
je 0x10241b3e
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edi
nop word [eax + eax]
mov eax, dword [esi + 0xdc]
mov edx, 1
mov ecx, dword [esi + 0x124]
shl edx, cl
test dword [eax + 0x1028], edx
je 0x102416b0
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0xd3a4]
test cl, 1
jne 0x102416ac
test cl, 2
jne 0x102416b0
cmp dword [eax + 0xd39c], 0
je 0x102416b0
cmp dword [eax + 0xd3a8], 0
jne 0x102416b0
cmp byte [eax + 0xd3e0], 0
je 0x102416b0
mov bl, 1
jmp 0x102416b2
xor bl, bl
lea eax, [esp + 0x38]
mov byte [esp + 0xf], bl
push eax
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x3c888f86
xorps xmm0, xmm0
mov ecx, esi
push eax
movlpd qword [esp + 0x44], xmm0
call fcn.102413d0
lea eax, [esp + 0x40]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x44], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test bl, bl
je 0x10241959
cmp byte [esi + 0x128], 0
je 0x1024170e
cmp dword [esi + 0x200], 1
jne 0x1024170e
mov byte [esi + 0x98], 1
cmp byte [esi + 0x98], 0
jne 0x1024173f
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [0x1122d540]
cvtps2pd xmm0, xmm0
call fcn.10240900
mov ecx, esi
call fcn.10243490
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10241a80
lea edi, [esi + 0x60]
mov dword [esp + 0x34], edi
nop word [eax + eax]
mov ecx, dword [esi + 0xdc]
mov eax, dword [ecx + 0x12e4]
cmp eax, 0xffffffff
jne 0x10241770
mov eax, dword [ecx + 0x1338]
cmp eax, 0xffffffff
jne 0x10241770
xor ebx, ebx
jmp 0x10241777
mov ebx, dword [ecx + eax*4 + 0x11dc]
mov ebx, dword [ebx + 0x5e0]
mov dword [esp + 0x28], ebx
test byte [ebx + 0xdb8], 2
jne 0x102417a4
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], edx
jmp 0x1024182b
mov ecx, dword [ebx + 0xd64]
test ecx, ecx
je 0x1024180b
call fcn.10096c90
mov dword [esp + 0x14], eax
mov edi, 1
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0xf944], edi
jbe 0x10241808
lea esi, [ebx + 0xd68]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi]
call fcn.10096c90
cmp eax, ebx
lea esi, [esi + 4]
cmovb ebx, eax
mov eax, dword [esp + 0x18]
inc edi
mov eax, dword [eax + 0x10]
cmp edi, dword [eax + 0xf944]
jb 0x102417d8
mov edi, dword [esp + 0x34]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x28]
jmp 0x1024180b
lea edi, [esi + 0x60]
mov eax, dword [ebx + 0xd8c]
mov dword [ebx + 0xd94], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xd90], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0xd94]
xorps xmm0, xmm0
mov dword [esp + 0x1c], eax
movlpd qword [esp + 0x50], xmm0
mov ecx, edi
mov esi, dword [esp + 0x54]
mov edi, 6
mov ebx, dword [esp + 0x50]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
cmp edx, esi
jb 0x10241868
ja 0x10241856
cmp eax, ebx
jbe 0x10241868
cmp edx, dword [esp + 0x1c]
ja 0x10241868
jb 0x10241864
cmp eax, dword [esp + 0x20]
ja 0x10241868
mov ebx, eax
mov esi, edx
add ecx, 8
sub edi, 1
jne 0x10241847
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp eax, dword [esi + 0x94]
ja 0x102418a8
jb 0x1024188e
cmp ebx, dword [esi + 0x90]
ja 0x102418a8
cmp byte [esi + 4], 0
je 0x10241b3e
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [esi + 0x60]
jmp 0x10241750
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x48]
sub ecx, dword [esi + 0xa0]
mov edx, dword [esp + 0x4c]
sbb edx, dword [esi + 0xa4]
call fcn.104511a0
mulsd xmm0, qword [0x1122d448]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
movsd qword [esp + 0x50], xmm0
call fcn.104511a0
movsd xmm2, qword [esp + 0x50]
divsd xmm2, xmm0
movss xmm1, dword [esp + 0x10]
cvtps2pd xmm1, xmm1
mulsd xmm1, qword [0x1122d448]
comisd xmm1, xmm2
jbe 0x1024192f
subsd xmm1, xmm2
cvtpd2ps xmm0, xmm1
cvtps2pd xmm0, xmm0
call fcn.10240900
cmp byte [esi + 0x128], 0
je 0x10241928
cmp dword [esi + 0x200], 1
je 0x1024192f
mov byte [esi + 0x98], 0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esi + 0xa4], ecx
mov ecx, esi
mov dword [esi + 0xa0], eax
call fcn.10243490
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10241a80
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x38]
push eax
push ecx
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.102413d0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [esp + 0x38]
cmp ebx, edi
mov edi, dword [esp + 0x3c]
jne 0x10241985
cmp edi, dword [esp + 0x20]
je 0x10241955
cmp edi, dword [esp + 0x44]
jb 0x102419e4
mov eax, dword [esp + 0x40]
ja 0x10241995
cmp ebx, eax
jbe 0x102419e4
mov ecx, ebx
mov edx, edi
sub ecx, eax
sbb edx, dword [esp + 0x44]
call fcn.104511a0
mulsd xmm0, qword [0x1122d448]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
movsd qword [esp + 0x50], xmm0
call fcn.104511a0
movsd xmm1, qword [esp + 0x50]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
subss xmm0, dword [0x1122d318]
comiss xmm0, dword [0x11229920]
jbe 0x102419e4
cvtps2pd xmm0, xmm0
call fcn.10240900
lea eax, [esp + 0x38]
push eax
push ecx
push 0
mov ecx, esi
call fcn.102413d0
cmp ebx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
jne 0x10241a01
cmp edi, ebx
je 0x10241a6f
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x38]
mov edx, ebx
mov ecx, edi
sub ecx, dword [esp + 0x40]
sbb edx, dword [esp + 0x44]
call fcn.104511a0
mulsd xmm0, qword [0x1122d448]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
movsd qword [esp + 0x50], xmm0
call fcn.104511a0
movsd xmm1, qword [esp + 0x50]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
subss xmm0, dword [0x1122d318]
comiss xmm0, dword [0x11229920]
jbe 0x10241a6f
cmp ebx, dword [esp + 0x44]
jb 0x10241a6f
ja 0x10241a67
cmp edi, dword [esp + 0x40]
jbe 0x10241a6f
cvtps2pd xmm0, xmm0
call fcn.10240900
mov ecx, esi
call fcn.10243490
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 3
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x60]
xorps xmm0, xmm0
push eax
movss dword [esp + 0x2c], xmm0
call edi
mov eax, dword [esi + 0x30]
mov ecx, esi
push eax
call fcn.10241170
test al, al
jne 0x10241b06
lea eax, [esp + 0x58]
push eax
call edi
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
sbb edx, dword [esp + 0x64]
call fcn.104511a0
mulsd xmm0, qword [0x1122d448]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
movsd qword [esp + 0x50], xmm0
call fcn.104511a0
movsd xmm1, qword [esp + 0x50]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
comiss xmm0, dword [0x1122d520]
movss dword [esp + 0x28], xmm0
ja 0x10241b06
mov eax, dword [esi + 0x30]
mov ecx, esi
push eax
call fcn.10241170
test al, al
je 0x10241aa5
cmp byte [esp + 0xf], 0
jne 0x10241b20
movss xmm0, dword [esp + 0x28]
comiss xmm0, dword [0x1122d3e8]
jbe 0x10241b20
push 3
call ebx
cmp byte [esi + 4], 0
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], edi
jne 0x10241660
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret