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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, eax
mov eax, dword [edi]
fld dword [eax + 0x24]
xor ebx, ebx
fstp dword [esp + 0x24]
mov dword [esp + 0x14], ebx
fld dword [eax + 0x20]
fstp dword [esp + 0x20]
fld dword [eax + 0x28]
fstp dword [esp + 0x28]
fld dword [eax + 0x2c]
fstp dword [esp + 0x2c]
call fcn.10065ba0
test eax, eax
jne 0x1003d879
call fcn.10065b20
test eax, eax
mov dword [esp + 0x10], 7
je 0x1003d881
mov dword [esp + 0x10], 0x14
fld dword [esi + 4]
fstp dword [esp + 0x18]
fld dword [esi]
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fsub dword [esp + 0x24]
fld dword [esp + 0x1c]
fsub dword [esp + 0x20]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
call fcn.1007ab00
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fild dword [esp + 0x10]
fcompp
fnstsw ax
test ah, 5
jp 0x1003da24
fld dword [esi + 4]
sub esp, 0x10
fsub dword [esp + 0x34]
fstp dword [esp + 0x28]
fld dword [esi]
fsub dword [esp + 0x30]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp qword [esp + 8]
fld dword [esp + 0x28]
fstp qword [esp]
call fcn.10059120
fstp st(0)
add esp, 4
fld dword [esi + 8]
fstp dword [esp + 8]
fld dword [esi + 4]
fstp dword [esp + 4]
fld dword [esi]
fstp dword [esp]
call fcn.10066250
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call ebp
mov ebx, eax
mov eax, dword [edi + 4]
test eax, eax
jne 0x1003d960
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
mov dword [edi + 4], ebx
call fcn.10068285
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, ebx
sub edx, eax
cmp edx, dword [edi + 0x1c]
jbe 0x1003da13
lea esi, [edi + 8]
lea eax, [esp + 0x20]
mov ecx, esi
call fcn.10023f00
fld dword [edi + 0x20]
fcompp
fnstsw ax
test ah, 5
jp 0x1003d9bd
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [edi + 4], ebx
call fcn.10068285
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 2
cmp dword [edi + 0x24], esi
jge 0x1003d9e9
mov ecx, dword [0x1009a210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
add dword [edi + 0x24], 1
call fcn.10068285
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov dword [edi + 0x24], 0
call ebp
sub eax, dword [edi + 0x2c]
cmp eax, 0xbb8
jbe 0x1003da13
mov eax, 0x1221
call fcn.1003de70
test eax, eax
jne 0x1003da0e
mov dword [esp + 0x14], esi
call ebp
mov dword [edi + 0x2c], eax
call fcn.10068285
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, 1
mov dword [edi + 4], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret