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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x1030e040]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [0x10317358]
push edi
mov edi, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], edx
mov eax, dword [edi + 0xc]
mov dword [esp + 0x18], eax
test al, 0x20
jne 0x10057ad8
cmp dword [esi + 0x3854], 0xffffffff
je 0x10057ad8
mov dl, 1
jmp 0x10057ada
xor dl, dl
mov eax, dword [esi + 0x478c]
mov dword [esp + 0x34], eax
or eax, 0x10
cmp dword [esp + 0x2c], 0
mov dword [esi + 0x478c], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x180], 1
movss xmm1, dword [esi + 0x3868]
movss xmm0, dword [esi + 0x3c9c]
movaps xmm2, xmm1
movss xmm3, dword [eax + 8]
movss xmm4, dword [eax + 4]
movss dword [esp + 0x28], xmm1
movss dword [esp + 0x10], xmm2
movss dword [esp + 0xc], xmm0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
je 0x10057b80
addss xmm0, xmm2
movss dword [esp + 0x3c], xmm4
movaps xmm2, xmm0
movss dword [esp + 0x10], xmm0
movaps xmm0, xmm3
movaps xmm5, xmm2
subss xmm0, xmm2
subss xmm0, xmm1
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0xc]
jmp 0x10057b87
movaps xmm5, xmm0
addss xmm5, xmm1
movaps xmm6, xmm2
test dl, dl
je 0x10057c52
mov eax, dword [esi + 0x3854]
cmp eax, 1
jne 0x10057bb7
addss xmm2, xmm0
subss xmm3, xmm2
movss dword [esp + 0x10], xmm2
subss xmm3, xmm1
movss dword [esp + 0x20], xmm3
jmp 0x10057beb
movaps xmm0, xmm6
movss dword [esp + 0x10], xmm0
test eax, eax
jne 0x10057bf1
mov edx, dword [esp + 0x14]
movaps xmm0, xmm1
addss xmm0, dword [edx]
subss xmm0, xmm1
movaps xmm1, xmm5
movss dword [esp + 0x28], xmm1
movss dword [esp + 0x20], xmm0
movaps xmm0, xmm6
movss dword [esp + 0x10], xmm0
movss dword [esp + 0x24], xmm4
mov ecx, dword [edi + 0x11c]
xor edx, edx
mov eax, dword [edi + 0x124]
push dword [eax + ecx*4 - 4]
mov ecx, str.COLLAPSE
call fcn.1004bb50
mov ecx, dword [edi]
add esp, 4
mov dword [esp + 0x1c], eax
cmp dword [ecx + 0x3f68], eax
jne 0x10057c37
push ecx
push str.COLLAPSE
mov edx, 0xb
mov ecx, eax
call fcn.1007a060
mov eax, dword [esp + 0x24]
add esp, 8
push 0
lea edx, [esp + 0x24]
mov ecx, eax
call fcn.100bf580
add esp, 4
test al, al
je 0x10057c52
mov byte [edi + 0xe3], 1
cmp dword [esp + 0x2c], 0
je 0x10057cb5
mov ecx, dword [edi + 0x11c]
xor edx, edx
mov eax, dword [edi + 0x124]
push dword [eax + ecx*4 - 4]
mov ecx, str.CLOSE
call fcn.1004bb50
mov ecx, dword [edi]
add esp, 4
mov dword [esp + 0x1c], eax
cmp dword [ecx + 0x3f68], eax
jne 0x10057c9f
push ecx
push str.CLOSE
mov edx, 0xb
mov ecx, eax
call fcn.1007a060
mov eax, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x38]
mov ecx, eax
call fcn.100bf220
test al, al
je 0x10057cb5
mov eax, dword [esp + 0x2c]
mov byte [eax], 0
test dword [esp + 0x18], 0x100000
xorps xmm7, xmm7
mov eax, dword [esp + 0x34]
mov dword [edi + 0x180], 0
mov dword [esi + 0x478c], eax
je 0x10057cec
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x102f38c4]
movss dword [esp + 0xc], xmm0
jmp 0x10057cf2
movss dword [esp + 0xc], xmm7
mov eax, dword [esp + 0x30]
mov ecx, eax
cmp eax, 0xffffffff
jae 0x10057d16
nop dword [eax]
mov dl, byte [ecx]
test dl, dl
je 0x10057d16
cmp dl, 0x23
jne 0x10057d10
cmp byte [ecx + 1], dl
je 0x10057d16
inc ecx
cmp ecx, 0xffffffff
jb 0x10057d00
mov edx, dword [0x10317358]
movss xmm0, dword [edx + 0x3c9c]
cmp eax, ecx
jne 0x10057d2d
movaps xmm4, xmm7
jmp 0x10057d7c
movss xmm3, dword [0x102f3b2c]
movaps xmm2, xmm0
push 0
push ecx
push eax
push ecx
mov ecx, dword [edx + 0x3c98]
lea eax, [esp + 0x48]
mov dword [esp], 0xbf800000
push eax
call fcn.1008b4a0
movss xmm0, dword [esp + 0x38]
xorps xmm7, xmm7
addss xmm0, dword [0x102f38ec]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x3c]
movd xmm4, eax
cvtdq2ps xmm4, xmm4
movss dword [esp + 0x20], xmm4
addss xmm4, dword [esp + 0xc]
movss xmm2, dword [esp + 0x28]
addss xmm0, xmm7
movss dword [esp + 0x20], xmm4
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esi + 0x3868]
comiss xmm2, xmm0
jbe 0x10057dad
addss xmm2, dword [esi + 0x3880]
movss xmm3, dword [esp + 0x10]
comiss xmm3, xmm0
jbe 0x10057dc0
addss xmm3, dword [esi + 0x3880]
movss xmm6, dword [esi + 0x384c]
comiss xmm6, xmm7
movss xmm5, dword [0x102f38f4]
jbe 0x10057e48
comiss xmm5, xmm6
jbe 0x10057e48
movaps xmm0, xmm6
movaps xmm1, xmm5
subss xmm0, dword [0x102f389c]
andps xmm0, xmmword [0x102f3f30]
addss xmm0, xmm0
subss xmm1, xmm0
comiss xmm7, xmm1
jbe 0x10057e01
movaps xmm5, xmm7
jmp 0x10057e05
minss xmm5, xmm1
mov eax, dword [esp + 0x14]
movaps xmm1, xmm2
maxss xmm1, xmm3
movss xmm0, dword [eax + 8]
subss xmm0, dword [eax]
subss xmm0, xmm2
subss xmm0, xmm3
subss xmm0, xmm4
minss xmm1, xmm0
mulss xmm1, xmm5
movss xmm5, dword [0x102f38f4]
movaps xmm0, xmm1
maxss xmm1, xmm3
maxss xmm0, xmm2
movaps xmm3, xmm1
movaps xmm2, xmm0
jmp 0x10057e4c
mov eax, dword [esp + 0x14]
test dword [esp + 0x18], 0x100000
movss xmm7, dword [eax + 8]
movss xmm0, dword [eax + 4]
subss xmm7, xmm3
addss xmm2, dword [eax]
movss xmm1, dword [eax + 0xc]
movaps xmm3, xmm0
movss dword [esp + 0x48], xmm3
movss dword [esp + 0x58], xmm0
movaps xmm3, xmm7
movss dword [esp + 0x5c], xmm7
addss xmm3, dword [esi + 0x3880]
movss dword [esp + 0x54], xmm2
movss dword [esp + 0x60], xmm1
movss dword [esp + 0x44], xmm2
movss dword [esp + 0x50], xmm1
minss xmm3, dword [eax + 8]
movss dword [esp + 0x28], xmm3
movss dword [esp + 0x4c], xmm3
je 0x10057fb1
movaps xmm0, xmm7
subss xmm0, xmm2
subss xmm0, xmm4
mulss xmm0, xmm6
addss xmm0, xmm2
addss xmm0, xmm4
comiss xmm2, xmm0
jbe 0x10057ee1
movaps xmm7, xmm2
movss dword [esp + 0x18], xmm2
jmp 0x10057eeb
minss xmm7, xmm0
movss dword [esp + 0x18], xmm7
comiss xmm7, xmm2
addss xmm1, dword [eax + 4]
mulss xmm1, dword [0x102f389c]
movss dword [esp + 0x34], xmm1
jbe 0x10057fb1
movaps xmm1, xmm5
xor ecx, ecx
call fcn.1004d9d0
mov edi, dword [edi + 0x2a4]
movss xmm0, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
movss dword [esp + 0x38], xmm7
mov ecx, dword [edi + 0x2c]
movss dword [esp + 0x3c], xmm0
movss xmm2, dword [ecx + 0xc]
mulss xmm2, dword [0x102f3878]
test eax, 0xff000000
je 0x10057f88
movss xmm0, dword [0x102f389c]
comiss xmm0, xmm2
ja 0x10057f88
push 7
push ecx
lea eax, [esp + 0x40]
mov dword [esp], 0x40afede0
push eax
xorps xmm3, xmm3
mov ecx, edi
call fcn.10085ca0
push dword [esp + 0x1c]
mov ecx, edi
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.10085490
movss xmm7, dword [esp + 0x18]
mov dword [edi + 0x54], 0
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x102f389c]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm7, xmm0
minss xmm7, dword [esp + 0x28]
movss dword [esp + 0x4c], xmm7
lea eax, [esp + 0x44]
push eax
lea eax, [esi + 0x384c]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x68]
push 0
push eax
lea ecx, [esp + 0x68]
call fcn.1004e160
mov ecx, dword [esp + 0x78]
add esp, 0x14
pop edi
pop esi
xor ecx, esp
call fcn.1013cfec
mov esp, ebp
pop ebp
ret