Function at 0x1003c570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x108
mov eax, dword [0x100af380]
xor eax, esp
mov dword [esp + 0x104], eax
dec dword [0x100b0fb0]
mov ecx, dword [0x100b06f0]
push esi
push edi
mov dword [esp + 0x68], ecx
mov eax, dword [ecx + 0x1b94]
mov byte [eax + 0x8c], 1
mov eax, dword [ecx + 0x1b94]
mov edi, dword [eax + 0x288]
mov eax, dword [edi + 0x2c]
movss xmm0, dword [eax + 0x20]
movss xmm2, dword [eax + 0x18]
comiss xmm2, xmm0
movss xmm3, dword [eax + 0x24]
movss xmm1, dword [eax + 0x1c]
movss dword [esp + 0x80], xmm2
movss dword [esp + 0x84], xmm1
movss dword [esp + 0x88], xmm0
movss dword [esp + 0x8c], xmm3
jb 0x1003c5fe
movss dword [esp + 0x88], xmm2
comiss xmm1, xmm3
jb 0x1003c60c
movss dword [esp + 0x8c], xmm1
mov ecx, dword [edi + 0x40]
lea edx, [edi + 0x3c]
mov esi, dword [edx]
cmp esi, ecx
jne 0x1003c640
inc esi
test ecx, ecx
je 0x1003c62b
mov eax, ecx
cdq
sub eax, edx
lea edx, [edi + 0x3c]
sar eax, 1
add eax, ecx
jmp 0x1003c630
mov eax, 8
cmp eax, esi
mov ecx, edx
cmovg esi, eax
push esi
call fcn.100262e0
lea edx, [edi + 0x3c]
mov eax, dword [edx]
mov ecx, dword [edx + 8]
add eax, eax
movaps xmm0, xmmword [esp + 0x80]
movups xmmword [ecx + eax*8], xmm0
inc dword [edx]
mov ecx, edi
movups xmmword [edi + 0x60], xmm0
call fcn.1001ef60
cmp dword [0x100b0fb4], 0
mov eax, dword [0x100b06f0]
movss xmm5, dword [0x100b0fbc]
movss xmm4, dword [0x100b0fc0]
movss dword [esp + 0x40], xmm5
movss xmm1, dword [eax + 0xe4]
movss xmm2, dword [eax + 0xe8]
subss xmm1, xmm5
subss xmm2, xmm4
movss dword [esp + 0x44], xmm4
mov byte [esp + 0x17], 0
mov dword [esp + 0xac], 0
movss dword [esp + 0x48], xmm5
movaps xmm0, xmm1
movss dword [esp + 0x4c], xmm4
movaps xmm3, xmm2
mulss xmm0, xmm1
mulss xmm3, xmm2
addss xmm3, xmm0
movss xmm0, dword [0x100a4c3c]
movss dword [esp + 0x78], xmm0
movss xmm0, dword [0x100a4c94]
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0xa8], xmm3
jl 0x1003d239
cvtps2pd xmm0, xmm2
movsd qword [esp + 0x80], xmm0
fld qword [esp + 0x80]
cvtps2pd xmm0, xmm1
movsd qword [esp + 0x80], xmm0
fld qword [esp + 0x80]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
movss xmm0, dword [esp + 0x40]
mov edx, 0x100b0720
movss xmm2, dword [esp + 0x44]
fstp dword [esp + 0xd4]
mov dword [esp + 0x7c], 3
mov dword [esp + 0x24], edx
movss dword [esp + 0x48], xmm0
movss dword [esp + 0x4c], xmm2
movss xmm0, dword [edx - 0xc]
xorps xmm1, xmm1
mov esi, dword [edx - 0x10]
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x1003c76e
sqrtsd xmm0, xmm0
jmp 0x1003c773
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cmp dword [esp + 0x7c], esi
mov eax, esi
movss xmm7, dword [0x100a4c1c]
xorps xmm3, xmm3
cmovge eax, dword [esp + 0x7c]
movaps xmm4, xmm7
cvtsd2ss xmm3, xmm0
xor ecx, ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x6c], ecx
movss xmm5, dword [0x100a4b74]
movd xmm0, eax
movss xmm6, dword [esp + 0x78]
movd xmm1, esi
movss xmm2, dword [esp + 0xd4]
movss dword [esp + 0x38], xmm2
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
divss xmm4, xmm0
movss xmm0, dword [esp + 0x2c]
mulss xmm3, xmm1
mov dword [esp + 0x2c], 0xffffffff
movss dword [esp + 0x3c], xmm4
subss xmm1, dword [0x100a4bb4]
mulss xmm3, xmm5
mulss xmm1, xmm4
addss xmm3, xmm6
mulss xmm1, xmm5
movss dword [esp + 0x28], xmm3
subss xmm0, xmm1
movaps xmm1, xmm0
movss dword [esp + 0x20], xmm1
test esi, esi
jle 0x1003d1c6
movaps xmm0, xmm6
mov esi, 1
addss xmm0, xmm6
movss dword [esp + 0xd8], xmm0
movaps xmm0, xmm3
addss xmm0, xmm3
movss dword [esp + 0xdc], xmm0
movaps xmm0, xmm6
mulss xmm0, xmm6
movss dword [esp + 0xc0], xmm0
movaps xmm0, xmm4
mulss xmm0, dword [0x100a4c98]
divss xmm0, xmm7
cvttss2si eax, xmm0
movaps xmm0, xmm3
sub esi, eax
addss xmm0, xmm6
lea eax, [edx + 0xa4]
mov dword [esp + 0x30], esi
mov dword [esp + 0x70], eax
lea eax, [edx + 0x1c]
mov dword [esp + 0x74], eax
lea edx, [esi + esi*2]
add edx, edx
movss dword [esp + 0x9c], xmm0
movaps xmm0, xmmword [0x100a4db0]
mov dword [esp + 0xc4], edx
mov edx, dword [esp + 0x24]
movups xmmword [esp + 0xe0], xmm0
jmp 0x1003c8a8
mov esi, dword [esp + 0x30]
mov eax, dword [eax]
xorps xmm6, xmm6
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x68]
cvtsi2ss xmm6, ecx
mov byte [esp + 0x16], 0
movss xmm1, dword [eax + 0x1568]
movaps xmm0, xmm1
movss dword [esp + 0x1c], xmm6
divss xmm1, dword [esp + 0xdc]
divss xmm0, dword [esp + 0xd8]
movaps xmm4, xmm6
addss xmm6, xmm5
subss xmm4, xmm5
movaps xmm5, xmm6
subss xmm6, xmm1
movaps xmm3, xmm4
subss xmm5, xmm0
addss xmm4, xmm1
xorps xmm1, xmm1
addss xmm3, xmm0
movss xmm0, dword [esp + 0x3c]
mulss xmm6, xmm0
mulss xmm4, xmm0
mulss xmm3, dword [esp + 0x3c]
addss xmm4, dword [esp + 0x20]
addss xmm6, dword [esp + 0x20]
addss xmm3, dword [esp + 0x20]
mulss xmm5, xmm0
movss dword [esp + 0xa4], xmm4
movss xmm4, dword [esp + 0xa8]
comiss xmm4, dword [esp + 0xc0]
addss xmm5, dword [esp + 0x20]
movss dword [esp + 0x98], xmm3
movss dword [esp + 0x34], xmm5
jb 0x1003c9e3
movss xmm0, dword [esp + 0x28]
mulss xmm0, xmm0
comiss xmm0, xmm4
jbe 0x1003c9e3
movaps xmm0, xmm2
subss xmm0, xmm3
comiss xmm1, xmm0
jbe 0x1003c998
addss xmm2, xmm7
movaps xmm0, xmm2
subss xmm0, xmm3
comiss xmm1, xmm0
ja 0x1003c982
movss dword [esp + 0x38], xmm2
movaps xmm0, xmm2
subss xmm0, xmm3
comiss xmm0, xmm7
jbe 0x1003c9ba
subss xmm2, xmm7
movaps xmm0, xmm2
subss xmm0, xmm3
comiss xmm0, xmm7
ja 0x1003c9a4
movss dword [esp + 0x38], xmm2
comiss xmm2, xmm3
jb 0x1003c9e3
comiss xmm5, xmm2
jbe 0x1003c9e3
cmp byte [edx + ecx + 8], 0
movss xmm7, dword [0x100a4ba4]
mov byte [esp + 0x16], 1
sete byte [esp + 0x17]
movss dword [esp + 0x38], xmm2
jmp 0x1003c9eb
movss xmm7, dword [0x100a4b90]
movaps xmm4, xmm1
movaps xmm5, xmm1
comiss xmm1, xmm4
jbe 0x1003c9fb
movaps xmm0, xmm1
jmp 0x1003ca07
movss xmm0, dword [0x100a4bb4]
minss xmm0, xmm4
mulss xmm0, dword [0x100a4c60]
movss xmm2, dword [0x100a4b74]
movss xmm4, dword [0x100a4bb4]
addss xmm0, xmm2
cvttss2si ecx, xmm0
shl ecx, 8
comiss xmm1, xmm5
jbe 0x1003ca34
movaps xmm0, xmm1
jmp 0x1003ca3b
movaps xmm0, xmm4
minss xmm0, xmm5
movss xmm5, dword [0x100a4c60]
mulss xmm0, xmm5
addss xmm0, xmm2
cvttss2si eax, xmm0
shl eax, 0x10
or ecx, eax
comiss xmm1, xmm7
ja 0x1003ca60
movaps xmm1, xmm4
minss xmm1, xmm7
movss xmm0, dword [esp + 0x34]
subss xmm6, dword [esp + 0xa4]
mulss xmm1, xmm5
subss xmm0, xmm3
addss xmm1, xmm2
cvttss2si eax, xmm1
movd xmm1, esi
cvtdq2ps xmm1, xmm1
shl eax, 0x18
or eax, ecx
mov ecx, edi
mov dword [esp + 0xb8], eax
lea eax, [esi*2 + 2]
push eax
push dword [esp + 0xc8]
divss xmm0, xmm1
divss xmm6, xmm1
movss dword [esp + 0xd0], xmm0
movss dword [esp + 0xd4], xmm6
call fcn.1001f140
xor esi, esi
cmp dword [esp + 0x30], esi
jl 0x1003ccd2
movzx eax, word [edi + 0x28]
mov dword [esp + 0xbc], eax
nop dword [eax]
xorps xmm1, xmm1
cvtsi2ss xmm1, esi
movaps xmm0, xmm1
movss dword [esp + 0x18], xmm1
mulss xmm0, dword [esp + 0xc8]
addss xmm0, dword [esp + 0x98]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x50], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
cvtsd2ss xmm0, xmm0
movss dword [esp + 0xd0], xmm0
movsd xmm0, qword [esp + 0x50]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cvtsd2ss xmm0, xmm0
movss dword [esp + 0xb0], xmm0
movss xmm0, dword [esp + 0x18]
mulss xmm0, dword [esp + 0xcc]
addss xmm0, dword [esp + 0xa4]
movss dword [esp + 0x18], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x18]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x50], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
cmp esi, dword [esp + 0x30]
jge 0x1003cbe7
mov eax, dword [edi + 0x38]
mov ecx, dword [esp + 0xbc]
mov word [eax], cx
add dword [edi + 0x38], 2
mov ecx, dword [edi + 0x38]
movzx eax, word [edi + 0x28]
add ax, 2
mov word [ecx], ax
add dword [edi + 0x38], 2
mov ecx, dword [edi + 0x38]
movzx eax, word [edi + 0x28]
inc ax
mov word [ecx], ax
add dword [edi + 0x38], 2
mov ecx, dword [edi + 0x38]
movzx eax, word [edi + 0x28]
add ax, 3
mov word [ecx], ax
add dword [edi + 0x38], 2
mov ecx, dword [edi + 0x38]
movzx eax, word [edi + 0x28]
add ax, 2
mov word [ecx], ax
add dword [edi + 0x38], 2
mov ecx, dword [edi + 0x38]
movzx eax, word [edi + 0x28]
inc ax
mov word [ecx], ax
add dword [edi + 0x38], 2
mov edx, dword [esp + 0x68]
inc esi
movss xmm1, dword [esp + 0x78]
mov eax, dword [edi + 0x34]
addss xmm1, dword [edx + 0x1568]
movaps xmm0, xmm1
mulss xmm1, dword [esp + 0xb0]
mulss xmm0, dword [esp + 0xd0]
addss xmm1, dword [0x100b0fc0]
addss xmm0, dword [0x100b0fbc]
movss dword [eax], xmm0
movss dword [eax + 4], xmm1
mov ecx, dword [edx + 0x1938]
mov eax, dword [edi + 0x34]
mov edx, dword [edx + 0x193c]
movss xmm0, dword [esp + 0x28]
movss xmm1, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xb8]
mov dword [eax + 0xc], edx
mov eax, dword [edi + 0x34]
mov edx, dword [esp + 0x68]
mov dword [eax + 0x10], ecx
mov ecx, dword [edi + 0x34]
inc dword [edi + 0x28]
lea eax, [ecx + 0x14]
mov dword [edi + 0x34], eax
subss xmm0, dword [edx + 0x1568]
mulss xmm1, xmm0
mulss xmm2, xmm0
addss xmm1, dword [0x100b0fbc]
addss xmm2, dword [0x100b0fc0]
movss dword [eax], xmm1
movss dword [ecx + 0x18], xmm2
mov eax, dword [edi + 0x34]
mov ecx, dword [edx + 0x1938]
mov edx, dword [edx + 0x193c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xb8]
mov dword [eax + 0xc], edx
mov eax, dword [edi + 0x34]
mov dword [eax + 0x10], ecx
inc dword [edi + 0x28]
mov eax, dword [edi + 0x28]
add dword [edi + 0x34], 0x14
movzx eax, ax
mov dword [esp + 0xbc], eax
cmp esi, dword [esp + 0x30]
jle 0x1003cae0
movss xmm0, dword [esp + 0x1c]
mulss xmm0, dword [esp + 0x3c]
addss xmm0, dword [esp + 0x20]
movss dword [esp + 0x1c], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x1c]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0xb0], xmm0
mulss xmm0, dword [esp + 0x28]
addss xmm0, dword [0x100b0fbc]
movss dword [esp + 0x50], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm5, dword [esp + 0x28]
xorps xmm4, xmm4
movss xmm1, dword [esp + 0x50]
movss xmm2, dword [esp + 0x40]
comiss xmm2, xmm1
movss xmm3, dword [0x100b0fc0]
cvtsd2ss xmm4, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm5
addss xmm0, xmm3
jbe 0x1003cd58
movss dword [esp + 0x40], xmm1
movss xmm2, dword [esp + 0x44]
comiss xmm2, xmm0
jbe 0x1003cd69
movss dword [esp + 0x44], xmm0
comiss xmm1, dword [esp + 0x48]
jbe 0x1003cd76
movss dword [esp + 0x48], xmm1
comiss xmm0, dword [esp + 0x4c]
jbe 0x1003cd83
movss dword [esp + 0x4c], xmm0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x24]
cmp byte [ecx + eax + 8], 0
je 0x1003cfaf
lea eax, [esp + 0xf4]
mov ecx, 3
mov dword [eax + 4], 0
lea eax, [eax + 8]
mov dword [eax - 8], 0
sub ecx, 1
jne 0x1003cda2
movss xmm2, dword [0x100a4c08]
movaps xmm1, xmm5
subss xmm1, dword [0x100a4c08]
divss xmm2, xmm5
movaps xmm0, xmm1
mulss xmm1, xmm4
mulss xmm0, dword [esp + 0xb0]
addss xmm1, xmm3
movss dword [esp + 0x50], xmm2
addss xmm0, dword [0x100b0fbc]
movss dword [esp + 0xf8], xmm1
movaps xmm1, xmm5
subss xmm1, dword [0x100a4c24]
movss dword [esp + 0xf4], xmm0
movss xmm0, dword [esp + 0x1c]
subss xmm0, xmm2
movss dword [esp + 0x18], xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp + 0xb0], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movsd xmm0, qword [esp + 0xb0]
mulss xmm1, dword [esp + 0x18]
addss xmm1, dword [0x100b0fbc]
movss dword [esp + 0xfc], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x18]
addss xmm0, dword [0x100b0fc0]
movss dword [esp + 0x100], xmm0
movss xmm0, dword [esp + 0x1c]
addss xmm0, dword [esp + 0x50]
movss dword [esp + 0x1c], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
mulss xmm1, dword [esp + 0x18]
addss xmm1, dword [0x100b0fbc]
movss dword [esp + 0x104], xmm1
movss xmm1, dword [esp + 0x1c]
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movups xmm2, xmmword [esp + 0xe0]
movss xmm4, dword [0x100a4bb4]
cvtsd2ss xmm0, xmm0
movups xmmword [esp + 0x50], xmm2
mulss xmm0, dword [esp + 0x18]
addss xmm0, dword [0x100b0fc0]
movss dword [esp + 0x108], xmm0
xorps xmm0, xmm0
comiss xmm0, xmm2
jbe 0x1003cef9
xorps xmm1, xmm1
jmp 0x1003cf00
movaps xmm1, xmm4
minss xmm1, xmm2
movss xmm5, dword [0x100a4c60]
movss xmm3, dword [0x100a4b74]
movss xmm2, dword [esp + 0x54]
comiss xmm0, xmm2
mulss xmm1, xmm5
addss xmm1, xmm3
cvttss2si ecx, xmm1
jbe 0x1003cf2c
xorps xmm1, xmm1
jmp 0x1003cf33
movaps xmm1, xmm4
minss xmm1, xmm2
movss xmm2, dword [esp + 0x58]
mulss xmm1, xmm5
addss xmm1, xmm3
cvttss2si eax, xmm1
shl eax, 8
or ecx, eax
comiss xmm0, xmm2
jbe 0x1003cf54
xorps xmm1, xmm1
jmp 0x1003cf5b
movaps xmm1, xmm4
minss xmm1, xmm2
mulss xmm1, xmm5
addss xmm1, xmm3
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x5c]
shl eax, 0x10
or ecx, eax
comiss xmm0, xmm1
ja 0x1003cf7e
movaps xmm0, xmm4
minss xmm0, xmm1
mulss xmm0, xmm5
addss xmm0, xmm3
cvttss2si eax, xmm0
shl eax, 0x18
or eax, ecx
mov ecx, edi
push eax
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0x100]
push eax
call fcn.10021300
movss xmm0, dword [esp + 0x34]
addss xmm0, dword [esp + 0x98]
mov esi, dword [esp + 0x70]
mulss xmm0, dword [0x100a4b74]
movss dword [esp + 0x34], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esi]
mulss xmm1, dword [esp + 0x9c]
mulss xmm0, dword [0x100a4b74]
mulss xmm1, dword [0x100a4b74]
addss xmm1, dword [0x100b0fbc]
subss xmm1, xmm0
movss dword [esp + 0x80], xmm1
movss xmm1, dword [esp + 0x34]
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm5, dword [0x100a4b74]
movss xmm1, dword [esi + 4]
movups xmm2, xmmword [esp + 0xe0]
cvtsd2ss xmm0, xmm0
movss xmm3, dword [0x100a4bb4]
mulss xmm0, dword [esp + 0x9c]
mulss xmm1, xmm5
mulss xmm0, xmm5
movups xmmword [esp + 0x50], xmm2
addss xmm0, dword [0x100b0fc0]
subss xmm0, xmm1
movss dword [esp + 0x84], xmm0
xorps xmm0, xmm0
comiss xmm0, xmm2
jbe 0x1003d078
xorps xmm1, xmm1
jmp 0x1003d07f
movaps xmm1, xmm3
minss xmm1, xmm2
movss xmm4, dword [0x100a4c60]
movss xmm2, dword [esp + 0x54]
comiss xmm0, xmm2
mulss xmm1, xmm4
addss xmm1, xmm5
cvttss2si ecx, xmm1
jbe 0x1003d0a3
xorps xmm1, xmm1
jmp 0x1003d0aa
movaps xmm1, xmm3
minss xmm1, xmm2
movss xmm2, dword [esp + 0x58]
mulss xmm1, xmm4
addss xmm1, xmm5
cvttss2si eax, xmm1
shl eax, 8
or ecx, eax
comiss xmm0, xmm2
jbe 0x1003d0cb
xorps xmm1, xmm1
jmp 0x1003d0d2
movaps xmm1, xmm3
minss xmm1, xmm2
mulss xmm1, xmm4
addss xmm1, xmm5
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x5c]
shl eax, 0x10
or ecx, eax
comiss xmm0, xmm1
ja 0x1003d0f5
movaps xmm0, xmm3
minss xmm0, xmm1
mulss xmm0, xmm4
addss xmm0, xmm5
cvttss2si edx, xmm0
shl edx, 0x18
or edx, ecx
test edx, 0xff000000
je 0x1003d170
mov ecx, dword [esp + 0xa0]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d118
sub ecx, esi
mov esi, dword [esp + 0xa0]
add ecx, esi
cmp esi, ecx
je 0x1003d170
push dword [esp + 0x84]
mov eax, dword [edi + 0x2c]
push dword [esp + 0x84]
movups xmm0, xmmword [edi + 0x60]
push 0
movss xmm2, dword [eax + 0xc]
push ecx
mov dword [esp], 0
push ecx
push esi
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [eax + 8]
push edx
push edi
movups xmmword [esp + 0x74], xmm0
call fcn.10025090
movss xmm5, dword [0x100a4b74]
cmp byte [esp + 0x16], 0
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
cmovne esi, ecx
mov edx, dword [esp + 0x24]
inc ecx
add dword [esp + 0x74], 0xc
add dword [esp + 0x70], 8
movss xmm2, dword [esp + 0x38]
movss xmm7, dword [0x100a4c1c]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x6c], ecx
cmp ecx, dword [edx - 0x10]
jl 0x1003c8a4
movss xmm3, dword [esp + 0x28]
movss xmm4, dword [esp + 0x3c]
movss xmm1, dword [esp + 0x20]
jmp 0x1003d1c9
or esi, 0xffffffff
movss xmm0, dword [esp + 0xa8]
mov eax, dword [edx - 0xc]
movss dword [esp + 0x78], xmm3
mulss xmm3, xmm3
mov dword [edx - 8], eax
mov dword [edx - 4], esi
comiss xmm0, xmm3
jb 0x1003d1ec
mov esi, dword [edx]
movd xmm0, esi
mov dword [edx], esi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm4
addss xmm0, xmm1
movss dword [esp + 0x2c], xmm0
cmp esi, 0xffffffff
je 0x1003d239
cmp byte [edx + esi + 8], 0
je 0x1003d239
mov eax, dword [esp + 0xac]
add edx, 0x114
add dword [esp + 0x7c], 3
inc eax
mov dword [esp + 0xac], eax
mov dword [esp + 0x24], edx
cmp eax, dword [0x100b0fb4]
jle 0x1003c754
mov ecx, dword [edi + 0x3c]
sub ecx, 1
mov dword [edi + 0x3c], ecx
jne 0x1003d24c
mov eax, dword [edi + 0x2c]
add eax, 0x18
jmp 0x1003d257
mov eax, dword [edi + 0x44]
shl ecx, 4
add eax, 0xfffffff0
add eax, ecx
movups xmm0, xmmword [eax]
mov ecx, edi
movups xmmword [edi + 0x60], xmm0
call fcn.1001ef60
movss xmm2, dword [esp + 0x40]
xorps xmm0, xmm0
comiss xmm0, xmm2
movss xmm1, dword [0x100b0fbc]
jbe 0x1003d287
subss xmm1, xmm2
movss dword [0x100b0fbc], xmm1
movss xmm2, dword [esp + 0x44]
comiss xmm0, xmm2
movss xmm0, dword [0x100b0fc0]
jbe 0x1003d2a6
subss xmm0, xmm2
movss dword [0x100b0fc0], xmm0
mov esi, dword [0x100b06f0]
movss xmm4, dword [esp + 0x48]
movss xmm3, dword [esi + 0x10]
comiss xmm4, xmm3
movss xmm2, dword [esi + 0x14]
jbe 0x1003d2d1
subss xmm1, xmm4
addss xmm1, xmm3
movss dword [0x100b0fbc], xmm1
movss xmm1, dword [esp + 0x4c]
comiss xmm1, xmm2
jbe 0x1003d2ec
subss xmm0, xmm1
addss xmm0, xmm2
movss dword [0x100b0fc0], xmm0
cmp byte [0x100b0fc8], 0
jne 0x1003d30b
cmp byte [esp + 0x17], 0
jne 0x1003d316
mov eax, dword [0x100b0fc4]
cmp byte [esi + eax + 0x3e2], 0
je 0x1003d316
call fcn.100118e0
mov esi, dword [0x100b06f0]
mov eax, dword [esi + 0x1b94]
cmp dword [esi + 0x1cf8], eax
jne 0x1003d334
mov dword [esi + 0x1df8], eax
mov dword [esi + 0x1dfc], 2
test dword [eax + 8], 0x1000000
je 0x1003d344
mov byte [esi + 0x1b46], 1
call fcn.1000fd80
mov byte [esi + 0x1b46], 0
mov esi, dword [0x100b06f0]
mov eax, dword [esi + 0x1c8c]
mov ecx, dword [esi + 0x1c94]
lea edx, [eax + eax*4]
mov eax, dword [ecx + edx*4 - 0x14]
movups xmm0, xmmword [ecx + edx*4 - 0x10]
add eax, eax
movups xmmword [esi + eax*8 + 0x15dc], xmm0
dec dword [esi + 0x1c8c]
mov eax, dword [esi + 0x1c8c]
mov ecx, dword [esi + 0x1c94]
lea edx, [eax + eax*4]
mov eax, dword [ecx + edx*4 - 0x14]
movups xmm0, xmmword [ecx + edx*4 - 0x10]
add eax, eax
mov ecx, 2
movups xmmword [esi + eax*8 + 0x15dc], xmm0
dec dword [esi + 0x1c8c]
call fcn.10005630
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.100907a6
mov esp, ebp
pop ebp
ret