Function at 0x100473d0
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 + 0x34]
xor ebp, ebp
fstp dword [esp + 0x38]
fld dword [eax + 0x30]
fstp dword [esp + 0x34]
fld dword [eax + 0x38]
fstp dword [esp + 0x3c]
fld dword [eax + 0x3c]
fstp dword [esp + 0x40]
call fcn.1007f280
test eax, eax
jne 0x1004740b
call fcn.1007f200
test eax, eax
je 0x10047413
mov dword [esp + 0x5c], 7
lea esi, [esp + 0x10]
call fcn.1007cda0
fld dword [0x100a98e8]
fstp dword [esp + 0x24]
lea eax, [esp + 0x20]
fld dword [0x100a98e4]
mov ecx, esi
fstp dword [esp + 0x20]
fld dword [0x100a98e0]
fstp dword [esp + 0x28]
call fcn.10003a50
fcomp qword [0x100a9840]
fnstsw ax
test ah, 5
jp 0x10047475
call fcn.10047710
mov eax, dword [edi]
fld dword [eax + 0x34]
fstp dword [esp + 0x38]
fld dword [eax + 0x30]
fstp dword [esp + 0x34]
fld dword [eax + 0x38]
fstp dword [esp + 0x3c]
fld dword [eax + 0x3c]
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.10094530
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fild dword [esp + 0x5c]
fcompp
fnstsw ax
test ah, 5
jp 0x100476d8
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.1006ddc0
mov esi, dword [esp + 0x68]
fstp dword [esp + 0x6c]
mov eax, esi
and eax, 0xf
add esp, 0x10
cmp eax, 1
jne 0x1004755c
fld dword [0x100a982c]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x4c]
fstp dword [esp + 4]
fld dword [esp + 0x68]
fstp dword [esp]
call fcn.100218b0
add esp, 0xc
test eax, eax
jne 0x1004754f
and esi, 0xf0000
cmp esi, 0x10000
je 0x1004753a
mov ecx, dword [0x100bb2cc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
mov ecx, dword [0x100bb2cc]
fld dword [esp + 0x5c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x44]
push ecx
fstp dword [esp]
call edx
mov ecx, dword [0x100bb2cc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
jmp 0x100475d2
cmp eax, 2
jne 0x100475d4
fld dword [esp + 0x5c]
sub esp, 0xc
fadd qword [0x100a5f10]
fstp dword [esp + 0x68]
fld dword [0x100a982c]
fstp dword [esp + 8]
fld dword [esp + 0x4c]
fstp dword [esp + 4]
fld dword [esp + 0x68]
fstp dword [esp]
call fcn.100218b0
add esp, 0xc
test eax, eax
jne 0x100475c7
and esi, 0xf0000
cmp esi, 0x10000
je 0x100475b2
mov ecx, dword [0x100bb2cc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
mov ecx, dword [0x100bb2cc]
fld dword [esp + 0x5c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x44]
push ecx
fstp dword [esp]
call edx
mov ecx, dword [0x100bb2cc]
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 0x10047615
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 0x10047609
lea esi, [edi + 8]
lea eax, [esp + 0x34]
mov ecx, esi
call fcn.10003a50
fld dword [edi + 0x20]
fcompp
fnstsw ax
test ah, 5
jp 0x10047669
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 0x10047688
call fcn.10047180
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 0x1004760b
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [edi + 0x2c]
cmp eax, 0xbb8
jbe 0x10047609
mov eax, ebx
call fcn.10047800
test eax, eax
jne 0x100476c7
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 0x100476ef
mov ecx, dword [0x100bb2cc]
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