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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x1001d018]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
push 0x7ff
lea eax, [ebp - 0x80c]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x81c], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x818]
push ecx
push esi
lea edx, [ebp - 0x80c]
push 0x7ff
push edx
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
add esp, 0x10
lea edi, [ebp - 0x80c]
lea esi, [ebp - 0x82c]
call fcn.10004a70
fld dword [ebx + 0x18]
fld qword [0x1001acd0]
push 1
fld st(0)
mov eax, 0x635fd0
fdivrp st(2)
fld dword [0xe7c3d4]
fdivp st(2)
fxch st(1)
fstp dword [ebp - 0x818]
fdiv dword [ebx + 0x1c]
fdiv dword [0xe7c3d8]
fstp dword [ebp - 0x814]
call eax
fld dword [ebp - 0x814]
fstp dword [esp]
fld dword [ebp - 0x818]
sub esp, 0x24
fstp dword [esp + 0x20]
fld dword [0x1001acc8]
fst dword [esp + 0x1c]
fld dword [0x1001ac44]
fstp dword [esp + 0x18]
fldz
fst dword [esp + 0x14]
fstp dword [esp + 0x10]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [ebx + 4]
fstp dword [esp + 4]
fld dword [ebx]
fstp dword [esp]
call fcn.10004b70
fld dword [ebx]
fld qword [0x1001acc0]
fadd st(1), st(0)
fxch st(1)
call fcn.10019450
mov dword [ebp - 0x818], eax
fild dword [ebp - 0x818]
mov esi, 0xa
fstp dword [ebp - 0x814]
fld dword [ebp - 0x814]
fld dword [ebx]
fadd dword [ebx + 0x18]
fsub st(2)
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10005526
fstp st(1)
jmp 0x10004fb2
fstp st(0)
fldz
sub esp, 0x18
fstp dword [esp + 0x14]
mov ecx, 0x790e40
fld dword [0x1001acb0]
fstp dword [esp + 0x10]
fld dword [0x1001acac]
fstp dword [esp + 0xc]
fld dword [0x1001ab20]
fstp dword [esp + 8]
fld dword [ebx + 4]
fstp dword [esp + 4]
fstp dword [esp]
push 0x7a79
call ecx
fldz
fstp dword [esp + 0x18]
add esp, 4
fld dword [0x1001acb0]
mov edx, 0x790e40
fstp dword [esp + 0x10]
fld dword [0x1001aca8]
fstp dword [esp + 0xc]
fld dword [0x1001ab20]
fstp dword [esp + 8]
fld dword [ebx + 0x1c]
fadd dword [ebx + 4]
fsub qword [0x1001acb8]
fstp dword [ebp - 0x810]
fld dword [ebp - 0x810]
fstp dword [esp + 4]
fld dword [ebp - 0x814]
fstp dword [esp]
push 0x7a7d
call edx
add dword [ebp - 0x818], esi
fild dword [ebp - 0x818]
add esp, 0x1c
fstp dword [ebp - 0x814]
fld dword [ebp - 0x814]
fld dword [ebx]
fadd dword [ebx + 0x18]
fld qword [0x1001acc0]
fsub st(1), st(0)
fxch st(1)
fcomp st(2)
fnstsw ax
test ah, 0x41
je 0x10004fb0
fstp st(1)
fld dword [ebx + 4]
fadd st(1)
call fcn.10019450
mov dword [ebp - 0x814], eax
fild dword [ebp - 0x814]
fstp dword [ebp - 0x818]
fld dword [ebp - 0x818]
fld dword [ebx + 0x1c]
fadd dword [ebx + 4]
fsubrp st(2)
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10005174
fldz
sub esp, 0x18
fst dword [esp + 0x14]
mov eax, 0x790e40
fstp dword [esp + 0x10]
fld dword [0x1001ab20]
fstp dword [esp + 0xc]
fld dword [0x1001ab2c]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [ebx]
fstp dword [esp]
push 0x7a7b
call eax
fldz
fst dword [esp + 0x18]
add esp, 4
fstp dword [esp + 0x10]
mov ecx, 0x790e40
fld dword [0x1001ab20]
fstp dword [esp + 0xc]
fld dword [0x1001ab2c]
fstp dword [esp + 8]
fld dword [ebp - 0x818]
fstp dword [esp + 4]
fld dword [ebx]
fadd dword [ebx + 0x18]
fsub qword [0x1001aca0]
fstp dword [ebp - 0x810]
fld dword [ebp - 0x810]
fstp dword [esp]
push 0x7a7c
call ecx
add dword [ebp - 0x814], esi
fild dword [ebp - 0x814]
add esp, 0x1c
fstp dword [ebp - 0x818]
fld dword [ebp - 0x818]
fld dword [ebx + 0x1c]
fadd dword [ebx + 4]
fsub qword [0x1001acc0]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x100050b9
fstp st(0)
sub esp, 0x18
fldz
mov edx, 0x790e40
fst dword [esp + 0x14]
fstp dword [esp + 0x10]
fld dword [0x1001acac]
fstp dword [esp + 0xc]
fld dword [0x1001acb0]
fstp dword [esp + 8]
fld dword [ebx + 4]
fstp dword [esp + 4]
fld dword [ebx]
fstp dword [esp]
push 0x7a79
call edx
fldz
fstp dword [esp + 0x18]
add esp, 4
fld dword [0x1001ac90]
mov eax, 0x790e40
fstp dword [esp + 0x10]
fld dword [0x1001acac]
fstp dword [esp + 0xc]
fld dword [0x1001acb0]
fstp dword [esp + 8]
fld dword [ebx + 4]
fstp dword [esp + 4]
fld dword [ebx]
fadd dword [ebx + 0x18]
fsub qword [0x1001ac98]
fstp dword [ebp - 0x810]
fld dword [ebp - 0x810]
fstp dword [esp]
push 0x7a79
call eax
fldz
fst dword [esp + 0x18]
add esp, 4
fstp dword [esp + 0x10]
mov ecx, 0x790e40
fld dword [0x1001aca8]
fstp dword [esp + 0xc]
fld dword [0x1001acb0]
fstp dword [esp + 8]
fld dword [ebx + 0x1c]
fadd dword [ebx + 4]
fsub qword [0x1001acb8]
fstp dword [ebp - 0x810]
fld dword [ebp - 0x810]
fstp dword [esp + 4]
fld dword [ebx]
fstp dword [esp]
push 0x7a7d
call ecx
fldz
fstp dword [esp + 0x18]
add esp, 4
fld dword [0x1001ac90]
mov edx, 0x790e40
fstp dword [esp + 0x10]
fld dword [0x1001aca8]
fstp dword [esp + 0xc]
fld dword [0x1001acb0]
fstp dword [esp + 8]
fld dword [ebx + 0x1c]
fadd dword [ebx + 4]
fsub qword [0x1001acb8]
fstp dword [ebp - 0x810]
fld dword [ebp - 0x810]
fstp dword [esp + 4]
fld dword [ebx]
fadd dword [ebx + 0x18]
fsub qword [0x1001ac98]
fstp dword [ebp - 0x810]
fld dword [ebp - 0x810]
fstp dword [esp]
push 0x7a7d
call edx
fld dword [ebx + 4]
add esp, 0x1c
call fcn.10019450
mov esi, eax
mov dword [ebp - 0x810], esi
fild dword [ebp - 0x810]
sub esp, 0x10
mov eax, 0x790b50
fstp dword [ebp - 0x814]
fld dword [0x1001ab3c]
fstp dword [esp + 0xc]
fld dword [0x1001ac80]
fstp dword [esp + 8]
fld dword [ebp - 0x814]
fstp dword [esp + 4]
fld dword [ebx]
fadd dword [ebx + 0x18]
fsub qword [0x1001ac88]
fstp dword [ebp - 0x810]
fld dword [ebp - 0x810]
fstp dword [esp]
push 0x7ec5
call eax
fld dword [ebx]
fadd dword [ebx + 0x18]
add esp, 0x14
push 0x24
push 0x24
fsub qword [0x1001ac88]
push esi
call fcn.10019450
push eax
mov ecx, 0x790b10
call ecx
add esp, 0x10
cmp al, 1
jne 0x10005447
push 1
mov edx, 0x791070
call edx
add esp, 4
test al, al
je 0x100053bd
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
shl esi, 6
call edi
sub eax, dword [esi + 0x10155adc]
cmp eax, 0x12c
jbe 0x100053bd
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 [esi + 0x10155ae1], 1
call edi
mov dword [esi + 0x10155adc], eax
xor byte [ebx + 0x29], 1
push 0x23
mov ecx, 0x861110
call ecx
mov edx, 0x85f9a0
mov ecx, eax
call edx
push 0x82
push 0x14
push 0xcc
push 0xff
mov eax, 0x412d20
call eax
fldz
add esp, 0x10
push eax
sub esp, 0x18
fst dword [esp + 0x14]
mov ecx, 0x790f20
fstp dword [esp + 0x10]
fld dword [0x1001ab3c]
fstp dword [esp + 0xc]
fld dword [0x1001ac80]
fstp dword [esp + 8]
fld dword [ebp - 0x814]
fstp dword [esp + 4]
fld dword [ebx]
fadd dword [ebx + 0x18]
fsub qword [0x1001ac88]
fstp dword [ebp - 0x810]
fld dword [ebp - 0x810]
fstp dword [esp]
push 0x7ec5
call ecx
mov edx, dword [0x1015cc68]
mov eax, dword [0x1015cc60]
push str.Close
push edx
add eax, 0x14
push eax
call fcn.10004b00
add esp, 0x2c
fld dword [ebp - 0x820]
lea ecx, [ebp - 0x80c]
push ecx
call fcn.10019450
fld dword [ebx + 0x18]
push eax
call fcn.10019450
fld dword [ebx + 4]
fadd qword [0x1001aad8]
push eax
push 0
push 0xffae00ff
call fcn.10019450
fld dword [ebx]
push eax
call fcn.10019450
mov edx, dword [0xe8c58c]
push eax
push edx
mov cl, 3
call fcn.100048c0
mov eax, 0x635f50
call eax
push 0
mov ecx, 0x635fd0
call ecx
fld dword [ebx]
fstp dword [ebp - 0x814]
add esp, 0x24
fld dword [ebx + 4]
fstp dword [ebp - 0x818]
fild dword [0x879340c]
fstp dword [ebp - 0x810]
fld dword [ebp - 0x810]
fld dword [ebp - 0x814]
fld st(0)
fadd dword [ebx + 0x18]
fcomp st(2)
fnstsw ax
test ah, 1
jne 0x1000552d
fcompp
fnstsw ax
test ah, 0x41
jp 0x10005531
fild dword [0x8793410]
fstp dword [ebp - 0x810]
fld dword [ebp - 0x810]
fld dword [ebp - 0x818]
fld st(0)
fadd dword [ebx + 0x1c]
fcomp st(2)
fnstsw ax
test ah, 1
jne 0x1000552d
fcompp
fnstsw ax
test ah, 0x41
jp 0x10005531
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10018a8d
mov esp, ebp
pop ebp
ret
fstp st(0)
jmp 0x10005080
fstp st(1)
fstp st(0)
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.10018a8d
mov esp, ebp
pop ebp
ret