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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x100c6040]
xor eax, esp
mov dword [esp + 0x5c], eax
cmp dword [0x1028ade8], 0
push esi
push edi
mov edi, ecx
movss dword [esp + 0x38], xmm1
mov edx, dword [edi + 0x1ec]
mov dword [esp + 0x10], edx
je 0x1003be51
mov ecx, dword [0x100c6bb0]
cmp ecx, 0xffffffff
jne 0x1003c185
xor eax, eax
mov esi, 0x855e678
mov dword [esp + 0xc], eax
nop
cmp byte [esi - 0x10c], 0
je 0x1003be3a
movss xmm1, dword [edx + 0x110]
movss xmm0, dword [edx + 0x114]
subss xmm0, dword [esi + 4]
subss xmm1, dword [esi]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x1003bd74
sqrtsd xmm0, xmm0
jmp 0x1003bd79
call fcn.100ad910
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x34], xmm0
movss xmm0, dword [edi + 0x110]
movaps xmm1, xmm0
movss dword [esp + 0x14], xmm0
movss xmm0, dword [edi + 0x114]
subss xmm1, dword [esi]
movss dword [esp + 0x30], xmm0
subss xmm0, dword [esi + 4]
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x1003bdc9
sqrtsd xmm0, xmm0
jmp 0x1003bdce
call fcn.100ad910
mov ecx, dword [esi - 0xd0]
mov eax, dword [0x10200d78]
sub ecx, 0x4e6
mov edx, dword [0x10200d7c]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x2c], xmm0
cmp eax, edx
je 0x1003be32
cmp dword [eax], ecx
je 0x1003be00
add eax, 4
cmp eax, edx
jne 0x1003bdf3
jmp 0x1003be32
cmp dword [0x100c6bb0], 0
jge 0x1003be32
movsd xmm1, qword [0x100bc810]
cvtss2sd xmm0, xmm0
comisd xmm1, xmm0
ja 0x1003c16b
movss xmm0, dword [0x100bcc54]
comiss xmm0, dword [esp + 0x34]
ja 0x1003bede
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
inc eax
add esi, 0x388
mov dword [esp + 0xc], eax
cmp esi, 0x863b1b8
jl 0x1003bd30
movss xmm7, dword [edx + 0x110]
movss xmm5, dword [edx + 0x114]
movaps xmm1, xmm7
movss xmm6, dword [edi + 0x110]
movaps xmm2, xmm5
comiss xmm7, xmm6
movss xmm3, dword [edi + 0x114]
subss xmm1, xmm6
subss xmm2, xmm3
movss dword [esp + 0x3c], xmm7
movss dword [esp + 0x34], xmm5
movss dword [esp + 0x18], xmm3
movaps xmm0, xmm1
movss dword [esp + 0x2c], xmm1
movaps xmm4, xmm2
mulss xmm0, xmm1
mulss xmm4, xmm2
movss dword [esp + 0x30], xmm2
addss xmm4, xmm0
movss dword [esp + 0x14], xmm4
ja 0x1003bec1
movaps xmm1, xmm6
subss xmm1, xmm7
comiss xmm5, xmm3
movss dword [esp + 0x20], xmm1
jbe 0x1003c1e9
movaps xmm0, xmm2
movss dword [esp + 0xc], xmm2
jmp 0x1003c1f6
movss xmm1, dword [esi]
xorps xmm3, xmm3
subss xmm1, dword [esp + 0x14]
movss xmm0, dword [esi + 4]
subss xmm0, dword [esp + 0x30]
movss xmm5, dword [0x100bd1a0]
comiss xmm3, xmm1
movss dword [esp + 0x38], xmm1
movaps xmm2, xmm1
movss dword [esp + 0x14], xmm0
jbe 0x1003bf15
xorps xmm2, xmm5
movss xmm4, dword [0x100bc5d0]
comiss xmm4, xmm2
jbe 0x1003bf3f
comiss xmm3, xmm0
movss xmm5, dword [0x100bcbb8]
jbe 0x1003bf37
xorps xmm1, xmm1
jmp 0x1003bfc1
movaps xmm1, xmm5
jmp 0x1003bfc1
comiss xmm3, xmm0
movaps xmm2, xmm0
jbe 0x1003bf4a
xorps xmm2, xmm5
comiss xmm4, xmm2
jbe 0x1003bf70
comiss xmm3, xmm1
movss xmm5, dword [0x100bcbb8]
jbe 0x1003bf66
movss xmm1, dword [0x100bcc30]
jmp 0x1003bfc1
movss xmm1, dword [0x100bcae0]
jmp 0x1003bfc1
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
call fcn.100ad000
xorps xmm1, xmm1
movss xmm5, dword [0x100bcbb8]
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x38]
xorps xmm3, xmm3
comiss xmm3, xmm0
divss xmm1, dword [0x100bc818]
movss xmm2, dword [esp + 0x14]
mulss xmm1, xmm5
addss xmm1, dword [0x100bcae0]
jbe 0x1003bfc1
comiss xmm2, xmm3
jae 0x1003bfbd
comiss xmm3, xmm2
jbe 0x1003bfc1
addss xmm1, xmm5
movss xmm4, dword [edi + 0x124]
comiss xmm3, xmm4
movss xmm7, dword [0x100bcc9c]
jbe 0x1003bfda
addss xmm4, xmm7
comiss xmm3, xmm1
jbe 0x1003bfe3
addss xmm1, xmm7
comiss xmm5, xmm4
movaps xmm2, xmm4
movaps xmm6, xmm4
addss xmm2, dword [0x100bc9e0]
subss xmm6, dword [0x100bc9e0]
jbe 0x1003c046
comiss xmm1, xmm2
jb 0x1003c00f
movaps xmm0, xmm4
addss xmm0, xmm5
comiss xmm0, xmm1
ja 0x1003c08c
comiss xmm6, xmm3
jb 0x1003c02a
movaps xmm0, xmm4
addss xmm0, xmm5
comiss xmm1, xmm0
jae 0x1003c025
comiss xmm6, xmm1
jbe 0x1003c02a
movaps xmm2, xmm6
jmp 0x1003c08c
comiss xmm3, xmm6
jbe 0x1003c089
addss xmm4, xmm5
comiss xmm1, xmm4
jb 0x1003c089
movaps xmm2, xmm6
addss xmm2, xmm7
comiss xmm2, xmm1
ja 0x1003c08c
jmp 0x1003c089
comiss xmm6, xmm1
jbe 0x1003c05c
movaps xmm0, xmm4
subss xmm0, xmm5
comiss xmm1, xmm0
jb 0x1003c05c
movaps xmm2, xmm6
jmp 0x1003c08c
comiss xmm7, xmm2
jbe 0x1003c072
movaps xmm0, xmm4
subss xmm0, xmm5
comiss xmm0, xmm1
ja 0x1003c08c
comiss xmm1, xmm2
jae 0x1003c08c
comiss xmm2, xmm7
jb 0x1003c089
subss xmm4, xmm5
comiss xmm4, xmm1
jbe 0x1003c089
subss xmm2, xmm7
comiss xmm1, xmm2
jae 0x1003c08c
movaps xmm2, xmm1
lea esi, [edi + 0x188]
movss dword [edi + 0x124], xmm2
lea eax, [edi + 0x11c]
push esi
push eax
mov eax, 0x8f8471
call eax
lea ecx, [esp + 0x58]
push ecx
lea eax, [edi + 0xbc]
push esi
push eax
mov eax, 0x8f8a0f
call eax
movss xmm0, dword [esp + 0x64]
add esp, 0x14
addss xmm0, dword [edi + 0x110]
movss xmm1, dword [esp + 0x2c]
movss dword [edi + 0x110], xmm0
movss xmm0, dword [esp + 0x54]
addss xmm0, dword [edi + 0x114]
movss dword [edi + 0x114], xmm0
movss xmm0, dword [esp + 0x58]
addss xmm0, dword [edi + 0x118]
movss dword [edi + 0x118], xmm0
movss xmm0, dword [0x100bca0c]
comiss xmm0, xmm1
jb 0x1003c11a
xorps xmm0, xmm0
jmp 0x1003c12e
cvtps2pd xmm0, xmm1
call fcn.100ad4b0
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x100bc6c8]
xorps xmm0, xmmword [0x100bd1a0]
mov eax, 2
mov dword [edi + 0xbc], 0
movss dword [edi + 0xc0], xmm0
mov dword [edi + 0xc4], 0
mov word [edi + 0x22], ax
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.1008c0ce
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
mov dword [0x100c6bb0], eax
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.1008c0ce
mov esp, ebp
pop ebp
ret
test ecx, ecx
js 0x1003be51
mov dword [esp + 0x19], 0
mov eax, ecx
mov dword [0x8531720], ecx
mov edx, 5
mov dword [0x118efa8], ecx
shr eax, 8
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x18]
mov word [esp + 0x18], 0x5c3
mov byte [esp + 0x1a], 0x22
mov byte [esp + 0x1b], al
call fcn.10084a30
xor eax, eax
mov dword [0x100c6bb0], 0xffffffff
mov word [edi + 0x22], ax
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.1008c0ce
mov esp, ebp
pop ebp
ret
movaps xmm0, xmm3
subss xmm0, xmm5
movss dword [esp + 0xc], xmm0
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
call fcn.100ad000
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x100bcbb8]
cvtss2sd xmm0, xmm0
divsd xmm0, qword [0x100bc740]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x20]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0xc]
fld qword [esp + 0x20]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
call fcn.100acff0
movsd xmm3, qword [0x100bc740]
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
cvtpd2ps xmm0, xmm0
movss xmm2, dword [esp + 0x38]
mulss xmm0, dword [0x100bcbb8]
movss xmm1, dword [esp + 0x14]
cvtps2pd xmm0, xmm0
divsd xmm0, xmm3
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x20], xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
comiss xmm1, xmm0
jb 0x1003c4ca
movaps xmm0, xmm2
addss xmm0, xmm2
mulss xmm0, xmm0
comiss xmm1, xmm0
jb 0x1003c2be
movss xmm0, dword [0x100bc9f4]
mov dword [edi + 0x8c], 0x3f63d70b
jmp 0x1003c2fc
movaps xmm0, xmm2
mulss xmm0, dword [0x100bc664]
addss xmm0, xmm2
mulss xmm0, xmm0
comiss xmm1, xmm0
jb 0x1003c2ea
movss xmm0, dword [0x100bc9ec]
mov dword [edi + 0x8c], 0x3f30a3d7
jmp 0x1003c2fc
movss xmm0, dword [0x100bc9e0]
mov dword [edi + 0x8c], 0x3ecccccd
movss xmm1, dword [esp + 0x40]
cvtps2pd xmm1, xmm1
movss dword [esp + 0xc], xmm0
mulsd xmm1, xmm3
divsd xmm1, qword [0x100bc8c0]
movaps xmm0, xmm1
movsd qword [esp + 0x50], xmm1
call fcn.100ad2f0
movss xmm2, dword [esp + 0xc]
cvtps2pd xmm1, xmm2
mulsd xmm0, xmm1
movsd qword [esp + 0x40], xmm0
movsd xmm0, qword [esp + 0x50]
call fcn.100ad740
movss xmm1, dword [esp + 0xc]
movaps xmm3, xmm0
movss xmm4, dword [edi + 0x110]
movss xmm2, dword [esp + 0x34]
cvtps2pd xmm0, xmm1
mulsd xmm3, xmm0
movss xmm0, dword [esp + 0x3c]
comiss xmm0, xmm4
jbe 0x1003c40f
movss xmm1, dword [edi + 0x114]
comiss xmm2, xmm1
jbe 0x1003c3b9
movsd xmm0, qword [esp + 0x40]
cvtpd2ps xmm0, xmm0
addss xmm0, xmm4
movss dword [edi + 0x110], xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm3
addss xmm0, xmm1
movss dword [edi + 0x114], xmm0
movss xmm0, dword [0x100bcbb8]
subss xmm0, dword [esp + 0x20]
jmp 0x1003c4b4
comiss xmm1, xmm2
jbe 0x1003c415
movsd xmm0, qword [esp + 0x40]
mov eax, 2
movss xmm1, dword [edi + 0x114]
cvtpd2ps xmm0, xmm0
mov word [edi + 0x22], ax
addss xmm0, dword [edi + 0x110]
movss dword [edi + 0x110], xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm3
subss xmm1, xmm0
movss dword [edi + 0x114], xmm1
movss xmm1, dword [esp + 0x20]
movss dword [edi + 0x124], xmm1
jmp 0x1003c596
movss xmm1, dword [esp + 0x18]
comiss xmm4, xmm0
jbe 0x1003c4bc
comiss xmm1, xmm2
jbe 0x1003c46c
movsd xmm0, qword [esp + 0x40]
movss xmm1, dword [edi + 0x110]
cvtpd2ps xmm0, xmm0
subss xmm1, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm3
movss dword [edi + 0x110], xmm1
movss xmm1, dword [edi + 0x114]
subss xmm1, xmm0
movss xmm0, dword [0x100bcc9c]
subss xmm0, dword [esp + 0x20]
movss dword [edi + 0x114], xmm1
jmp 0x1003c4b4
comiss xmm2, xmm1
jbe 0x1003c4bc
movsd xmm0, qword [esp + 0x40]
movss xmm1, dword [edi + 0x110]
cvtpd2ps xmm0, xmm0
subss xmm1, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm3
movss dword [edi + 0x110], xmm1
addss xmm0, dword [edi + 0x114]
movss dword [edi + 0x114], xmm0
movss xmm0, dword [esp + 0x20]
addss xmm0, dword [0x100bcbb8]
movss dword [edi + 0x124], xmm0
mov eax, 2
mov word [edi + 0x22], ax
jmp 0x1003c596
movss xmm0, dword [0x100bccd8]
comiss xmm0, xmm1
jbe 0x1003c552
mov esi, dword [esp + 0x10]
movzx eax, word [esi + 0x22]
cmp ax, 0xf
jl 0x1003c4ef
cmp ax, 0x25
jle 0x1003c59a
mov eax, 2
lea esi, [edi + 0x188]
mov word [edi + 0x12], ax
lea eax, [edi + 0x11c]
push esi
push eax
mov eax, 0x8f8471
call eax
lea eax, [esp + 0x48]
push eax
lea eax, [edi + 0xbc]
push esi
push eax
mov eax, 0x8f8a0f
call eax
movss xmm0, dword [esp + 0x54]
add esp, 0x14
addss xmm0, dword [edi + 0x110]
movss dword [edi + 0x110], xmm0
movss xmm0, dword [esp + 0x44]
addss xmm0, dword [edi + 0x114]
movss dword [edi + 0x114], xmm0
jmp 0x1003c596
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [0x10685780]
add ecx, 0x320
cmp eax, ecx
ja 0x1003c575
mov eax, 1
mov word [edi + 0x22], ax
jmp 0x1003c596
call esi
mov ecx, dword [0x10685780]
add ecx, 0x2ee0
cmp eax, ecx
ja 0x1003c58f
xor eax, eax
mov word [edi + 0x22], ax
jmp 0x1003c596
call esi
mov dword [0x10685780], eax
mov esi, dword [esp + 0x10]
movss xmm0, dword [esp + 0x14]
comiss xmm0, dword [0x100bccdc]
jb 0x1003c6c7
movss xmm1, dword [edi + 0x110]
movss xmm0, dword [esi + 0x110]
comiss xmm0, xmm1
jbe 0x1003c5f5
call fcn.10095461
cdq
mov ecx, 0x168
idiv ecx
movss xmm2, dword [esp + 0x2c]
movaps xmm1, xmm2
addss xmm1, dword [edi + 0x110]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
movss dword [edi + 0x110], xmm1
jmp 0x1003c5fb
movss xmm2, dword [esp + 0x2c]
comiss xmm1, dword [esi + 0x110]
jbe 0x1003c634
addss xmm2, xmm1
movss dword [esp + 0x2c], xmm2
call fcn.10095461
cdq
mov ecx, 0x168
idiv ecx
movss xmm1, dword [esp + 0x2c]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
movss dword [edi + 0x110], xmm1
movss xmm1, dword [edi + 0x114]
movss xmm0, dword [esi + 0x114]
comiss xmm0, xmm1
jbe 0x1003c67c
call fcn.10095461
cdq
mov ecx, 0x168
idiv ecx
movss xmm2, dword [esp + 0x30]
movaps xmm1, xmm2
addss xmm1, dword [edi + 0x114]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
movss dword [edi + 0x114], xmm1
jmp 0x1003c682
movss xmm2, dword [esp + 0x30]
movss xmm0, dword [esi + 0x114]
addss xmm0, dword [0x100bcc24]
comiss xmm1, xmm0
jbe 0x1003c6c7
addss xmm2, xmm1
movss dword [esp + 0x30], xmm2
call fcn.10095461
cdq
mov ecx, 0x168
idiv ecx
movss xmm1, dword [esp + 0x30]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
movss dword [edi + 0x114], xmm1
mov eax, dword [esi + 0x118]
mov dword [edi + 0x118], eax
call fcn.10095461
cdq
mov ecx, 0x64
idiv ecx
test edx, edx
jne 0x1003c79c
movss xmm1, dword [esp + 0x38]
mulss xmm1, xmm1
comiss xmm1, dword [esp + 0x14]
jbe 0x1003c72e
call fcn.10095461
mov esi, eax
and esi, 0x8000003f
jns 0x1003c70d
dec esi
or esi, 0xffffffc0
inc esi
add esi, 0x10
call fcn.10095461
cdq
mov ecx, 0x168
idiv ecx
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x124], xmm0
jmp 0x1003c745
call fcn.10095461
mov esi, eax
and esi, 0x8000003f
jns 0x1003c742
dec esi
or esi, 0xffffffc0
inc esi
sub esi, 0xffffff80
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [edi + 0xbc], 0
xorps xmm0, xmmword [0x100bd1a0]
mulss xmm0, dword [0x100bc638]
movss dword [edi + 0xc0], xmm0
call fcn.10095461
and eax, 0x8000003f
jns 0x1003c77e
dec eax
or eax, 0xffffffc0
inc eax
mov esi, dword [esp + 0x10]
sub eax, 0x20
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100bc638]
movss dword [edi + 0xc4], xmm0
movss xmm0, dword [esi + 0x118]
addss xmm0, dword [0x100bcb00]
movss xmm2, dword [edi + 0x118]
movss xmm1, dword [0x100bc6c8]
comiss xmm0, xmm2
jbe 0x1003c7d5
movss xmm0, dword [edi + 0xc4]
addss xmm0, xmm1
movss dword [edi + 0xc4], xmm0
movss xmm0, dword [esi + 0x118]
addss xmm0, dword [0x100bcbd8]
comiss xmm2, xmm0
jbe 0x1003c7fe
movss xmm0, dword [edi + 0xc4]
subss xmm0, xmm1
movss dword [edi + 0xc4], xmm0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.1008c0ce
mov esp, ebp
pop ebp
ret