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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, eax
imul ebx, ebx, 0x54
cmp byte [ebx + 0x118c4f99], 0
je 0x10065ddc
fld dword [ebp + 0x14]
push esi
push edi
mov dword [0xe8cb3c], 1
call fcn.1012e5b0
fld dword [ebp + 0x10]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.1012e5b0
fld dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call fcn.1012e5b0
fld dword [ebp + 0x18]
mov edi, eax
mov dword [ebp - 0x14], edi
call fcn.1012e5b0
push eax
mov eax, dword [ebp - 0xc]
push esi
push eax
push edi
mov ecx, 0x790b10
call ecx
add esp, 0x10
cmp al, 1
jne 0x100658eb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 8]
add eax, 0x1f4
mov dword [edx + 0x240], eax
fld dword [ebp + 0x14]
push 1
fld qword [0x1013f928]
mov eax, 0x635fd0
fld st(0)
fdivrp st(2)
fld dword [0xe7c3d4]
fdivp st(2)
fxch st(1)
fstp dword [ebp - 4]
fdiv dword [ebp + 0x18]
fdiv dword [0xe7c3d8]
fstp dword [ebp + 8]
call eax
fld1
fst dword [esp]
sub esp, 8
fst dword [esp + 4]
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glColor3f]
fld dword [ebp + 8]
sub esp, 0x28
fstp dword [esp + 0x24]
fld dword [ebp - 4]
fstp dword [esp + 0x20]
fld dword [0x1013f920]
fst dword [esp + 0x1c]
fld dword [0x1013f7a8]
fstp dword [esp + 0x18]
fldz
fst dword [esp + 0x14]
fstp dword [esp + 0x10]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [ebp + 0x10]
fstp dword [esp + 4]
fld dword [ebp + 0xc]
fstp dword [esp]
call fcn.10066150
fld dword [ebp + 0xc]
fld st(0)
fld qword [0x1013f580]
fadd st(1), st(0)
fxch st(1)
call fcn.1012e5b0
mov dword [ebp + 8], eax
fild dword [ebp + 8]
mov esi, 0xa
fstp dword [ebp - 4]
fld dword [ebp + 0x14]
faddp st(2)
fxch st(1)
fst qword [ebp - 0x1c]
fld st(0)
fsub st(2)
fst qword [ebp - 0x24]
fld dword [ebp - 4]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10065a77
fstp st(2)
fstp st(0)
fld dword [ebp + 0x10]
fadd dword [ebp + 0x18]
fsub qword [0x1013f918]
fstp dword [ebp + 0x14]
fldz
sub esp, 0x18
fstp dword [esp + 0x14]
mov ecx, 0x790e40
fld dword [0x1013f910]
fstp dword [esp + 0x10]
fld dword [0x1013f90c]
fstp dword [esp + 0xc]
fld dword [0x1013f6a0]
fstp dword [esp + 8]
fld dword [ebp + 0x10]
fstp dword [esp + 4]
fstp dword [esp]
push 0x7a79
call ecx
fldz
fstp dword [esp + 0x18]
add esp, 4
fld dword [0x1013f910]
mov edx, 0x790e40
fstp dword [esp + 0x10]
fld dword [0x1013f908]
fstp dword [esp + 0xc]
fld dword [0x1013f6a0]
fstp dword [esp + 8]
fld dword [ebp + 0x14]
fstp dword [esp + 4]
fld dword [ebp - 4]
fstp dword [esp]
push 0x7a7d
call edx
add dword [ebp + 8], esi
fild dword [ebp + 8]
add esp, 0x1c
fstp dword [ebp - 4]
fld dword [ebp - 4]
fcom qword [ebp - 0x24]
fnstsw ax
test ah, 5
jnp 0x100659d0
fstp st(0)
fld qword [0x1013f580]
fld qword [ebp - 0x1c]
jmp 0x10065a79
fstp st(0)
fld dword [ebp + 0x10]
fld st(0)
fadd st(3)
call fcn.1012e5b0
mov dword [ebp + 0x14], eax
fild dword [ebp + 0x14]
fstp dword [ebp + 8]
fld st(0)
fadd dword [ebp + 0x18]
fst qword [ebp - 8]
fsubrp st(3)
fxch st(2)
fst qword [ebp - 0x24]
fld dword [ebp + 8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10065b4f
fstp st(2)
fsub qword [0x1013f900]
fstp dword [ebp + 0x18]
fldz
sub esp, 0x18
fst dword [esp + 0x14]
mov eax, 0x790e40
fstp dword [esp + 0x10]
fld dword [0x1013f6a0]
fstp dword [esp + 0xc]
fld dword [0x1013f8e0]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [ebp + 0xc]
fstp dword [esp]
push 0x7a7b
call eax
fldz
fst dword [esp + 0x18]
add esp, 4
fstp dword [esp + 0x10]
mov ecx, 0x790e40
fld dword [0x1013f6a0]
fstp dword [esp + 0xc]
fld dword [0x1013f8e0]
fstp dword [esp + 8]
fld dword [ebp + 8]
fstp dword [esp + 4]
fld dword [ebp + 0x18]
fstp dword [esp]
push 0x7a7c
call ecx
add dword [ebp + 0x14], esi
fild dword [ebp + 0x14]
add esp, 0x1c
fstp dword [ebp + 8]
fld dword [ebp + 8]
fcom qword [ebp - 0x24]
fnstsw ax
test ah, 5
jnp 0x10065aba
fstp st(0)
fld dword [ebp + 0x10]
jmp 0x10065b53
fstp st(0)
fstp st(0)
fldz
sub esp, 0x18
fst dword [esp + 0x14]
mov edx, 0x790e40
fstp dword [esp + 0x10]
fld dword [0x1013f90c]
fstp dword [esp + 0xc]
fld dword [0x1013f910]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [ebp + 0xc]
fstp dword [esp]
push 0x7a79
call edx
fld qword [ebp - 0x1c]
fsub qword [0x1013f598]
add esp, 4
mov eax, 0x790e40
fstp dword [ebp + 0x18]
fldz
fstp dword [esp + 0x14]
fld dword [0x10150f98]
fstp dword [esp + 0x10]
fld dword [0x1013f90c]
fstp dword [esp + 0xc]
fld dword [0x1013f910]
fstp dword [esp + 8]
fld dword [ebp + 0x10]
fstp dword [esp + 4]
fld dword [ebp + 0x18]
fstp dword [esp]
push 0x7a79
call eax
fld qword [ebp - 8]
fsub qword [0x1013f918]
add esp, 4
mov ecx, 0x790e40
fstp dword [ebp + 0x14]
fldz
fst dword [esp + 0x14]
fstp dword [esp + 0x10]
fld dword [0x1013f908]
fstp dword [esp + 0xc]
fld dword [0x1013f910]
fstp dword [esp + 8]
fld dword [ebp + 0x14]
fstp dword [esp + 4]
fld dword [ebp + 0xc]
fstp dword [esp]
push 0x7a7d
call ecx
fldz
fstp dword [esp + 0x18]
add esp, 4
fld dword [0x10150f98]
mov edx, 0x790e40
fstp dword [esp + 0x10]
fld dword [0x1013f908]
fstp dword [esp + 0xc]
fld dword [0x1013f910]
fstp dword [esp + 8]
fld dword [ebp + 0x14]
fstp dword [esp + 4]
fld dword [ebp + 0x18]
fstp dword [esp]
push 0x7a7d
call edx
fld qword [ebp - 0x1c]
fsub qword [0x1013f8f8]
call fcn.1012e5b0
mov edi, dword [ebp - 0xc]
mov dword [ebp + 0xc], edi
fild dword [ebp + 0xc]
mov esi, eax
mov dword [ebp + 0x18], esi
add esp, 0xc
fstp dword [ebp + 0xc]
fild dword [ebp + 0x18]
fstp dword [ebp + 0x18]
fld dword [0x1013f7f8]
fstp dword [esp + 0xc]
fld dword [0x1013f7d0]
mov eax, 0x790b50
fstp dword [esp + 8]
fld dword [ebp + 0xc]
fstp dword [esp + 4]
fld dword [ebp + 0x18]
fstp dword [esp]
push 0x7ec5
call eax
push 0x24
push 0x24
push edi
push esi
mov ecx, 0x790b10
call ecx
add esp, 0x24
cmp al, 1
jne 0x10065d9c
push 1
mov edx, 0x791070
call edx
add esp, 4
test al, al
je 0x10065d29
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [ebx + 0x118c4f94]
cmp eax, 0x12c
jbe 0x10065d29
push 0
push 0
push 0x19
mov eax, 0x6d6c20
call eax
fldz
fst dword [esp + 8]
fstp dword [esp + 4]
fld1
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glColor3f]
xor byte [ebx + 0x118c4f99], 1
call esi
mov dword [ebx + 0x118c4f94], eax
mov dword [0xe8cb3c], 0
push 0x82
push 0x14
push 0xcc
push 0xff
mov ecx, 0x412d20
call ecx
fldz
add esp, 0x10
push eax
sub esp, 0x18
fst dword [esp + 0x14]
mov edx, 0x790f20
fstp dword [esp + 0x10]
fld dword [0x1013f7f8]
fstp dword [esp + 0xc]
fld dword [0x1013f7d0]
fstp dword [esp + 8]
fld dword [ebp + 0xc]
fstp dword [esp + 4]
fld dword [ebp + 0x18]
fstp dword [esp]
push 0x7ec5
call edx
mov eax, dword [0x10a723b4]
mov ecx, dword [0x10a723ac]
push 0x109303c8
push eax
add ecx, 0x14
push ecx
call fcn.100bba40
add esp, 0x2c
mov edx, dword [ebp + 0x1c]
fld dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
fadd qword [0x1013f8f0]
push edx
push eax
call fcn.1012e5b0
mov ecx, dword [ebp - 0x14]
push ecx
push 0xff38ffac
mov ebx, 3
mov ecx, eax
call fcn.100bb860
mov edx, 0x635f50
call edx
push 0
mov eax, 0x635fd0
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18