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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x100a4040]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [0x100be9bc]
xorps xmm0, xmm0
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [esp + 0x34], edi
mov byte [esp + 0x1c], 0
movaps xmmword [esp + 0x50], xmm0
mov eax, dword [edi]
mov byte [edi + 0x66], 0
movaps xmmword [esp + 0x60], xmm0
mov dword [esp + 0x70], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x28], 1
test eax, eax
jle 0x10066ba4
mov dword [esp + 0x10], esi
xor edx, edx
mov ecx, dword [edi + 8]
mov eax, dword [ecx + edx + 8]
cmp eax, dword [edi + 0x24]
jl 0x10066b61
cmp byte [ecx + edx + 0x22], 0
jne 0x10066b61
cmp esi, dword [esp + 0xc]
je 0x10066ae6
mov edi, dword [esp + 0x10]
movups xmm0, xmmword [ecx + edx]
mov eax, dword [ecx + edx + 0x20]
movups xmm1, xmmword [ecx + edx + 0x10]
movups xmmword [ecx + edi], xmm0
movups xmmword [ecx + edi + 0x10], xmm1
mov dword [ecx + edi + 0x20], eax
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 8]
add eax, dword [esp + 0x10]
mov word [eax + 0x20], si
mov eax, dword [eax + 4]
test al, 0x40
je 0x10066afc
xor ecx, ecx
jmp 0x10066b07
test al, 0x80
mov ecx, 0
setne cl
inc ecx
test esi, esi
jle 0x10066b52
mov eax, dword [edi + 8]
mov edi, dword [esp + 0x10]
mov eax, dword [eax + edi - 0x20]
test al, 0x40
je 0x10066b1e
xor eax, eax
jmp 0x10066b29
test al, 0x80
mov eax, 0
setne al
inc eax
mov edi, dword [esp + 0x34]
test ecx, ecx
jne 0x10066b3a
test eax, eax
je 0x10066b52
mov byte [esp + 0x1c], 1
cmp eax, 2
jne 0x10066b52
mov eax, dword [esp + 0x1c]
cmp ecx, 2
movzx eax, al
cmovne eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
lea eax, [ecx + ecx*2]
inc esi
inc dword [esp + eax*4 + 0x50]
add dword [esp + 0x10], 0x24
jmp 0x10066b8e
mov eax, dword [edi + 0x1c]
cmp eax, dword [ecx + edx]
jne 0x10066b70
mov dword [edi + 0x1c], 0
mov eax, dword [edi + 0x14]
cmp eax, dword [ecx + edx]
jne 0x10066b7f
mov dword [edi + 0x14], 0
mov eax, dword [edi + 0x18]
cmp eax, dword [ecx + edx]
jne 0x10066b8e
mov dword [edi + 0x18], 0
mov ecx, dword [esp + 0xc]
add edx, 0x24
mov eax, dword [edi]
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, eax
jl 0x10066aa3
cmp eax, esi
je 0x10066bd7
mov eax, dword [edi + 4]
cmp esi, eax
jle 0x10066bd3
test eax, eax
je 0x10066bbf
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [edi + 4]
jmp 0x10066bc4
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, edi
push eax
call fcn.1003bdd0
mov dword [edi], esi
mov eax, esi
cmp byte [esp + 0x1c], 0
je 0x10066bf2
push 0x10066460
push 0x24
push eax
push dword [edi + 8]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
add esp, 0x10
cmp dword [esp + 0x50], 0
jle 0x10066c13
mov eax, dword [esp + 0x5c]
add eax, dword [esp + 0x68]
test eax, eax
jle 0x10066c13
mov eax, dword [esp + 0x14]
movss xmm0, dword [eax + 0x1568]
jmp 0x10066c1a
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
cmp dword [esp + 0x5c], 0
xorps xmm3, xmm3
movss dword [esp + 0x58], xmm0
jle 0x10066c3b
cmp dword [esp + 0x68], 0
jle 0x10066c3b
movss xmm0, dword [eax + 0x1568]
jmp 0x10066c3e
xorps xmm0, xmm0
xor eax, eax
movss dword [esp + 0x64], xmm0
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10066c5f
mov dword [esp + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov ecx, dword [edi + 0x60]
test ecx, ecx
je 0x10066d5b
mov edx, dword [edi]
xor eax, eax
test edx, edx
jle 0x10066d54
mov esi, dword [edi + 8]
nop dword [eax]
cmp dword [esi], ecx
je 0x10066c91
inc eax
add esi, 0x24
cmp eax, edx
jl 0x10066c80
jmp 0x10066d54
test esi, esi
je 0x10066d54
test byte [esi + 4], 0x20
jne 0x10066d54
mov ecx, esi
mov eax, 0x38e38e39
sub ecx, dword [edi + 8]
imul ecx
movsx eax, byte [edi + 0x64]
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
js 0x10066d54
cmp ecx, dword [edi]
jge 0x10066d54
mov edx, dword [edi + 8]
lea eax, [ecx + ecx*8]
mov dword [esp + 0x20], eax
mov ecx, dword [edx + eax*4 + 4]
mov dword [esp + 0x18], ecx
test cl, 0x20
jne 0x10066d54
mov ecx, dword [esi + 4]
xor ecx, dword [esp + 0x18]
test cl, 0xc0
jne 0x10066d54
movups xmm0, xmmword [edx + eax*4]
mov ecx, dword [esi + 0x20]
movups xmm1, xmmword [esi]
movups xmm2, xmmword [esi + 0x10]
movups xmmword [esi], xmm0
movups xmm0, xmmword [edx + eax*4 + 0x10]
movups xmmword [esi + 0x10], xmm0
mov eax, dword [edx + eax*4 + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x20]
movups xmmword [edx + eax*4], xmm1
movups xmmword [edx + eax*4 + 0x10], xmm2
mov dword [edx + eax*4 + 0x20], ecx
test dword [edi + 0xc], 0x400000
je 0x10066d43
mov ecx, dword [0x100be9bc]
comiss xmm3, dword [ecx + 0x2ec4]
jb 0x10066d43
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2ec4], eax
mov eax, dword [edi + 0x60]
mov ecx, dword [esp + 0x10]
cmp eax, dword [edi + 0x14]
cmove ecx, eax
mov dword [esp + 0x10], ecx
mov dword [edi + 0x60], 0
mov eax, dword [edi + 0xc]
shr eax, 2
test al, 1
je 0x10066d79
mov ecx, edi
call fcn.100678d0
test eax, eax
je 0x10066d79
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov dword [edi + 0x14], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x68]
mov esi, dword [edi]
add eax, ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [edx + 0x1f70]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0xc], esi
cmp esi, ecx
jle 0x10066e5a
test ecx, ecx
je 0x10066dbe
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
add eax, ecx
jmp 0x10066dc3
mov eax, 8
cmp eax, dword [esp + 0xc]
cmovg esi, eax
cmp esi, ecx
jle 0x10066e56
mov eax, dword [0x100be9bc]
test eax, eax
je 0x10066de1
inc dword [eax + 0x370]
lea eax, [esi*8]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x1f74]
test eax, eax
je 0x10066e46
mov ecx, dword [edx + 0x1f6c]
shl ecx, 3
push ecx
push eax
push dword [esp + 0x28]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [eax + 0x1f74]
test ecx, ecx
je 0x10066e38
mov eax, dword [0x100be9bc]
test eax, eax
je 0x10066e38
dec dword [eax + 0x370]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [esp + 0x18]
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [edx + 0x1f74], eax
mov dword [edx + 0x1f70], esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
mov dword [edx + 0x1f6c], esi
mov eax, dword [edi]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], 0xffffffff
mov byte [esp + 0x38], cl
mov dword [esp + 0xc], ecx
test eax, eax
jle 0x10066fa3
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x10066e98
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov esi, dword [edi + 8]
add esi, eax
test ecx, ecx
je 0x10066ea9
mov eax, dword [ecx + 0xc]
cmp eax, dword [esi + 0xc]
jge 0x10066eb7
test dword [esi + 4], 0x200000
cmove ecx, esi
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esi]
cmp ecx, dword [edi + 0x14]
movzx eax, al
cmove eax, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10066ee1
cmp dword [edx + 0x1be4], ecx
cmove eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
lea ecx, [esp + 0x48]
movsx edx, word [esi + 0x1c]
add edx, dword [edi + 0x8c]
shr eax, 0x14
not al
and al, 1
mov byte [esp + 0x2c], al
push dword [esp + 0x2c]
call fcn.10068660
add esp, 4
movss xmm1, dword [eax]
mov eax, dword [esi + 4]
movss dword [esi + 0x18], xmm1
test al, 0x40
je 0x10066f1d
xor ecx, ecx
jmp 0x10066f28
test al, 0x80
mov ecx, 0
setne cl
inc ecx
lea edx, [ecx + ecx*2]
cmp ecx, dword [esp + 0x18]
jne 0x10066f3f
mov eax, dword [esp + 0x14]
movss xmm0, dword [eax + 0x1568]
jmp 0x10066f42
xorps xmm0, xmm0
mov edi, dword [esp + 0xc]
addss xmm0, xmm1
add dword [esp + 0x1c], 0x24
mov dword [esp + 0x18], ecx
addss xmm0, dword [esp + edx*4 + 0x54]
movss dword [esp + edx*4 + 0x54], xmm0
mov edx, dword [esp + ecx*4 + 0x3c]
lea eax, [edx + 1]
mov dword [esp + ecx*4 + 0x3c], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x1f74]
mov dword [eax + edx*8], edi
mov ecx, dword [ecx + 0x1f74]
mov eax, dword [esi + 0x18]
mov dword [ecx + edx*8 + 4], eax
mov ecx, edi
mov edi, dword [esp + 0x34]
inc ecx
mov eax, dword [esi + 0x18]
mov dword [esi + 0x14], eax
mov dword [esp + 0xc], ecx
mov eax, dword [edi]
cmp ecx, eax
mov ecx, dword [esp + 0x20]
jl 0x10066e90
movss xmm1, dword [esp + 0x54]
xorps xmm4, xmm4
addss xmm1, dword [esp + 0x58]
movss xmm0, dword [esp + 0x60]
addss xmm0, dword [esp + 0x64]
addss xmm1, xmm4
addss xmm1, xmm0
movss xmm0, dword [esp + 0x6c]
addss xmm0, dword [esp + 0x70]
addss xmm1, xmm0
movss dword [edi + 0x44], xmm1
movss xmm0, dword [edi + 0x30]
subss xmm0, dword [edi + 0x28]
comiss xmm1, xmm0
jbe 0x1006701c
cmp eax, 1
jle 0x1006701c
mov eax, dword [edi + 0xc]
test al, 0x10
jne 0x1006701c
test al, al
jns 0x1006701c
mov ecx, edi
call fcn.10067620
mov ecx, eax
xorps xmm4, xmm4
test ecx, ecx
je 0x1006701c
test dword [ecx + 4], 0x200000
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
jne 0x1006701c
mov dword [edi + 0x14], eax
movss xmm3, dword [esp + 0x6c]
movss xmm1, dword [esp + 0x54]
addss xmm3, dword [esp + 0x70]
addss xmm1, dword [esp + 0x58]
movss xmm0, dword [edi + 0x30]
subss xmm0, dword [edi + 0x28]
movaps xmm2, xmm3
addss xmm2, xmm1
comiss xmm0, xmm2
seta al
mov byte [esp + 0x27], al
test al, al
je 0x10067071
movss xmm2, dword [esp + 0x60]
subss xmm0, xmm1
addss xmm2, dword [esp + 0x64]
subss xmm0, xmm3
subss xmm2, xmm0
maxss xmm2, xmm4
jmp 0x10067075
subss xmm2, xmm0
comiss xmm2, xmm4
jbe 0x10067156
test byte [edi + 0xc], 0x40
jne 0x100670a9
test al, al
jne 0x10067156
mov edx, dword [esp + 0x68]
add edx, dword [esp + 0x50]
cmp byte [esp + 0x27], 0
mov dword [esp + 0xc], edx
je 0x100670bf
mov esi, dword [esp + 0x68]
add esi, dword [esp + 0x50]
jmp 0x100670c5
test al, al
je 0x1006708c
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x5c]
add esi, dword [esp + 0x50]
mov dword [esp + 0xc], edx
jmp 0x100670c5
xor esi, esi
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x1f74]
lea ecx, [eax + esi*8]
call fcn.10056eb0
mov eax, dword [esp + 0xc]
xorps xmm4, xmm4
add eax, esi
mov dword [esp + 0x18], eax
cmp esi, eax
jge 0x10067156
nop dword [eax + eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x1f74]
mov eax, dword [ecx + esi*8]
lea edx, [eax + eax*8]
cvttss2si eax, dword [ecx + esi*8 + 4]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm4, xmm2
ja 0x1006714f
mov ecx, dword [edi + 8]
mov eax, dword [ecx + edx*4 + 4]
test al, 0x40
je 0x10067121
xor eax, eax
jmp 0x1006712c
test al, 0x80
mov eax, 0
setne al
inc eax
movss xmm1, dword [ecx + edx*4 + 0x14]
lea eax, [eax + eax*2]
movss xmm0, dword [esp + eax*4 + 0x54]
subss xmm1, xmm2
subss xmm0, xmm1
movss dword [esp + eax*4 + 0x54], xmm0
movss dword [ecx + edx*4 + 0x14], xmm2
inc esi
cmp esi, dword [esp + 0x18]
jl 0x100670f0
xor ecx, ecx
mov dword [esp + 0xc], 0
movaps xmm2, xmm4
mov dword [edi + 0x40], 0
mov dword [esp + 0x28], ecx
nop
lea eax, [ecx + ecx*2]
mov dword [esp + 0x18], eax
cmp ecx, 2
jne 0x1006719a
movss xmm1, dword [edi + 0x30]
movaps xmm0, xmm4
subss xmm1, dword [edi + 0x28]
subss xmm1, dword [esp + eax*4 + 0x54]
maxss xmm0, xmm1
minss xmm0, xmm2
movaps xmm2, xmm0
mov esi, dword [esp + eax*4 + 0x50]
xor edx, edx
test esi, esi
jle 0x100671fd
mov eax, dword [esp + 0xc]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 8]
mov edi, dword [esp + 0x18]
lea ecx, [ecx + 5]
lea ecx, [eax + ecx*4]
nop dword [eax + eax]
movss dword [ecx - 4], xmm2
mov esi, dword [esp + edi*4 + 0x50]
lea eax, [esi - 1]
cmp edx, eax
jge 0x100671de
mov eax, dword [esp + 0x14]
movss xmm0, dword [eax + 0x1568]
jmp 0x100671e1
movaps xmm0, xmm4
addss xmm0, dword [ecx]
inc edx
add ecx, 0x24
addss xmm2, xmm0
cmp edx, esi
jl 0x100671c0
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
movss xmm0, dword [esp + eax*4 + 0x58]
inc ecx
add dword [esp + 0xc], esi
addss xmm2, xmm0
mov dword [esp + 0x28], ecx
movaps xmm3, xmm0
addss xmm3, dword [esp + eax*4 + 0x54]
maxss xmm3, xmm4
addss xmm3, dword [edi + 0x40]
movss dword [edi + 0x40], xmm3
cmp ecx, 3
jl 0x10067170
cmp byte [esp + 0x38], 0
jne 0x1006723e
mov dword [edi + 0x14], 0
mov eax, dword [edi + 0x14]
mov ecx, eax
test eax, eax
jne 0x1006725d
cmp dword [edi + 0x18], eax
jne 0x1006725d
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1006725d
mov eax, dword [eax]
mov ecx, eax
mov dword [edi + 0x14], eax
jmp 0x10067261
mov eax, dword [esp + 0x10]
movss xmm7, dword [esp + 0x54]
mov dword [edi + 0x1c], ecx
mov byte [edi + 0x67], 0
test eax, eax
je 0x10067385
mov edx, dword [edi]
xor ecx, ecx
test edx, edx
jle 0x10067385
mov esi, dword [edi + 8]
cmp dword [esi], eax
je 0x10067296
inc ecx
add esi, 0x24
cmp ecx, edx
jl 0x10067285
jmp 0x10067385
test esi, esi
je 0x10067385
test byte [esi + 4], 0xc0
jne 0x10067385
mov ecx, dword [0x100be9bc]
mov eax, 0x38e38e39
movss xmm5, dword [edi + 0x30]
subss xmm5, dword [edi + 0x28]
movss xmm0, dword [ecx + 0x1930]
mov ecx, esi
sub ecx, dword [edi + 8]
imul ecx
subss xmm5, xmm7
mov eax, dword [esp + 0x50]
subss xmm5, dword [esp + 0x6c]
sar edx, 3
dec eax
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x2c], ecx
subss xmm5, dword [esp + 0x64]
cmp ecx, eax
jle 0x100672ff
movaps xmm1, xmm0
xorps xmm1, xmmword [0x1009b100]
jmp 0x10067302
movaps xmm1, xmm4
movss xmm2, dword [esi + 0x10]
mov ecx, dword [edi]
subss xmm2, xmm7
mov eax, dword [esp + 0x2c]
sub ecx, dword [esp + 0x68]
inc eax
addss xmm1, xmm2
cmp eax, ecx
jl 0x10067326
movss xmm0, dword [0x1009a1b4]
addss xmm2, dword [esi + 0x14]
movss xmm6, dword [edi + 0x4c]
comiss xmm6, xmm1
mov dword [edi + 0x50], 0
addss xmm2, xmm0
ja 0x1006736e
movaps xmm0, xmm2
subss xmm0, xmm1
comiss xmm0, xmm5
jae 0x1006736e
subss xmm2, xmm5
comiss xmm2, xmm6
jbe 0x10067385
subss xmm1, xmm5
movss dword [edi + 0x4c], xmm2
subss xmm1, dword [edi + 0x48]
maxss xmm1, xmm4
movss dword [edi + 0x50], xmm1
jmp 0x10067385
movss xmm0, dword [edi + 0x48]
subss xmm0, xmm2
movss dword [edi + 0x4c], xmm1
maxss xmm0, xmm4
movss dword [edi + 0x50], xmm0
movss xmm2, dword [edi + 0x28]
movaps xmm1, xmm3
movss xmm0, dword [edi + 0x30]
movss xmm5, dword [edi + 0x48]
subss xmm0, xmm2
movss xmm6, dword [edi + 0x4c]
mov esi, dword [esp + 0x14]
movss dword [esp + 0x18], xmm2
subss xmm1, xmm0
minss xmm5, xmm1
maxss xmm5, xmm4
movss dword [edi + 0x48], xmm5
movss xmm1, dword [edi + 0x30]
movaps xmm0, xmm1
movss dword [esp + 0x2c], xmm1
subss xmm0, xmm2
subss xmm3, xmm0
minss xmm6, xmm3
maxss xmm6, xmm4
ucomiss xmm5, xmm6
movss dword [edi + 0x4c], xmm6
lahf
test ah, 0x44
jnp 0x100674a7
movss xmm0, dword [esi + 0x1930]
mulss xmm0, dword [0x1009a2b8]
mov eax, dword [edi + 0x24]
movss xmm2, dword [edi + 0x54]
inc eax
maxss xmm2, xmm0
movaps xmm0, xmm6
subss xmm0, xmm5
andps xmm0, xmmword [0x1009b0d0]
divss xmm0, dword [0x1009a160]
maxss xmm2, xmm0
movss dword [edi + 0x54], xmm2
cmp eax, dword [esi + 0x1a10]
jl 0x10067491
movss xmm1, dword [esi + 0x1930]
mulss xmm1, dword [0x1009a268]
movss xmm0, dword [edi + 0x50]
comiss xmm0, xmm1
ja 0x10067491
comiss xmm6, xmm5
mulss xmm2, dword [esi + 0x18]
jbe 0x1006746e
movss xmm1, dword [esp + 0x2c]
addss xmm2, xmm5
minss xmm2, xmm6
movss dword [edi + 0x48], xmm2
movss xmm2, dword [esp + 0x18]
jmp 0x100674ae
comiss xmm5, xmm6
jbe 0x1006747b
subss xmm5, xmm2
maxss xmm5, xmm6
movss xmm1, dword [esp + 0x2c]
movaps xmm2, xmm5
movss dword [edi + 0x48], xmm2
movss xmm2, dword [esp + 0x18]
jmp 0x100674ae
movss xmm1, dword [esp + 0x2c]
movaps xmm2, xmm6
movss dword [edi + 0x48], xmm2
movss xmm2, dword [esp + 0x18]
jmp 0x100674ae
mov dword [edi + 0x54], 0
test dword [edi + 0xc], 0x100000
addss xmm7, xmm2
subss xmm1, dword [esp + 0x6c]
addss xmm7, dword [esp + 0x58]
subss xmm1, dword [esp + 0x64]
movss dword [edi + 0x58], xmm7
movss dword [edi + 0x5c], xmm1
jne 0x1006750f
mov ecx, dword [edi + 0x88]
lea eax, [edi + 0x84]
test ecx, ecx
jns 0x10067509
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x84]
call fcn.1003bc00
lea eax, [edi + 0x84]
mov dword [eax], 0
mov esi, dword [esi + 0x1a6c]
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
mov dword [esi + 0xd0], ecx
lea ecx, [esp + 0x2c]
mov dword [esi + 0xcc], eax
movss xmm0, dword [edi + 0x40]
movss xmm1, dword [edi + 0x78]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [edi + 0x34]
subss xmm0, dword [edi + 0x2c]
movss dword [esp + 0x30], xmm0
call fcn.10035510
movss xmm1, dword [edi + 0x44]
addss xmm1, dword [edi + 0x28]
movss xmm0, dword [esi + 0xec]
mov ecx, dword [esp + 0x8c]
pop edi
maxss xmm0, xmm1
movss dword [esi + 0xec], xmm0
pop esi
xor ecx, esp
call fcn.1008a073
mov esp, ebp
pop ebp
ret