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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009eeed
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1010fa0c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov esi, ecx
mov dword [ebp - 0x20], esi
cmp byte [0x1011295c], 0
je 0x10007ca8
mov eax, dword [esi]
mov eax, dword [eax + 0x378]
call eax
mov ecx, dword fs:[0x2c]
mov ebx, eax
mov edx, dword [0x10113814]
mov edi, dword [ecx + edx*4]
mov ecx, dword [0x1013b830]
cmp ecx, dword [edi + 4]
jle 0x1000783e
push 0x1013b830
call fcn.1009cfcc
cmp dword [0x1013b830], 0xffffffff
pop ecx
jne 0x1000783e
push 0x1013b830
mov dword [0x1013b708], 0x7f800000
mov dword [0x1013b704], 0x7f800000
mov dword [0x1013b700], 0x7f800000
call fcn.1009cf82
pop ecx
mov eax, dword [0x1013b6cc]
cmp eax, dword [edi + 4]
jle 0x10007888
push 0x1013b6cc
call fcn.1009cfcc
cmp dword [0x1013b6cc], 0xffffffff
pop ecx
jne 0x10007888
push 0x1013b6cc
mov dword [0x1013b80c], 0x7f800000
mov dword [0x1013b808], 0x7f800000
mov dword [0x1013b804], 0x7f800000
call fcn.1009cf82
pop ecx
mov eax, dword [0x1013b854]
cmp eax, dword [edi + 4]
jle 0x100078d2
push 0x1013b854
call fcn.1009cfcc
cmp dword [0x1013b854], 0xffffffff
pop ecx
jne 0x100078d2
push 0x1013b854
mov dword [0x1013b6f8], 0x7f800000
mov dword [0x1013b6f4], 0x7f800000
mov dword [0x1013b6f0], 0x7f800000
call fcn.1009cf82
pop ecx
mov ecx, esi
call fcn.10007cc2
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.10007445
mov ecx, dword [eax]
mov eax, dword [0x10113a10]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x100ffce0]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [eax + 0x1c]
mov eax, dword [0x1013b6ec]
cmp eax, dword [edi + 4]
mov edi, dword [sym.imp.kErnel32.dlL_GetTickCount]
movss dword [ebp - 0x18], xmm0
jle 0x10007945
push 0x1013b6ec
call fcn.1009cfcc
cmp dword [0x1013b6ec], 0xffffffff
pop ecx
jne 0x10007945
call edi
push 0x1013b6ec
mov dword [0x1013b860], eax
call fcn.1009cf82
pop ecx
cmp dword [ebp - 0x14], 0
je 0x1000795d
cmp byte [0x10112960], 0
je 0x1000795d
mov eax, dword [0x10113830]
or dword [eax + 0x24], 4
call edi
mov ecx, dword [0x1011296c]
add ecx, dword [0x1013b860]
cmp eax, ecx
jae 0x1000797c
cmp dword [0x10112978], 0
je 0x10007ca8
test ebx, ebx
je 0x10007ca8
mov ecx, ebx
call fcn.100075fe
cmp dword [eax], 0
je 0x10007ca8
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x5b4]
call eax
cmp eax, 0x1c
je 0x10007ca8
mov ecx, ebx
call fcn.100075cd
movss xmm0, dword [ebp - 0x18]
comiss xmm0, dword [eax]
jbe 0x10007ca8
mov ecx, esi
call fcn.10007414
movss xmm0, dword [ebp - 0x18]
comiss xmm0, dword [eax]
jbe 0x10007ca8
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10007ca8
mov eax, dword [0x10113830]
test byte [eax + 0x24], 1
jne 0x100079f6
cmp dword [0x1011297c], 0
jne 0x10007ca8
mov eax, dword [ebp - 0x1c]
mov edi, 0x1013b804
movss xmm0, dword [eax + 0x1c]
lea edx, [eax + 0xc]
mov esi, edx
movss dword [0x1013b6b4], xmm0
mov dword [ebp - 0x18], edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movss xmm0, dword [eax + 0x18]
movss dword [0x1013b6c8], xmm0
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push dword [0x10112974]
push eax
call fcn.1000a13c
mov ecx, dword [ebp - 0x14]
mov esi, eax
call fcn.100074a7
mov ecx, dword [0x10113a10]
movss xmm3, dword [esi]
movss xmm1, dword [eax + 4]
movss xmm0, dword [ecx + 0x1c]
mulss xmm0, dword [eax]
mulss xmm1, dword [ecx + 0x1c]
movss xmm2, dword [eax + 8]
addss xmm3, xmm0
movss xmm0, dword [esi + 4]
mulss xmm2, dword [ecx + 0x1c]
addss xmm0, xmm1
movss dword [ebp - 0x14], xmm3
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [esi + 8]
addss xmm0, xmm2
movss dword [ebp - 0x28], xmm0
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.1000755f
mov ecx, edi
mov esi, eax
call fcn.100074a7
mov ecx, dword [0x10113a10]
movss xmm2, dword [esi + 4]
movss xmm0, dword [eax + 4]
mulss xmm0, dword [ecx + 0x1c]
movss xmm3, dword [eax]
mulss xmm3, dword [ecx + 0x1c]
movss xmm1, dword [eax + 8]
addss xmm2, xmm0
mulss xmm1, dword [ecx + 0x1c]
mov ecx, 0x1013b6f0
movss xmm0, dword [esi + 8]
addss xmm3, dword [esi]
subss xmm2, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
addss xmm0, xmm1
mov esi, 0x1013b700
mov edx, esi
subss xmm3, dword [ebp - 0x14]
movss dword [0x1013b6f4], xmm2
subss xmm0, dword [ebp - 0x28]
movss dword [0x1013b6f0], xmm3
movss dword [0x1013b6f8], xmm0
call fcn.10082437
cmp byte [0x10112a01], 0
je 0x10007b33
mov eax, dword [0x10113830]
test byte [eax + 0x24], 1
jne 0x10007b3c
cmp byte [0x1011295e], 0
je 0x10007ba0
mov ecx, edi
call fcn.10007476
movss xmm0, dword [0x1013b700]
mov byte [0x10113828], 1
movss xmm1, dword [eax]
movss xmm2, dword [eax + 4]
addss xmm1, xmm1
movss xmm3, dword [eax + 8]
addss xmm2, xmm2
addss xmm3, xmm3
subss xmm0, xmm1
movss dword [0x1013b700], xmm0
movss xmm0, dword [0x1013b704]
subss xmm0, xmm2
movss dword [0x1013b704], xmm0
movss xmm0, dword [0x1013b708]
subss xmm0, xmm3
movss dword [0x1013b708], xmm0
mov ecx, esi
call fcn.10082680
cmp byte [0x10112a02], 0
je 0x10007bc3
mov edx, dword [ebp - 0x1c]
mov ecx, edi
push esi
call fcn.1008bc0d
pop ecx
mov byte [0x10113829], 1
cmp dword [0x10112978], 0
jne 0x10007be6
movss xmm0, dword [0x10112968]
ucomiss xmm0, dword [0x100fecc4]
lahf
test ah, 0x44
jnp 0x10007be6
call fcn.1000762f
mov edi, dword [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.kErnel32.dlL_GetTickCount]
mov dword [0x1013b860], eax
mov eax, dword [0x10112978]
sub eax, 0
je 0x10007c0f
dec eax
sub eax, 1
jne 0x10007c1d
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x10007c1d
mov ecx, dword [0x10113a14]
push dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 0x50]
movss xmm3, dword [0x1013b6b4]
sub esp, 0xc
movss xmm2, dword [0x1013b6c8]
mov esi, 0x1013b804
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.1008257d
add esp, 0xc
cmp byte [0x1011295e], 0
je 0x10007c8b
mov eax, dword [0x10113830]
mov ecx, ebx
or dword [eax + 0x24], 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x5ac]
call eax
test al, al
jne 0x10007c8b
mov eax, dword [0x1010fa24]
inc eax
mov dword [0x1010fa24], eax
cmp eax, 2
jle 0x10007c8b
mov eax, dword [0x10113830]
and dword [eax + 0x24], 0xfffffffe
or dword [0x1010fa24], 0xffffffff
jmp 0x10007c90
mov eax, dword [0x10113830]
cmp byte [0x1011295f], 0
je 0x10007ca8
and dword [eax + 0x24], 0xfffff9e7
and dword [esi + 0x1c], 0
and dword [esi + 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009ce88
leave
ret