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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [edi]
fld dword [eax + 0x24]
xor ebp, ebp
fstp dword [esp + 0x38]
fld dword [eax + 0x20]
fstp dword [esp + 0x34]
fld dword [eax + 0x28]
fstp dword [esp + 0x3c]
fld dword [eax + 0x2c]
fstp dword [esp + 0x40]
call fcn.10065ba0
test eax, eax
jne 0x1003da7b
call fcn.10065b20
test eax, eax
je 0x1003da83
mov dword [esp + 0x5c], 7
lea esi, [esp + 0x10]
call fcn.100635a0
fld dword [0x1008b7d0]
fstp dword [esp + 0x24]
lea eax, [esp + 0x20]
fld dword [0x1008b7cc]
mov ecx, esi
fstp dword [esp + 0x20]
fld dword [0x1008b7c8]
fstp dword [esp + 0x28]
call fcn.10023f00
fcomp qword [0x1008b728]
fnstsw ax
test ah, 5
jp 0x1003dae5
call fcn.1003dd80
mov eax, dword [edi]
fld dword [eax + 0x24]
fstp dword [esp + 0x38]
fld dword [eax + 0x20]
fstp dword [esp + 0x34]
fld dword [eax + 0x28]
fstp dword [esp + 0x3c]
fld dword [eax + 0x2c]
fstp dword [esp + 0x40]
fld dword [esp + 0x54]
fsub dword [esp + 0x34]
fst qword [esp + 0x10]
fld dword [esp + 0x50]
fsub dword [esp + 0x38]
fst qword [esp + 0x20]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
call fcn.1007ab00
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fild dword [esp + 0x5c]
fcompp
fnstsw ax
test ah, 5
jp 0x1003dd48
fld qword [esp + 0x10]
sub esp, 0x10
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fstp qword [esp + 8]
fld qword [esp + 0x30]
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fstp qword [esp]
call fcn.10059120
mov esi, dword [esp + 0x68]
fstp dword [esp + 0x6c]
mov eax, esi
and eax, 0xf
add esp, 0x10
cmp eax, 1
jne 0x1003dbcc
fld dword [0x1008b71c]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x4c]
fstp dword [esp + 4]
fld dword [esp + 0x68]
fstp dword [esp]
call fcn.10022b80
add esp, 0xc
test eax, eax
jne 0x1003dbbf
and esi, 0xf0000
cmp esi, 0x10000
je 0x1003dbaa
mov ecx, dword [0x1009a210]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
mov ecx, dword [0x1009a210]
fld dword [esp + 0x5c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x44]
push ecx
fstp dword [esp]
call edx
mov ecx, dword [0x1009a210]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
jmp 0x1003dc42
cmp eax, 2
jne 0x1003dc44
fld dword [esp + 0x5c]
sub esp, 0xc
fadd qword [0x100890d0]
fstp dword [esp + 0x68]
fld dword [0x1008b71c]
fstp dword [esp + 8]
fld dword [esp + 0x4c]
fstp dword [esp + 4]
fld dword [esp + 0x68]
fstp dword [esp]
call fcn.10022b80
add esp, 0xc
test eax, eax
jne 0x1003dc37
and esi, 0xf0000
cmp esi, 0x10000
je 0x1003dc22
mov ecx, dword [0x1009a210]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
mov ecx, dword [0x1009a210]
fld dword [esp + 0x5c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x44]
push ecx
fstp dword [esp]
call edx
mov ecx, dword [0x1009a210]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov eax, dword [edi + 4]
cmp eax, ebp
jne 0x1003dc85
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x40]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x44]
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
mov dword [edi + 4], ebx
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x10
mov edx, ebx
sub edx, eax
cmp edx, dword [edi + 0x1c]
jbe 0x1003dc79
lea esi, [edi + 8]
lea eax, [esp + 0x34]
mov ecx, esi
call fcn.10023f00
fld dword [edi + 0x20]
fcompp
fnstsw ax
test ah, 5
jp 0x1003dcd9
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [edi + 4], ebx
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x10
mov eax, 2
cmp dword [edi + 0x24], eax
jge 0x1003dcf8
call fcn.1003d7f0
add dword [edi + 0x24], 1
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x10
mov ebx, dword [esp + 0x58]
mov edx, ebx
and edx, 0xf00
cmp edx, 0x100
mov dword [edi + 0x24], ebp
je 0x1003dc7b
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [edi + 0x2c]
cmp eax, 0xbb8
jbe 0x1003dc79
mov eax, ebx
call fcn.1003de70
test eax, eax
jne 0x1003dd37
lea ebp, [eax + 2]
call esi
mov dword [edi + 0x2c], eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x10
mov eax, dword [esp + 0x58]
and al, 0xf0
cmp al, 0x10
jne 0x1003dd5f
mov ecx, dword [0x1009a210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
mov eax, 1
mov dword [edi + 4], ebp
mov dword [edi + 0x24], ebp
mov dword [edi + 0x28], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x10