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

Disassembly:
sub esp, 0x54
mov eax, dword [0x103b6348]
push edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x4c], eax
test byte [edi + 8], 0x42
jne 0x10058cd0
cmp byte [edi + 0xc0], 0
jg 0x10058cd0
cmp byte [edi + 0xc1], 0
jg 0x10058cd0
cmp byte [edi + 0xa7], 0
je 0x10058cd0
movss xmm2, dword [eax + 0x3bd0]
xor edx, edx
movss xmm0, dword [edi + 0x48]
movaps xmm1, xmm2
addss xmm0, dword [0x100c7298]
mulss xmm2, dword [0x100cb770]
mov cl, byte [eax + 0x66]
mulss xmm1, dword [0x100cb79c]
test cl, cl
push esi
addss xmm0, xmm2
mov byte [esp + 0x59], 0
push 4
pop esi
cmovne edx, esi
mov dword [esp + 0x3c], edx
maxss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100cb788]
cvttss2si esi, xmm0
je 0x10058457
movss xmm0, dword [0x100c7b18]
jmp 0x1005845a
xorps xmm0, xmm0
movss xmm1, dword [0x100cb808]
movss dword [esp + 0x44], xmm0
movaps xmm0, xmm1
push str.RESIZE
movss dword [esp + 0x24], xmm1
mov dword [esp + 0x28], 0x7f7fffff
movss dword [esp + 0x4c], xmm0
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0x58], xmm0
movss dword [esp + 0x30], xmm0
mov dword [edi + 0x144], 1
call fcn.1004fa3a
xor eax, eax
pop ecx
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x6c], eax
jle 0x100587dd
movss xmm4, dword [edi + 0x10]
xorps xmm6, xmm6
addss xmm4, dword [edi + 0x18]
movss xmm2, dword [edi + 0x14]
addss xmm2, dword [edi + 0x1c]
imul ecx, eax, 0x18
cvtsi2ss xmm6, esi
add ecx, 0x100c7ff8
subss xmm4, dword [edi + 0x10]
subss xmm2, dword [edi + 0x14]
mov dword [esp + 0x40], ecx
movss xmm0, dword [ecx + 8]
movss xmm1, dword [ecx + 0xc]
movaps xmm5, xmm0
mulss xmm4, dword [ecx]
movaps xmm3, xmm1
mulss xmm2, dword [ecx + 4]
addss xmm4, dword [edi + 0x10]
mulss xmm0, dword [esp + 0x44]
addss xmm2, dword [edi + 0x14]
mulss xmm1, dword [esp + 0x44]
mulss xmm5, xmm6
mulss xmm3, xmm6
addss xmm5, xmm4
subss xmm4, xmm0
addss xmm3, xmm2
subss xmm2, xmm1
movss dword [esp + 0x10], xmm5
comiss xmm4, xmm5
movss dword [esp + 8], xmm4
movss dword [esp + 0xc], xmm2
movss dword [esp + 0x14], xmm3
jbe 0x10058558
movss dword [esp + 8], xmm5
movss dword [esp + 0x10], xmm4
comiss xmm2, xmm3
jbe 0x10058569
movss dword [esp + 0xc], xmm3
movss dword [esp + 0x14], xmm2
push eax
mov ecx, edi
call fcn.100470b0
push 8
mov edi, eax
lea eax, [esp + 0xc]
push 0
push edi
push eax
call fcn.1004af69
push 0x40800
lea eax, [esp + 0x6f]
push eax
lea eax, [esp + 0x72]
push eax
lea eax, [esp + 0x24]
push edi
push eax
call fcn.10084360
mov dh, byte [esp + 0x7e]
add esp, 0x24
mov dl, byte [esp + 0x5b]
test dh, dh
jne 0x100585b3
test dl, dl
je 0x1005878b
mov edi, dword [esp + 0x4c]
mov eax, edi
mov ecx, dword [esp + 0x50]
not eax
and eax, 1
add eax, 5
mov dword [ecx + 0x494c], eax
test dl, dl
je 0x1005878b
push 2
pop eax
cmp word [ecx + 0x3702], ax
jne 0x10058631
test edi, edi
jne 0x10058631
push dword [esp + 0x64]
mov edi, dword [esp + 0x64]
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.1004181a
add esp, 0xc
mov byte [esp + 0x59], 1
movss xmm0, dword [eax]
movss dword [esp + 0x48], xmm0
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x54], xmm0
movss dword [esp + 0x2c], xmm0
call fcn.10041cab
mov dl, byte [esp + 0x5b]
mov dh, byte [esp + 0x5a]
jmp 0x1005879f
mov edi, dword [esp + 0x40]
movss xmm1, dword [0x100c7298]
mov edx, dword [esp + 0x74]
movss xmm0, dword [edi + 4]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x10058656
movss xmm5, dword [edx + 4]
jmp 0x1005865e
movss xmm5, dword [0x100cb818]
movss xmm7, dword [edi]
ucomiss xmm7, xmm1
lahf
test ah, 0x44
jp 0x10058671
movss xmm4, dword [edx]
jmp 0x10058679
movss xmm4, dword [0x100cb818]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
movss xmm0, dword [0x100cb808]
lahf
test ah, 0x44
jp 0x1005869a
movss xmm2, dword [edx + 0xc]
movss dword [esp + 0x48], xmm2
jmp 0x100586a0
movss dword [esp + 0x48], xmm0
ucomiss xmm7, xmm1
lahf
test ah, 0x44
jp 0x100586b0
movss xmm6, dword [edx + 8]
jmp 0x100586b3
movaps xmm6, xmm0
movss xmm0, dword [edi + 8]
xorps xmm2, xmm2
mulss xmm0, dword [esp + 0x44]
movss xmm1, dword [edi + 0xc]
mulss xmm1, dword [esp + 0x44]
cvtsi2ss xmm2, esi
xorps xmm2, xmmword [0x100cb8d0]
movaps xmm3, xmm2
mulss xmm2, dword [edi + 0xc]
mulss xmm3, dword [edi + 8]
subss xmm2, xmm1
subss xmm3, xmm0
mulss xmm2, dword [edi + 4]
mulss xmm3, xmm7
addss xmm2, xmm1
addss xmm3, xmm0
movss xmm0, dword [ecx + 0xdb8]
subss xmm0, dword [ecx + 0x3ea8]
addss xmm3, xmm0
movss xmm0, dword [ecx + 0xdbc]
subss xmm0, dword [ecx + 0x3eac]
addss xmm0, xmm2
comiss xmm5, xmm0
ja 0x10058734
movss xmm5, dword [esp + 0x48]
minss xmm5, xmm0
comiss xmm4, xmm3
ja 0x10058740
movaps xmm4, xmm6
minss xmm4, xmm3
lea eax, [esp + 0x28]
movss dword [esp + 0x30], xmm4
push eax
lea eax, [esp + 0x24]
movss dword [esp + 0x38], xmm5
push eax
push edi
mov edi, dword [esp + 0x6c]
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.100411b4
movss xmm0, dword [esp + 0x40]
add esp, 0x14
mov dl, byte [esp + 0x5b]
mov dh, byte [esp + 0x5a]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esp + 0x28]
movss dword [esp + 0x48], xmm0
jmp 0x1005878f
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x1005879f
test dl, dl
jne 0x1005879f
test dh, dh
je 0x100587ce
xor eax, eax
test dh, dh
push ecx
setne al
mov dword [esp], 0x3f800000
add eax, 0x1e
test dl, dl
push 0x20
pop ecx
cmovne eax, ecx
push eax
call fcn.10046be9
mov edx, dword [esp + 0x78]
pop ecx
pop ecx
mov ecx, dword [esp + 0x4c]
mov dword [edx + ecx*4], eax
mov eax, ecx
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x6c]
jl 0x100584b6
xor edx, edx
mov dword [esp + 0x44], edx
cmp dword [esp + 0x3c], edx
jbe 0x10058a39
imul eax, edx, 0x1c
mov dword [esp + 0x38], eax
test edx, edx
je 0x1005881b
cmp edx, 1
je 0x1005881b
mov dword [esp + 0x48], 3
lea eax, [esp + 0x34]
mov dword [esp + 0x4c], 0xdbc
mov dword [esp + 0x54], 0x3eac
jmp 0x10058837
mov dword [esp + 0x48], 4
lea eax, [esp + 0x30]
mov dword [esp + 0x4c], 0xdb8
mov dword [esp + 0x54], 0x3ea8
movd xmm0, esi
push ecx
push ecx
cvtdq2ps xmm0, xmm0
mov dword [esp + 4], 0x40800000
mov dword [esp + 0x48], eax
lea eax, [esp + 0x10]
movss dword [esp], xmm0
push edx
push edi
push eax
call fcn.10047934
add esp, 0x14
lea eax, [edx + 4]
mov ecx, edi
push eax
call fcn.100470b0
push 8
mov edi, eax
lea eax, [esp + 0xc]
push 0
push edi
push eax
call fcn.1004af69
push 0x40800
lea eax, [esp + 0x6f]
push eax
lea eax, [esp + 0x72]
push eax
lea eax, [esp + 0x24]
push edi
push eax
call fcn.10084360
mov dl, byte [esp + 0x7f]
add esp, 0x24
cmp byte [esp + 0x5a], 0
mov eax, dword [esp + 0x50]
je 0x100588b9
movss xmm0, dword [eax + 0x3e8c]
comiss xmm0, dword [0x100cb758]
ja 0x100588c1
test dl, dl
je 0x10058a0a
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x494c], ecx
test dl, dl
je 0x10058a0a
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x44]
movss xmm2, dword [0x100cb818]
mov dword [edx], ecx
cmp ecx, 3
jne 0x100588f5
mov ecx, dword [esp + 0x74]
movss xmm1, dword [ecx + 4]
jmp 0x10058908
movaps xmm1, xmm2
movaps xmm0, xmm1
cmp ecx, 1
jne 0x10058915
mov ecx, dword [esp + 0x74]
movss xmm2, dword [ecx]
movss xmm0, dword [0x100cb808]
movaps xmm3, xmm0
jmp 0x10058932
movaps xmm4, xmm2
cmp ecx, 2
jne 0x100589ec
mov ecx, dword [esp + 0x74]
movss xmm3, dword [ecx + 0xc]
movss xmm0, dword [0x100cb808]
movaps xmm5, xmm0
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
movss xmm0, dword [edi + 0x10]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [edi + 0x14]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [ecx + eax]
mov ecx, dword [esp + 0x54]
subss xmm0, dword [ecx + eax]
mov eax, dword [esp + 0x40]
addss xmm0, dword [0x100c7b18]
movss dword [eax], xmm0
comiss xmm1, dword [esp + 0x34]
ja 0x10058981
movaps xmm1, xmm3
minss xmm1, dword [esp + 0x34]
comiss xmm2, dword [esp + 0x30]
ja 0x10058991
movaps xmm2, xmm5
minss xmm2, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
movss dword [esp + 0x30], xmm2
movss dword [esp + 0x34], xmm1
movss xmm0, dword [eax + 0x100c8060]
minss xmm0, dword [eax + 0x100c8068]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [eax + 0x100c8064]
minss xmm0, dword [eax + 0x100c806c]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
movss dword [esp + 0x24], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.100411b4
add esp, 0x14
jmp 0x10058a0e
movss xmm3, dword [0x100cb808]
test ecx, ecx
jne 0x1005892a
mov ecx, dword [esp + 0x74]
movss xmm5, dword [ecx + 8]
jmp 0x10058935
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x44]
inc edx
mov dword [esp + 0x44], edx
cmp edx, dword [esp + 0x3c]
jl 0x100587ed
movss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esp + 0x28]
movss dword [esp + 0x48], xmm0
call fcn.1004f75d
mov esi, dword [esp + 0x50]
and dword [edi + 0x144], 0
mov eax, dword [esi + 0x4920]
test eax, eax
je 0x10058c43
cmp dword [eax + 0x2fc], edi
jne 0x10058c43
mov eax, dword [esi + 0x47fc]
xorps xmm3, xmm3
xorps xmm4, xmm4
cmp eax, 2
jne 0x10058a97
cmp byte [esi + 0xdd1], 0
je 0x10058c43
push 0x204
push 0x203
push 0x202
push 0x201
jmp 0x10058ab0
cmp eax, 3
jne 0x10058ac6
push 0x272
push 0x271
push 0x270
push 0x26f
lea eax, [esp + 0x28]
push eax
call fcn.10047475
add esp, 0x14
movss xmm4, dword [eax + 4]
movss xmm3, dword [eax]
ucomiss xmm3, dword [0x100c7294]
lahf
test ah, 0x44
jp 0x10058ae4
ucomiss xmm4, dword [0x100c7294]
lahf
test ah, 0x44
jnp 0x10058c43
movss xmm2, dword [esi + 0x58]
minss xmm2, dword [esi + 0x5c]
movss xmm0, dword [esi + 0x18]
mulss xmm0, dword [0x100cb7f8]
mov eax, dword [esp + 0x74]
push ecx
mov dword [esp], 0x3f800000
mulss xmm2, xmm0
push 0x20
movaps xmm1, xmm2
mulss xmm2, xmm4
mulss xmm1, xmm3
addss xmm2, dword [esi + 0x4944]
addss xmm1, dword [esi + 0x4940]
movss dword [esi + 0x4944], xmm2
movss dword [esi + 0x4940], xmm1
movss xmm0, dword [eax]
subss xmm0, dword [edi + 0x10]
subss xmm0, dword [edi + 0x18]
maxss xmm1, xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [edi + 0x14]
pop eax
push eax
subss xmm0, dword [edi + 0x1c]
movss dword [esi + 0x4940], xmm1
mov byte [esi + 0x4934], 0
mov byte [esi + 0x4807], 1
maxss xmm2, xmm0
movss dword [esi + 0x4944], xmm2
call fcn.10046be9
pop ecx
pop ecx
mov ecx, dword [esp + 0x70]
xorps xmm0, xmm0
mov dword [ecx], eax
cvttss2si esi, dword [esi + 0x4940]
mov eax, dword [esp + 0x50]
cvttss2si edi, dword [eax + 0x4944]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
movd xmm1, edi
ucomiss xmm2, xmm0
cvtdq2ps xmm1, xmm1
lahf
test ah, 0x44
jp 0x10058bc5
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x10058c4b
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x18]
movaps xmm0, xmm2
push ecx
push eax
addss xmm0, dword [eax + 0x20]
movss dword [esp + 0x20], xmm0
movaps xmm0, xmm1
addss xmm0, dword [eax + 0x24]
lea eax, [esp + 0x30]
push eax
movss dword [esp + 0x28], xmm0
call fcn.1004181a
movd xmm1, esi
add esp, 0xc
cvtdq2ps xmm1, xmm1
movss xmm0, dword [eax]
movss xmm2, dword [eax + 4]
mov eax, dword [esp + 0x50]
movss dword [esp + 0x48], xmm0
movss xmm0, dword [eax + 0x4940]
subss xmm0, xmm1
movd xmm1, edi
cvtdq2ps xmm1, xmm1
movss dword [eax + 0x4940], xmm0
movss xmm0, dword [eax + 0x4944]
subss xmm0, xmm1
movss dword [eax + 0x4944], xmm0
jmp 0x10058c51
movss xmm2, dword [esp + 0x54]
jmp 0x10058c55
movss xmm2, dword [esp + 0x54]
mov edi, dword [esp + 0x60]
movss xmm0, dword [esp + 0x48]
movss xmm1, dword [0x100cb808]
ucomiss xmm0, xmm1
pop esi
lahf
test ah, 0x44
jnp 0x10058c86
push edi
movss dword [edi + 0x20], xmm0
movss dword [edi + 0x24], xmm2
call fcn.1004bb9f
movss xmm1, dword [0x100cb808]
pop ecx
movss xmm0, dword [esp + 0x1c]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x10058cbe
cvttss2si eax, xmm0
push edi
movd xmm1, eax
cvttss2si eax, dword [esp + 0x24]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x10], xmm1
movss dword [edi + 0x14], xmm0
call fcn.1004bb9f
pop ecx
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov al, byte [esp + 0x55]
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], edx
jmp 0x10058cd2
xor al, al
pop edi
add esp, 0x54
ret