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

Disassembly:
sub esp, 0x7c
mov edx, dword [0x653a14]
push edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x60], edx
test byte [edi + 0xc], 0x42
jne 0x41859d
cmp byte [edi + 0xc4], 0
jg 0x41859d
cmp byte [edi + 0xc5], 0
jg 0x41859d
cmp byte [edi + 0xab], 0
je 0x41859d
movss xmm2, dword [edx + 0x3bcc]
xor eax, eax
movss xmm0, dword [edi + 0x4c]
movaps xmm1, xmm2
addss xmm0, dword [0x5eeaf4]
mulss xmm2, dword [0x5eeabc]
mov cl, byte [edx + 0x4a]
mulss xmm1, dword [0x5eeafc]
test cl, cl
push esi
addss xmm0, xmm2
mov byte [esp + 0x80], 0
mov esi, 4
cmovne eax, esi
mov dword [esp + 0x28], eax
maxss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x5eeae4]
cvttss2si esi, xmm0
je 0x417a35
movss xmm0, dword [0x5eeb14]
jmp 0x417a38
xorps xmm0, xmm0
cmp byte [edx + 0x4b], 0
mov eax, dword [esp + 0x9c]
movss dword [esp + 0x74], xmm0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x30], xmm0
je 0x417a72
test byte [edi + 0xc], 1
jne 0x417a72
mov ecx, edi
mov byte [esp + 0x81], 1
call fcn.004158c0
fsubr dword [esp + 0x34]
fstp dword [esp + 0x34]
jmp 0x417a7a
mov byte [esp + 0x81], 0
movss xmm1, dword [0x5eeb58]
movaps xmm0, xmm1
movss dword [esp + 0x68], xmm1
push str.RESIZE
movss dword [esp + 0x80], xmm1
movss dword [esp + 0x70], xmm0
movss dword [esp + 0x7c], xmm1
mov dword [edi + 0x148], 1
call fcn.00411570
xor eax, eax
add esp, 4
mov dword [esp + 0x70], eax
cmp dword [esp + 0x94], eax
jle 0x417f68
nop word [eax + eax]
movss xmm0, dword [edi + 0x14]
lea ecx, [eax + eax*2]
movss xmm1, dword [edi + 0x18]
movaps xmm3, xmm0
addss xmm3, dword [edi + 0x1c]
movaps xmm2, xmm1
mov dword [esp + 0x60], ecx
addss xmm2, dword [edi + 0x20]
xorps xmm6, xmm6
cvtsi2ss xmm6, esi
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [ecx*8 + 0x5ed910]
mulss xmm2, dword [ecx*8 + 0x5ed914]
addss xmm3, xmm0
movss xmm0, dword [ecx*8 + 0x5ed918]
movaps xmm5, xmm0
mulss xmm0, dword [esp + 0x74]
addss xmm2, xmm1
mulss xmm5, xmm6
movss xmm1, dword [ecx*8 + 0x5ed91c]
movaps xmm4, xmm1
mulss xmm1, dword [esp + 0x74]
mulss xmm4, xmm6
addss xmm5, xmm3
subss xmm3, xmm0
addss xmm4, xmm2
subss xmm2, xmm1
movss dword [esp + 0x20], xmm5
comiss xmm3, xmm5
movss dword [esp + 0x18], xmm3
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x24], xmm4
jbe 0x417b7f
movss dword [esp + 0x18], xmm5
movss dword [esp + 0x20], xmm3
comiss xmm2, xmm4
jbe 0x417b90
movss dword [esp + 0x1c], xmm4
movss dword [esp + 0x24], xmm2
push eax
mov ecx, edi
call fcn.0040a130
push 8
mov edi, eax
lea eax, [esp + 0x1c]
push 0
push edi
push eax
call fcn.0040bc90
push 0x40800
lea eax, [esp + 0x96]
push eax
lea eax, [esp + 0x9b]
push eax
lea eax, [esp + 0x34]
push edi
push eax
call fcn.0042c060
mov al, byte [esp + 0xa7]
add esp, 0x24
mov cl, byte [esp + 0x82]
test al, al
jne 0x417be6
test cl, cl
je 0x417ed0
mov edi, dword [esp + 0x70]
mov eax, edi
mov edx, dword [esp + 0x64]
not eax
and eax, 1
add eax, 5
mov dword [edx + 0x4ac8], eax
test cl, cl
je 0x417ed9
cmp word [edx + 0x370a], 2
jne 0x417c75
test edi, edi
jne 0x417c75
push dword [esp + 0x8c]
mov edi, dword [esp + 0x8c]
lea eax, [esp + 0x48]
push edi
push eax
call fcn.00407270
push 0
push 0
mov byte [esp + 0x94], 1
movss xmm0, dword [eax]
movss dword [esp + 0x80], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x8c], xmm0
call fcn.00413fc0
mov cl, byte [esp + 0x96]
add esp, 0x14
test cl, cl
je 0x417f00
mov ecx, 0x20
jmp 0x417f11
mov ecx, dword [esp + 0x60]
xorps xmm1, xmm1
movss xmm2, dword [0x5eeaf4]
movss xmm7, dword [ecx*8 + 0x5ed914]
ucomiss xmm7, xmm2
lahf
test ah, 0x44
jnp 0x417cb6
ucomiss xmm7, xmm1
lahf
test ah, 0x44
jp 0x417ca9
cmp byte [esp + 0x81], 0
jne 0x417cb6
movss xmm3, dword [0x5eeb64]
movaps xmm6, xmm3
jmp 0x417cc4
movss xmm6, dword [esp + 0x34]
movss xmm3, dword [0x5eeb64]
movss xmm0, dword [ecx*8 + 0x5ed910]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x417cde
movss xmm4, dword [esp + 0x30]
jmp 0x417ce1
movaps xmm4, xmm3
ucomiss xmm7, xmm1
lahf
test ah, 0x44
jp 0x417d00
movss xmm2, dword [esp + 0x3c]
movss dword [esp + 0x6c], xmm2
movss xmm2, dword [0x5eeb58]
jmp 0x417d0e
movss xmm2, dword [0x5eeb58]
movss dword [esp + 0x6c], xmm2
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x417d25
movss xmm0, dword [esp + 0x38]
movss dword [esp + 0x7c], xmm0
jmp 0x417d2b
movss dword [esp + 0x7c], xmm2
movss xmm5, dword [ecx*8 + 0x5ed918]
xorps xmm3, xmm3
movss xmm2, dword [ecx*8 + 0x5ed91c]
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x74]
movaps xmm1, xmm2
mulss xmm1, dword [esp + 0x74]
cvtsi2ss xmm3, esi
xorps xmm3, xmmword [0x5eebf0]
mulss xmm5, xmm3
mulss xmm2, xmm3
subss xmm5, xmm0
subss xmm2, xmm1
mulss xmm5, dword [ecx*8 + 0x5ed910]
mulss xmm2, xmm7
addss xmm5, xmm0
movss xmm0, dword [edx + 0xdbc]
subss xmm0, dword [edx + 0x3ec0]
addss xmm2, xmm1
addss xmm5, xmm0
movss xmm0, dword [edx + 0xdc0]
subss xmm0, dword [edx + 0x3ec4]
addss xmm0, xmm2
comiss xmm6, xmm0
ja 0x417db9
movss xmm6, dword [esp + 0x6c]
minss xmm6, xmm0
comiss xmm4, xmm5
ja 0x417dc8
movss xmm4, dword [esp + 0x7c]
minss xmm4, xmm5
mov edi, dword [esp + 0x88]
lea eax, [esp + 0x58]
movss xmm5, dword [ecx*8 + 0x5ed910]
push eax
lea eax, [esp + 0x50]
movss xmm0, dword [edi + 0x14]
movss xmm1, dword [edi + 0x18]
movaps xmm2, xmm0
addss xmm0, dword [edi + 0x1c]
subss xmm2, xmm4
movaps xmm3, xmm1
addss xmm1, dword [edi + 0x20]
subss xmm3, xmm6
push edi
push eax
mulss xmm2, xmm5
mulss xmm3, xmm7
addss xmm2, xmm4
subss xmm4, xmm0
addss xmm3, xmm6
subss xmm6, xmm1
movss dword [esp + 0x74], xmm2
mulss xmm4, xmm5
mulss xmm6, xmm7
addss xmm4, xmm0
movss dword [esp + 0x88], xmm3
addss xmm6, xmm1
subss xmm4, xmm2
subss xmm6, xmm3
movss dword [esp + 0x64], xmm4
movss dword [esp + 0x68], xmm6
call fcn.00407270
mov ecx, dword [esp + 0x6c]
add esp, 0xc
xorps xmm2, xmm2
movss xmm0, dword [ecx*8 + 0x5ed910]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x4c]
movss dword [esp + 0x6c], xmm0
lahf
test ah, 0x44
jp 0x417e93
subss xmm0, dword [esp + 0x58]
movss xmm1, dword [esp + 0x68]
subss xmm1, xmm0
movss dword [esp + 0x68], xmm1
movss xmm0, dword [ecx*8 + 0x5ed914]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x50]
movss dword [esp + 0x78], xmm0
lahf
test ah, 0x44
jp 0x417ec7
subss xmm0, dword [esp + 0x5c]
movss xmm1, dword [esp + 0x7c]
subss xmm1, xmm0
movss dword [esp + 0x7c], xmm1
mov cl, byte [esp + 0x82]
jmp 0x417ee0
mov edi, dword [esp + 0x88]
jmp 0x417ee7
mov edi, dword [esp + 0x88]
mov al, byte [esp + 0x83]
cmp dword [esp + 0x70], 0
je 0x417c63
test cl, cl
jne 0x417c6b
test al, al
je 0x417f52
jmp 0x417f07
mov al, byte [esp + 0x83]
xor ecx, ecx
test al, al
setne cl
add ecx, 0x1e
mov eax, dword [0x653a14]
add ecx, ecx
movups xmm0, xmmword [eax + ecx*8 + 0x3864]
movups xmmword [esp + 8], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [eax + 0x3788]
lea eax, [esp + 8]
push eax
movss dword [esp + 0x18], xmm0
call fcn.00407c80
mov ecx, dword [esp + 0x74]
add esp, 4
mov edx, dword [esp + 0x98]
mov dword [edx + ecx*4], eax
mov eax, dword [esp + 0x70]
inc eax
mov dword [esp + 0x70], eax
cmp eax, dword [esp + 0x94]
jl 0x417ad0
xor edi, edi
mov dword [esp + 0x74], edi
cmp dword [esp + 0x28], edi
jbe 0x41829c
nop dword [eax + eax]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
mov dword [esp + 0x40], eax
test edi, edi
je 0x417fb7
cmp edi, 1
je 0x417fb7
mov dword [esp + 0x60], 3
lea eax, [esp + 0x5c]
mov dword [esp + 0x70], 0xdc0
mov dword [esp + 0x2c], 0x3ec4
jmp 0x417fd3
mov dword [esp + 0x60], 4
lea eax, [esp + 0x58]
mov dword [esp + 0x70], 0xdbc
mov dword [esp + 0x2c], 0x3ec0
mov edx, dword [esp + 0x88]
sub esp, 8
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x10]
mov dword [esp + 4], 0x40800000
movss dword [esp], xmm0
push edi
push edx
push eax
call fcn.0040a540
add esp, 0x14
lea eax, [edi + 4]
mov ecx, edx
push eax
call fcn.0040a130
push 8
mov edi, eax
lea eax, [esp + 0xc]
push 0
push edi
push eax
call fcn.0040bc90
push 0x40800
lea eax, [esp + 0x97]
push eax
lea eax, [esp + 0x9a]
push eax
lea eax, [esp + 0x24]
push edi
push eax
call fcn.0042c060
mov dl, byte [esp + 0xa7]
add esp, 0x24
cmp byte [esp + 0x82], 0
mov ecx, dword [esp + 0x64]
je 0x418069
movss xmm0, dword [ecx + 0x3ea4]
comiss xmm0, dword [0x5eeaa8]
ja 0x418071
test dl, dl
je 0x418289
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x74]
mov dword [ecx + 0x4ac8], eax
test dl, dl
je 0x41828d
mov eax, dword [esp + 0x90]
mov dword [eax], edi
cmp edi, 3
je 0x4180b1
cmp edi, 2
jne 0x4180a4
cmp byte [esp + 0x81], 0
jne 0x4180b1
movss xmm0, dword [0x5eeb64]
movaps xmm4, xmm0
jmp 0x4180bf
movss xmm4, dword [esp + 0x34]
movss xmm0, dword [0x5eeb64]
cmp edi, 1
jne 0x418258
movss xmm3, dword [esp + 0x30]
movss xmm1, dword [0x5eeb58]
movss xmm2, dword [0x5eeb58]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x70]
movss xmm0, dword [eax + 0x14]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [eax + 0x18]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [edx + ecx]
mov edx, dword [esp + 0x2c]
subss xmm0, dword [edx + ecx]
mov ecx, dword [esp + 0x54]
addss xmm0, dword [0x5eeb14]
movss dword [ecx], xmm0
movss xmm0, dword [esp + 0x5c]
comiss xmm4, xmm0
ja 0x41812f
movaps xmm4, xmm1
minss xmm4, xmm0
movss xmm0, dword [esp + 0x58]
comiss xmm3, xmm0
ja 0x418141
movaps xmm3, xmm2
minss xmm3, xmm0
mov ecx, dword [esp + 0x40]
movss xmm0, dword [eax + 0x14]
movss xmm1, dword [eax + 0x18]
movaps xmm5, xmm0
addss xmm0, dword [eax + 0x1c]
movss xmm7, dword [ecx + 0x5ed97c]
subss xmm5, xmm3
minss xmm7, dword [ecx + 0x5ed984]
movss xmm2, dword [ecx + 0x5ed978]
movaps xmm6, xmm1
minss xmm2, dword [ecx + 0x5ed980]
addss xmm1, dword [eax + 0x20]
subss xmm6, xmm4
lea ecx, [esp + 0x4c]
movss dword [esp + 0x54], xmm7
push ecx
mulss xmm5, xmm2
push eax
mulss xmm6, xmm7
lea eax, [esp + 0x4c]
push eax
addss xmm5, xmm3
movss dword [esp + 0x4c], xmm2
subss xmm3, xmm0
addss xmm6, xmm4
subss xmm4, xmm1
movss dword [esp + 0x74], xmm5
mulss xmm3, xmm2
mulss xmm4, xmm7
addss xmm3, xmm0
movss dword [esp + 0x88], xmm6
addss xmm4, xmm1
subss xmm3, xmm5
subss xmm4, xmm6
movss dword [esp + 0x58], xmm3
movss dword [esp + 0x5c], xmm4
call fcn.00407270
movss xmm0, dword [esp + 0x4c]
add esp, 0xc
xorps xmm2, xmm2
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x44]
movss dword [esp + 0x6c], xmm0
lahf
test ah, 0x44
jp 0x418225
subss xmm0, dword [esp + 0x4c]
movss xmm1, dword [esp + 0x68]
subss xmm1, xmm0
movss dword [esp + 0x68], xmm1
movss xmm0, dword [esp + 0x54]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x48]
movss dword [esp + 0x78], xmm0
lahf
test ah, 0x44
jp 0x41828d
subss xmm0, dword [esp + 0x50]
movss xmm1, dword [esp + 0x7c]
subss xmm1, xmm0
movss dword [esp + 0x7c], xmm1
jmp 0x41828d
movaps xmm3, xmm0
cmp edi, 2
jne 0x41826b
movss xmm1, dword [esp + 0x3c]
jmp 0x4180d6
movss xmm1, dword [0x5eeb58]
movaps xmm3, xmm0
test edi, edi
jne 0x4180d6
movss xmm2, dword [esp + 0x38]
jmp 0x4180de
mov edi, dword [esp + 0x74]
inc edi
mov dword [esp + 0x74], edi
cmp edi, dword [esp + 0x28]
jl 0x417f80
mov eax, dword [0x653a14]
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x64]
mov eax, dword [eax + 0x3e60]
dec dword [eax + 0xe4]
mov dword [esi + 0x148], 0
mov eax, dword [edi + 0x495c]
test eax, eax
je 0x4184d0
cmp dword [eax + 0x300], esi
jne 0x4184d0
mov eax, dword [edi + 0x4820]
cmp eax, 2
jne 0x41830a
cmp byte [edi + 0xdd9], 0
je 0x4184d0
push 0x204
push 0x203
push 0x202
push 0x201
jmp 0x418327
cmp eax, 3
jne 0x4184d0
push 0x272
push 0x271
push 0x270
push 0x26f
lea eax, [esp + 0x54]
push eax
call fcn.0040a2e0
add esp, 0x14
xorps xmm4, xmm4
movss xmm3, dword [eax]
movss xmm2, dword [eax + 4]
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x418356
ucomiss xmm2, xmm4
lahf
test ah, 0x44
jnp 0x4184db
movss xmm1, dword [edi + 0x3c]
minss xmm1, dword [edi + 0x40]
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x5eeb4c]
mulss xmm1, xmm0
movss xmm0, dword [esp + 0x30]
mulss xmm3, xmm1
mulss xmm2, xmm1
addss xmm3, dword [edi + 0x497c]
addss xmm2, dword [edi + 0x4980]
movss dword [edi + 0x497c], xmm3
movss dword [edi + 0x4980], xmm2
subss xmm0, dword [esi + 0x14]
subss xmm0, dword [esi + 0x1c]
maxss xmm3, xmm0
movss xmm0, dword [esp + 0x34]
subss xmm0, dword [esi + 0x18]
subss xmm0, dword [esi + 0x20]
movss dword [edi + 0x497c], xmm3
mov byte [edi + 0x4970], 0
mov byte [edi + 0x482b], 1
maxss xmm2, xmm0
movss dword [edi + 0x4980], xmm2
mov eax, dword [0x653a14]
movups xmm0, xmmword [eax + 0x3a64]
movups xmmword [esp + 8], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [eax + 0x3788]
lea eax, [esp + 8]
push eax
movss dword [esp + 0x18], xmm0
call fcn.00407c80
mov ecx, dword [esp + 0x9c]
add esp, 4
xorps xmm4, xmm4
mov dword [ecx], eax
cvttss2si esi, dword [edi + 0x497c]
cvttss2si edi, dword [edi + 0x4980]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movd xmm1, edi
ucomiss xmm0, xmm4
cvtdq2ps xmm1, xmm1
lahf
test ah, 0x44
jp 0x41844f
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jnp 0x4184e3
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x44]
push ecx
push eax
addss xmm0, dword [eax + 0x24]
movss dword [esp + 0x4c], xmm0
movaps xmm0, xmm1
addss xmm0, dword [eax + 0x28]
lea eax, [esp + 0x54]
push eax
movss dword [esp + 0x54], xmm0
call fcn.00407270
mov edx, dword [esp + 0x70]
add esp, 0xc
movd xmm2, esi
xorps xmm4, xmm4
cvtdq2ps xmm2, xmm2
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [edx + 0x497c]
subss xmm0, xmm2
movd xmm2, edi
cvtdq2ps xmm2, xmm2
movss dword [edx + 0x497c], xmm0
movss xmm0, dword [edx + 0x4980]
subss xmm0, xmm2
movss dword [edx + 0x4980], xmm0
jmp 0x4184e9
movss xmm1, dword [esp + 0x78]
xorps xmm4, xmm4
jmp 0x4184f0
movss xmm1, dword [esp + 0x78]
jmp 0x4184f0
movss xmm1, dword [esp + 0x78]
mov esi, dword [esp + 0x88]
movss xmm0, dword [esp + 0x6c]
movss xmm2, dword [0x5eeb58]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x418532
test dword [esi + 0xc], 0x100
movss dword [esi + 0x24], xmm0
movss dword [esi + 0x28], xmm1
mov ecx, dword [0x653a14]
jne 0x418532
comiss xmm4, dword [ecx + 0x5a7c]
jb 0x418532
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x5a7c], eax
movss xmm0, dword [esp + 0x68]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x418584
test dword [esi + 0xc], 0x100
cvttss2si eax, xmm0
movd xmm1, eax
cvttss2si eax, dword [esp + 0x7c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x14], xmm1
movss dword [esi + 0x18], xmm0
mov edx, dword [0x653a14]
jne 0x418584
comiss xmm4, dword [edx + 0x5a7c]
jb 0x418584
mov ecx, dword [edx + 0x1c]
mov dword [edx + 0x5a7c], ecx
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
mov al, byte [esp + 0x80]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
pop esi
pop edi
add esp, 0x7c
ret
xor al, al
pop edi
add esp, 0x7c
ret