Function at 0x10046170
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x100ef018]
xor eax, esp
mov dword [esp + 0x5c], eax
cmp dword [0x102bc2d8], 0
push esi
push edi
mov edi, ecx
movss dword [esp + 0x38], xmm1
mov edx, dword [edi + 0x1d8]
mov dword [esp + 0x10], edx
je 0x100462f2
mov ecx, dword [0x100efbd8]
cmp ecx, 0xffffffff
jne 0x10046605
xor eax, eax
mov esi, 0x81f6c7c
mov dword [esp + 0xc], eax
nop
cmp byte [esi - 8], 0
je 0x100462db
cmp byte [esi], 0
je 0x100462db
movss xmm1, dword [edx + 0xfc]
movss xmm0, dword [edx + 0x100]
subss xmm0, dword [esi + 0xf4]
subss xmm1, dword [esi + 0xf0]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x10046211
sqrtsd xmm0, xmm0
jmp 0x10046216
call fcn.100d6f20
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [edi + 0xfc]
movaps xmm1, xmm0
movss dword [esp + 0x34], xmm0
movss xmm0, dword [edi + 0x100]
subss xmm1, dword [esi + 0xf0]
movss dword [esp + 0x14], xmm0
subss xmm0, dword [esi + 0xf4]
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x1004626d
sqrtsd xmm0, xmm0
jmp 0x10046272
call fcn.100d6f20
mov ecx, dword [esi + 0x24]
mov eax, dword [0x1023b708]
sub ecx, 0x493
mov edx, dword [0x1023b70c]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x28], xmm0
cmp eax, edx
je 0x100462d3
cmp dword [eax], ecx
je 0x100462a1
add eax, 4
cmp eax, edx
jne 0x10046294
jmp 0x100462d3
cmp dword [0x100efbd8], 0
jge 0x100462d3
movsd xmm1, qword [0x100e7138]
cvtss2sd xmm0, xmm0
comisd xmm1, xmm0
ja 0x100465eb
movss xmm0, dword [0x100e7720]
comiss xmm0, dword [esp + 0x2c]
ja 0x10046373
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
inc eax
add esi, 0x350
mov dword [esp + 0xc], eax
cmp esi, 0x82c5cfc
jl 0x100461c0
movss xmm7, dword [edx + 0xfc]
movss xmm5, dword [edx + 0x100]
movaps xmm4, xmm7
movss xmm2, dword [edi + 0xfc]
movaps xmm3, xmm5
comiss xmm7, xmm2
movss xmm1, dword [edi + 0x100]
subss xmm4, xmm2
subss xmm3, xmm1
movss dword [esp + 0x18], xmm7
movss dword [esp + 0x2c], xmm5
movss dword [esp + 0x3c], xmm2
movss dword [esp + 0x34], xmm1
movaps xmm0, xmm4
movss dword [esp + 0x30], xmm4
movaps xmm6, xmm3
mulss xmm0, xmm4
mulss xmm6, xmm3
movss dword [esp + 0x28], xmm3
addss xmm6, xmm0
movss dword [esp + 0x14], xmm6
jbe 0x10046669
movaps xmm2, xmm4
movss dword [esp + 0x20], xmm4
jmp 0x10046673
movss xmm1, dword [esi + 0xf0]
xorps xmm3, xmm3
subss xmm1, dword [esp + 0x34]
movss xmm0, dword [esi + 0xf4]
subss xmm0, dword [esp + 0x14]
movss xmm5, dword [0x100e7d90]
comiss xmm3, xmm1
movss dword [esp + 0x2c], xmm1
movaps xmm2, xmm1
movss dword [esp + 0x14], xmm0
jbe 0x100463b1
xorps xmm2, xmm5
movss xmm4, dword [0x100e6c60]
comiss xmm4, xmm2
jbe 0x100463db
comiss xmm3, xmm0
movss xmm6, dword [0x100e761c]
jbe 0x100463d3
xorps xmm1, xmm1
jmp 0x1004645d
movaps xmm1, xmm6
jmp 0x1004645d
comiss xmm3, xmm0
movaps xmm2, xmm0
jbe 0x100463e6
xorps xmm2, xmm5
comiss xmm4, xmm2
jbe 0x1004640c
comiss xmm3, xmm1
movss xmm6, dword [0x100e761c]
jbe 0x10046402
movss xmm1, dword [0x100e76dc]
jmp 0x1004645d
movss xmm1, dword [0x100e7504]
jmp 0x1004645d
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
call fcn.100d6610
xorps xmm1, xmm1
movss xmm6, dword [0x100e761c]
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x2c]
xorps xmm3, xmm3
comiss xmm3, xmm0
divss xmm1, dword [0x100e7140]
movss xmm2, dword [esp + 0x14]
mulss xmm1, xmm6
addss xmm1, dword [0x100e7504]
jbe 0x1004645d
comiss xmm2, xmm3
jae 0x10046459
comiss xmm3, xmm2
jbe 0x1004645d
addss xmm1, xmm6
movss xmm4, dword [edi + 0x110]
comiss xmm3, xmm4
movss xmm7, dword [0x100e777c]
jbe 0x10046476
addss xmm4, xmm7
comiss xmm3, xmm1
jbe 0x1004647f
addss xmm1, xmm7
comiss xmm6, xmm4
movaps xmm2, xmm4
movaps xmm5, xmm4
addss xmm2, dword [0x100e73c4]
subss xmm5, dword [0x100e73c4]
jbe 0x100464d4
comiss xmm1, xmm2
addss xmm4, xmm6
jb 0x100464a8
comiss xmm4, xmm1
ja 0x1004650c
comiss xmm5, xmm3
jb 0x100464bc
comiss xmm1, xmm4
jae 0x100464b7
comiss xmm5, xmm1
jbe 0x100464bc
movaps xmm2, xmm5
jmp 0x1004650c
comiss xmm3, xmm5
jbe 0x10046509
comiss xmm1, xmm4
jb 0x10046509
movaps xmm2, xmm5
addss xmm2, xmm7
comiss xmm2, xmm1
ja 0x1004650c
jmp 0x10046509
comiss xmm5, xmm1
subss xmm4, xmm6
jbe 0x100464e7
comiss xmm1, xmm4
jb 0x100464e7
movaps xmm2, xmm5
jmp 0x1004650c
comiss xmm7, xmm2
jbe 0x100464f6
comiss xmm4, xmm1
ja 0x1004650c
comiss xmm1, xmm2
jae 0x1004650c
comiss xmm2, xmm7
jb 0x10046509
comiss xmm4, xmm1
jbe 0x10046509
subss xmm2, xmm7
comiss xmm1, xmm2
jae 0x1004650c
movaps xmm2, xmm1
lea esi, [edi + 0x174]
movss dword [edi + 0x110], xmm2
lea eax, [edi + 0x108]
push esi
push eax
mov eax, 0x959ce0
call eax
lea ecx, [esp + 0x58]
push ecx
lea eax, [edi + 0xa8]
push esi
push eax
mov eax, 0x95a1e0
call eax
movss xmm0, dword [esp + 0x64]
add esp, 0x14
addss xmm0, dword [edi + 0xfc]
movss xmm1, dword [esp + 0x28]
movss dword [edi + 0xfc], xmm0
movss xmm0, dword [esp + 0x54]
addss xmm0, dword [edi + 0x100]
movss dword [edi + 0x100], xmm0
movss xmm0, dword [esp + 0x58]
addss xmm0, dword [edi + 0x104]
movss dword [edi + 0x104], xmm0
movss xmm0, dword [0x100e7400]
comiss xmm0, xmm1
jb 0x1004659a
xorps xmm0, xmm0
jmp 0x100465ae
cvtps2pd xmm0, xmm1
call fcn.100d6ac0
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x100e6ef0]
xorps xmm0, xmmword [0x100e7d90]
mov eax, 2
mov dword [edi + 0xa8], 0
movss dword [edi + 0xac], xmm0
mov dword [edi + 0xb0], 0
mov word [edi + 0x12], ax
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.100b7755
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
mov dword [0x100efbd8], eax
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.100b7755
mov esp, ebp
pop ebp
ret
test ecx, ecx
js 0x100462f2
mov dword [esp + 0x19], 0
mov eax, ecx
mov dword [0x81c0420], ecx
mov edx, 5
mov dword [0xe61fc8], 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.100aba10
xor eax, eax
mov dword [0x100efbd8], 0xffffffff
mov word [edi + 0x12], ax
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.100b7755
mov esp, ebp
pop ebp
ret
subss xmm2, xmm7
movss dword [esp + 0x20], xmm2
comiss xmm5, xmm1
jbe 0x10046683
movaps xmm0, xmm3
movss dword [esp + 0xc], xmm3
jmp 0x10046690
movaps xmm0, xmm1
subss xmm0, xmm5
movss dword [esp + 0xc], xmm0
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
call fcn.100d6610
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x100e761c]
cvtss2sd xmm0, xmm0
divsd xmm0, qword [0x100e6ff8]
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.100d6600
movsd xmm2, qword [0x100e6ff8]
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
cvtpd2ps xmm0, xmm0
movss xmm3, dword [esp + 0x38]
mulss xmm0, dword [0x100e761c]
movss xmm1, dword [esp + 0x14]
cvtps2pd xmm0, xmm0
divsd xmm0, xmm2
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x20], xmm0
movaps xmm0, xmm3
mulss xmm0, xmm3
comiss xmm1, xmm0
movss dword [esp + 0x38], xmm0
jb 0x10046923
movaps xmm0, xmm3
addss xmm0, xmm3
mulss xmm0, xmm0
comiss xmm1, xmm0
jb 0x1004675b
movss xmm0, dword [0x100e73e4]
mov dword [edi + 0x78], 0x3f63d70b
jmp 0x10046793
movaps xmm0, xmm3
mulss xmm0, dword [0x100e6d4c]
addss xmm0, xmm3
mulss xmm0, xmm0
comiss xmm1, xmm0
jb 0x10046784
movss xmm0, dword [0x100e73d4]
mov dword [edi + 0x78], 0x3f30a3d7
jmp 0x10046793
movss xmm0, dword [0x100e73c4]
mov dword [edi + 0x78], 0x3ecccccd
movss xmm1, dword [esp + 0x40]
cvtps2pd xmm1, xmm1
movss dword [esp + 0xc], xmm0
mulsd xmm1, xmm2
divsd xmm1, qword [0x100e7248]
movaps xmm0, xmm1
movsd qword [esp + 0x50], xmm1
call fcn.100d6900
movss xmm2, dword [esp + 0xc]
cvtps2pd xmm1, xmm2
mulsd xmm0, xmm1
movsd qword [esp + 0x40], xmm0
movsd xmm0, qword [esp + 0x50]
call fcn.100d6d50
movss xmm1, dword [esp + 0xc]
movaps xmm4, xmm0
movss xmm2, dword [esp + 0x3c]
movss xmm3, dword [esp + 0x2c]
cvtps2pd xmm0, xmm1
movss xmm1, dword [esp + 0x34]
mulsd xmm4, xmm0
movss xmm0, dword [esp + 0x18]
comiss xmm0, xmm2
jbe 0x10046896
comiss xmm3, xmm1
jbe 0x1004684c
movsd xmm0, qword [esp + 0x40]
cvtpd2ps xmm0, xmm0
addss xmm0, xmm2
movss dword [edi + 0xfc], xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm4
addss xmm0, xmm1
movss dword [edi + 0x100], xmm0
movss xmm0, dword [0x100e761c]
subss xmm0, dword [esp + 0x20]
jmp 0x1004690d
comiss xmm1, xmm3
jbe 0x10046896
movsd xmm0, qword [esp + 0x40]
mov eax, 2
cvtpd2ps xmm0, xmm0
mov word [edi + 0x12], ax
addss xmm0, xmm2
movss dword [edi + 0xfc], xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm4
subss xmm1, xmm0
movss dword [edi + 0x100], xmm1
movss xmm1, dword [esp + 0x20]
movss dword [edi + 0x110], xmm1
jmp 0x100469ef
comiss xmm2, xmm0
jbe 0x10046915
comiss xmm1, xmm3
jbe 0x100468d1
movsd xmm0, qword [esp + 0x40]
cvtpd2ps xmm0, xmm0
subss xmm2, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm4
subss xmm1, xmm0
movss xmm0, dword [0x100e777c]
subss xmm0, dword [esp + 0x20]
movss dword [edi + 0x100], xmm1
jmp 0x10046905
comiss xmm3, xmm1
jbe 0x10046915
movsd xmm0, qword [esp + 0x40]
cvtpd2ps xmm0, xmm0
subss xmm2, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm4
addss xmm0, xmm1
movss dword [edi + 0x100], xmm0
movss xmm0, dword [esp + 0x20]
addss xmm0, dword [0x100e761c]
movss dword [edi + 0xfc], xmm2
movss dword [edi + 0x110], xmm0
mov eax, 2
mov word [edi + 0x12], ax
jmp 0x100469ef
movss xmm0, dword [0x100e7868]
comiss xmm0, xmm1
jbe 0x100469ab
mov esi, dword [esp + 0x10]
movzx eax, word [esi + 0x12]
cmp ax, 0xf
jl 0x10046948
cmp ax, 0x25
jle 0x100469f3
mov eax, 2
lea esi, [edi + 0x174]
mov word [edi + 0x12], ax
lea eax, [edi + 0x108]
push esi
push eax
mov eax, 0x959ce0
call eax
lea eax, [esp + 0x48]
push eax
lea eax, [edi + 0xa8]
push esi
push eax
mov eax, 0x95a1e0
call eax
movss xmm0, dword [esp + 0x54]
add esp, 0x14
addss xmm0, dword [edi + 0xfc]
movss dword [edi + 0xfc], xmm0
movss xmm0, dword [esp + 0x44]
addss xmm0, dword [edi + 0x100]
movss dword [edi + 0x100], xmm0
jmp 0x100469ef
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [0x1087c0d0]
add ecx, 0x320
cmp eax, ecx
ja 0x100469ce
mov eax, 1
mov word [edi + 0x12], ax
jmp 0x100469ef
call esi
mov ecx, dword [0x1087c0d0]
add ecx, 0x2ee0
cmp eax, ecx
ja 0x100469e8
xor eax, eax
mov word [edi + 0x12], ax
jmp 0x100469ef
call esi
mov dword [0x1087c0d0], eax
mov esi, dword [esp + 0x10]
movss xmm0, dword [esp + 0x14]
comiss xmm0, dword [0x100e7870]
jb 0x10046b24
movss xmm1, dword [edi + 0xfc]
movss xmm0, dword [esi + 0xfc]
comiss xmm0, xmm1
jbe 0x10046a56
call fcn.100bf2cc
cdq
mov ecx, 0x168
idiv ecx
movss xmm2, dword [esp + 0x30]
movaps xmm1, xmm2
addss xmm1, dword [edi + 0xfc]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
movss dword [edi + 0xfc], xmm1
movss xmm0, dword [esi + 0xfc]
jmp 0x10046a5c
movss xmm2, dword [esp + 0x30]
comiss xmm1, xmm0
jbe 0x10046a91
addss xmm2, xmm1
movss dword [esp + 0x30], xmm2
call fcn.100bf2cc
cdq
mov ecx, 0x168
idiv ecx
movss xmm1, dword [esp + 0x30]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
movss dword [edi + 0xfc], xmm1
movss xmm1, dword [edi + 0x100]
movss xmm0, dword [esi + 0x100]
comiss xmm0, xmm1
jbe 0x10046ae1
call fcn.100bf2cc
cdq
mov ecx, 0x168
idiv ecx
movss xmm2, dword [esp + 0x28]
movaps xmm1, xmm2
addss xmm1, dword [edi + 0x100]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
movss dword [edi + 0x100], xmm1
movss xmm0, dword [esi + 0x100]
jmp 0x10046ae7
movss xmm2, dword [esp + 0x28]
addss xmm0, dword [0x100e76c0]
comiss xmm1, xmm0
jbe 0x10046b24
addss xmm2, xmm1
movss dword [esp + 0x28], xmm2
call fcn.100bf2cc
cdq
mov ecx, 0x168
idiv ecx
movss xmm1, dword [esp + 0x28]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
movss dword [edi + 0x100], xmm1
mov eax, dword [esi + 0x104]
mov dword [edi + 0x104], eax
call fcn.100bf2cc
cdq
mov ecx, 0x64
idiv ecx
test edx, edx
jne 0x10046bf2
movss xmm0, dword [esp + 0x38]
comiss xmm0, dword [esp + 0x14]
jbe 0x10046b84
call fcn.100bf2cc
and eax, 0x8000003f
jns 0x10046b63
dec eax
or eax, 0xffffffc0
inc eax
lea esi, [eax + 0x10]
call fcn.100bf2cc
cdq
mov ecx, 0x168
idiv ecx
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x110], xmm0
jmp 0x10046b9b
call fcn.100bf2cc
mov esi, eax
and esi, 0x8000003f
jns 0x10046b98
dec esi
or esi, 0xffffffc0
inc esi
sub esi, 0xffffff80
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [edi + 0xa8], 0
xorps xmm0, xmmword [0x100e7d90]
mulss xmm0, dword [0x100e6d1c]
movss dword [edi + 0xac], xmm0
call fcn.100bf2cc
and eax, 0x8000003f
jns 0x10046bd4
dec eax
or eax, 0xffffffc0
inc eax
mov esi, dword [esp + 0x10]
sub eax, 0x20
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100e6d1c]
movss dword [edi + 0xb0], xmm0
movss xmm1, dword [esi + 0x104]
movss xmm3, dword [edi + 0x104]
movaps xmm0, xmm1
addss xmm0, dword [0x100e752c]
movss xmm2, dword [0x100e6ef0]
comiss xmm0, xmm3
jbe 0x10046c36
movss xmm0, dword [edi + 0xb0]
addss xmm0, xmm2
movss dword [edi + 0xb0], xmm0
movss xmm1, dword [esi + 0x104]
addss xmm1, dword [0x100e7648]
comiss xmm3, xmm1
jbe 0x10046c57
movss xmm0, dword [edi + 0xb0]
subss xmm0, xmm2
movss dword [edi + 0xb0], xmm0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.100b7755
mov esp, ebp
pop ebp
ret