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

Disassembly:
sub esp, 0x7c
mov edx, dword [0x439050]
push edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x60], edx
test byte [edi + 0xc], 0x42
jne 0x41b9ed
cmp byte [edi + 0xc4], 0
jg 0x41b9ed
cmp byte [edi + 0xc5], 0
jg 0x41b9ed
cmp byte [edi + 0xab], 0
je 0x41b9ed
movss xmm2, dword [edx + 0x3bcc]
xor eax, eax
movss xmm0, dword [edi + 0x4c]
movaps xmm1, xmm2
addss xmm0, dword [0x431830]
mulss xmm2, dword [0x432f88]
mov cl, byte [edx + 0x4a]
mulss xmm1, dword [0x432fc4]
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 [0x432fb0]
cvttss2si esi, xmm0
je 0x41ae85
movss xmm0, dword [0x432fd0]
jmp 0x41ae88
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 0x41aec2
test byte [edi + 0xc], 1
jne 0x41aec2
mov ecx, edi
mov byte [esp + 0x81], 1
call fcn.00418d20
fsubr dword [esp + 0x34]
fstp dword [esp + 0x34]
jmp 0x41aeca
mov byte [esp + 0x81], 0
movss xmm1, dword [0x433008]
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.00414930
xor eax, eax
add esp, 4
mov dword [esp + 0x70], eax
cmp dword [esp + 0x94], eax
jle 0x41b3be
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]
movss xmm5, dword [ecx*8 + 0x431e10]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x20]
mov dword [esp + 0x60], ecx
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [ecx*8 + 0x431e08]
mulss xmm2, dword [ecx*8 + 0x431e0c]
addss xmm3, xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x74]
addss xmm2, xmm1
movss xmm1, dword [ecx*8 + 0x431e14]
movaps xmm6, xmm3
subss xmm6, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0x74]
movaps xmm4, xmm2
subss xmm4, xmm0
movss dword [esp + 0x18], xmm6
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm4
mulss xmm5, xmm0
mulss xmm1, xmm0
addss xmm5, xmm3
addss xmm1, xmm2
comiss xmm6, xmm5
movss dword [esp + 0x20], xmm5
movss dword [esp + 0x24], xmm1
jbe 0x41afd5
movss dword [esp + 0x18], xmm5
movss dword [esp + 0x20], xmm6
comiss xmm4, xmm1
jbe 0x41afe6
movss dword [esp + 0x1c], xmm1
movss dword [esp + 0x24], xmm4
push eax
mov ecx, edi
call fcn.0040d670
push 8
mov edi, eax
lea eax, [esp + 0x1c]
push 0
push edi
push eax
call fcn.0040f080
push 0x40800
lea eax, [esp + 0x96]
push eax
lea eax, [esp + 0x9b]
push eax
lea eax, [esp + 0x34]
push edi
push eax
call fcn.0041cbf0
mov al, byte [esp + 0xa7]
add esp, 0x24
mov cl, byte [esp + 0x82]
test al, al
jne 0x41b03c
test cl, cl
je 0x41b326
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 0x41b32f
cmp word [edx + 0x370a], 2
jne 0x41b0cb
test edi, edi
jne 0x41b0cb
push dword [esp + 0x8c]
mov edi, dword [esp + 0x8c]
lea eax, [esp + 0x48]
push edi
push eax
call fcn.0040a820
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.00417350
mov cl, byte [esp + 0x96]
add esp, 0x14
test cl, cl
je 0x41b356
mov ecx, 0x20
jmp 0x41b367
mov ecx, dword [esp + 0x60]
xorps xmm1, xmm1
movss xmm2, dword [0x431830]
movss xmm7, dword [ecx*8 + 0x431e0c]
ucomiss xmm7, xmm2
lahf
test ah, 0x44
jnp 0x41b10c
ucomiss xmm7, xmm1
lahf
test ah, 0x44
jp 0x41b0ff
cmp byte [esp + 0x81], 0
jne 0x41b10c
movss xmm3, dword [0x433014]
movaps xmm6, xmm3
jmp 0x41b11a
movss xmm6, dword [esp + 0x34]
movss xmm3, dword [0x433014]
movss xmm0, dword [ecx*8 + 0x431e08]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x41b134
movss xmm4, dword [esp + 0x30]
jmp 0x41b137
movaps xmm4, xmm3
ucomiss xmm7, xmm1
lahf
test ah, 0x44
jp 0x41b156
movss xmm2, dword [esp + 0x3c]
movss dword [esp + 0x6c], xmm2
movss xmm2, dword [0x433008]
jmp 0x41b164
movss xmm2, dword [0x433008]
movss dword [esp + 0x6c], xmm2
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x41b17b
movss xmm0, dword [esp + 0x38]
movss dword [esp + 0x7c], xmm0
jmp 0x41b181
movss dword [esp + 0x7c], xmm2
movss xmm5, dword [ecx*8 + 0x431e10]
xorps xmm3, xmm3
movss xmm2, dword [ecx*8 + 0x431e14]
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x74]
movaps xmm1, xmm2
mulss xmm1, dword [esp + 0x74]
cvtsi2ss xmm3, esi
xorps xmm3, xmmword [0x431860]
mulss xmm5, xmm3
mulss xmm2, xmm3
subss xmm5, xmm0
subss xmm2, xmm1
mulss xmm5, dword [ecx*8 + 0x431e08]
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 0x41b20f
movss xmm6, dword [esp + 0x6c]
minss xmm6, xmm0
comiss xmm4, xmm5
ja 0x41b21e
movss xmm4, dword [esp + 0x7c]
minss xmm4, xmm5
mov edi, dword [esp + 0x88]
lea eax, [esp + 0x58]
movss xmm5, dword [ecx*8 + 0x431e08]
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.0040a820
mov ecx, dword [esp + 0x6c]
add esp, 0xc
xorps xmm2, xmm2
movss xmm0, dword [ecx*8 + 0x431e08]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x4c]
movss dword [esp + 0x6c], xmm0
lahf
test ah, 0x44
jp 0x41b2e9
subss xmm0, dword [esp + 0x58]
movss xmm1, dword [esp + 0x68]
subss xmm1, xmm0
movss dword [esp + 0x68], xmm1
movss xmm0, dword [ecx*8 + 0x431e0c]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x50]
movss dword [esp + 0x78], xmm0
lahf
test ah, 0x44
jp 0x41b31d
subss xmm0, dword [esp + 0x5c]
movss xmm1, dword [esp + 0x7c]
subss xmm1, xmm0
movss dword [esp + 0x7c], xmm1
mov cl, byte [esp + 0x82]
jmp 0x41b336
mov edi, dword [esp + 0x88]
jmp 0x41b33d
mov edi, dword [esp + 0x88]
mov al, byte [esp + 0x83]
cmp dword [esp + 0x70], 0
je 0x41b0b9
test cl, cl
jne 0x41b0c1
test al, al
je 0x41b3a8
jmp 0x41b35d
mov al, byte [esp + 0x83]
xor ecx, ecx
test al, al
setne cl
add ecx, 0x1e
mov eax, dword [0x439050]
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.0040b230
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 0x41af20
xor edi, edi
mov dword [esp + 0x74], edi
cmp dword [esp + 0x28], edi
jbe 0x41b6ec
nop
lea eax, [edi*8]
sub eax, edi
shl eax, 2
mov dword [esp + 0x40], eax
test edi, edi
je 0x41b407
cmp edi, 1
je 0x41b407
mov dword [esp + 0x60], 3
lea eax, [esp + 0x5c]
mov dword [esp + 0x70], 0xdc0
mov dword [esp + 0x2c], 0x3ec4
jmp 0x41b423
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.0040da90
add esp, 0x14
lea eax, [edi + 4]
mov ecx, edx
push eax
call fcn.0040d670
push 8
mov edi, eax
lea eax, [esp + 0xc]
push 0
push edi
push eax
call fcn.0040f080
push 0x40800
lea eax, [esp + 0x97]
push eax
lea eax, [esp + 0x9a]
push eax
lea eax, [esp + 0x24]
push edi
push eax
call fcn.0041cbf0
mov dl, byte [esp + 0xa7]
add esp, 0x24
cmp byte [esp + 0x82], 0
mov ecx, dword [esp + 0x64]
je 0x41b4b9
movss xmm0, dword [ecx + 0x3ea4]
comiss xmm0, dword [0x432f7c]
ja 0x41b4c1
test dl, dl
je 0x41b6d9
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x74]
mov dword [ecx + 0x4ac8], eax
test dl, dl
je 0x41b6dd
mov eax, dword [esp + 0x90]
mov dword [eax], edi
cmp edi, 3
je 0x41b501
cmp edi, 2
jne 0x41b4f4
cmp byte [esp + 0x81], 0
jne 0x41b501
movss xmm0, dword [0x433014]
movaps xmm4, xmm0
jmp 0x41b50f
movss xmm4, dword [esp + 0x34]
movss xmm0, dword [0x433014]
cmp edi, 1
jne 0x41b6a8
movss xmm3, dword [esp + 0x30]
movss xmm1, dword [0x433008]
movss xmm2, dword [0x433008]
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 [0x432fd0]
movss dword [ecx], xmm0
movss xmm0, dword [esp + 0x5c]
comiss xmm4, xmm0
ja 0x41b57f
movaps xmm4, xmm1
minss xmm4, xmm0
movss xmm0, dword [esp + 0x58]
comiss xmm3, xmm0
ja 0x41b591
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 + 0x431e74]
subss xmm5, xmm3
minss xmm7, dword [ecx + 0x431e7c]
movss xmm2, dword [ecx + 0x431e70]
movaps xmm6, xmm1
minss xmm2, dword [ecx + 0x431e78]
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.0040a820
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 0x41b675
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 0x41b6dd
subss xmm0, dword [esp + 0x50]
movss xmm1, dword [esp + 0x7c]
subss xmm1, xmm0
movss dword [esp + 0x7c], xmm1
jmp 0x41b6dd
movaps xmm3, xmm0
cmp edi, 2
jne 0x41b6bb
movss xmm1, dword [esp + 0x3c]
jmp 0x41b526
movss xmm1, dword [0x433008]
movaps xmm3, xmm0
test edi, edi
jne 0x41b526
movss xmm2, dword [esp + 0x38]
jmp 0x41b52e
mov edi, dword [esp + 0x74]
inc edi
mov dword [esp + 0x74], edi
cmp edi, dword [esp + 0x28]
jl 0x41b3d0
mov eax, dword [0x439050]
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 0x41b920
cmp dword [eax + 0x300], esi
jne 0x41b920
mov eax, dword [edi + 0x4820]
cmp eax, 2
jne 0x41b75a
cmp byte [edi + 0xdd9], 0
je 0x41b920
push 0x204
push 0x203
push 0x202
push 0x201
jmp 0x41b777
cmp eax, 3
jne 0x41b920
push 0x272
push 0x271
push 0x270
push 0x26f
lea eax, [esp + 0x54]
push eax
call fcn.0040d820
add esp, 0x14
xorps xmm4, xmm4
movss xmm3, dword [eax]
movss xmm2, dword [eax + 4]
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x41b7a6
ucomiss xmm2, xmm4
lahf
test ah, 0x44
jnp 0x41b92b
movss xmm1, dword [edi + 0x3c]
minss xmm1, dword [edi + 0x40]
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x432ffc]
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 [0x439050]
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.0040b230
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 0x41b89f
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jnp 0x41b933
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.0040a820
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 0x41b939
movss xmm1, dword [esp + 0x78]
xorps xmm4, xmm4
jmp 0x41b940
movss xmm1, dword [esp + 0x78]
jmp 0x41b940
movss xmm1, dword [esp + 0x78]
mov esi, dword [esp + 0x88]
movss xmm0, dword [esp + 0x6c]
movss xmm2, dword [0x433008]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x41b982
test dword [esi + 0xc], 0x100
movss dword [esi + 0x24], xmm0
movss dword [esi + 0x28], xmm1
mov ecx, dword [0x439050]
jne 0x41b982
comiss xmm4, dword [ecx + 0x5a7c]
jb 0x41b982
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x5a7c], eax
movss xmm0, dword [esp + 0x68]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x41b9d4
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 [0x439050]
jne 0x41b9d4
comiss xmm4, dword [edx + 0x5a7c]
jb 0x41b9d4
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