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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [0x10103040]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x10]
mov ecx, 0x10175a17
push edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x4c], eax
call fcn.100b6430
test byte [esi + 8], 0x42
mov edi, dword [0x1010713c]
jne 0x1004816e
cmp dword [esi + 0x90], 0
jg 0x1004816e
cmp dword [esi + 0x94], 0
jg 0x1004816e
cmp byte [esi + 0x7b], 0
je 0x1004816e
movss xmm0, dword [esi + 0x44]
xor eax, eax
movss xmm2, dword [edi + 0x18bc]
mov edx, 4
addss xmm0, dword [0x100fabf8]
mov cl, byte [edi + 0xaf]
movaps xmm1, xmm2
mulss xmm2, dword [0x100fab98]
test cl, cl
mulss xmm1, dword [0x100fac14]
cmovne eax, edx
mov dword [esp + 0x48], eax
addss xmm0, xmm2
maxss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100fabd4]
cvttss2si esi, xmm0
je 0x10047915
movss xmm0, dword [0x100facb0]
jmp 0x10047918
xorps xmm0, xmm0
movss dword [esp + 0x10], xmm0
mov ecx, str.RESIZE
movss xmm0, dword [0x100fad98]
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x28], xmm0
movss dword [esp + 0xc], xmm0
call fcn.1004e3c0
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0xc], ecx
jle 0x10047ce8
nop word [eax + eax]
mov eax, dword [esp + 0x18]
lea edx, [ecx + ecx*2]
xorps xmm6, xmm6
mov dword [esp + 0x44], edx
cvtsi2ss xmm6, esi
movss xmm0, dword [eax + 0xc]
movss xmm1, dword [eax + 0x10]
movaps xmm3, xmm0
addss xmm3, dword [eax + 0x14]
movaps xmm2, xmm1
addss xmm2, dword [eax + 0x18]
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [edx*8 + 0x10168960]
mulss xmm2, dword [edx*8 + 0x10168964]
addss xmm3, xmm0
movss xmm0, dword [edx*8 + 0x10168968]
movaps xmm5, xmm0
mulss xmm0, dword [esp + 0x10]
addss xmm2, xmm1
mulss xmm5, xmm6
movss xmm1, dword [edx*8 + 0x1016896c]
movaps xmm4, xmm1
mulss xmm1, dword [esp + 0x10]
mulss xmm4, xmm6
addss xmm5, xmm3
subss xmm3, xmm0
addss xmm4, xmm2
subss xmm2, xmm1
movss dword [esp + 0x58], xmm5
comiss xmm3, xmm5
movss dword [esp + 0x50], xmm3
movss dword [esp + 0x54], xmm2
movss dword [esp + 0x5c], xmm4
jbe 0x10047a13
movss dword [esp + 0x50], xmm5
movss dword [esp + 0x58], xmm3
comiss xmm2, xmm4
jbe 0x10047a24
movss dword [esp + 0x54], xmm4
movss dword [esp + 0x5c], xmm2
push 0x2020
lea edx, [esp + 0xe]
push edx
lea edx, [esp + 0x13]
push edx
push ecx
mov ecx, eax
call fcn.10040b10
mov edx, eax
lea ecx, [esp + 0x5c]
call fcn.10076220
mov dl, byte [esp + 0x17]
add esp, 0xc
test dl, dl
jne 0x10047a5d
mov al, byte [esp + 0xa]
test al, al
je 0x10047c78
mov ecx, dword [esp + 0x14]
mov eax, ecx
not eax
and eax, 1
add eax, 5
mov dword [edi + 0x1c74], eax
mov al, byte [esp + 0xa]
test al, al
je 0x10047c7c
cmp byte [edi + 0x3d5], 0
je 0x10047ad2
test ecx, ecx
jne 0x10047ad2
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x64]
mov edx, dword [esp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.10046e90
add esp, 8
movss xmm0, dword [eax]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0xc], xmm0
call fcn.10041040
cmp byte [esp + 0xa], 0
je 0x10047c92
mov ecx, 0x21
jmp 0x10047ca0
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x3c]
movd xmm4, esi
cvtdq2ps xmm4, xmm4
movss xmm3, dword [eax*8 + 0x1016896c]
xorps xmm4, xmmword [0x100fb030]
movaps xmm2, xmm3
mulss xmm2, dword [esp + 0x10]
movaps xmm7, xmm4
movss xmm1, dword [eax*8 + 0x10168968]
movss xmm6, dword [eax*8 + 0x10168964]
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0x10]
movss xmm5, dword [eax*8 + 0x10168960]
mov eax, dword [esp + 0x18]
mov edx, eax
mulss xmm4, xmm3
mulss xmm7, xmm1
movss xmm1, dword [edi + 0xe4]
subss xmm4, xmm2
subss xmm1, dword [edi + 0x19e0]
subss xmm7, xmm0
mulss xmm4, xmm6
mulss xmm7, xmm5
addss xmm4, xmm2
addss xmm7, xmm0
movss xmm0, dword [edi + 0xe0]
subss xmm0, dword [edi + 0x19dc]
addss xmm1, xmm4
addss xmm7, xmm0
movss xmm0, dword [eax + 0xc]
movaps xmm2, xmm0
addss xmm0, dword [eax + 0x14]
movss dword [esp + 0x24], xmm1
movss xmm1, dword [eax + 0x10]
movss xmm4, dword [esp + 0x24]
subss xmm2, xmm7
movaps xmm3, xmm1
addss xmm1, dword [eax + 0x18]
subss xmm3, xmm4
mulss xmm2, xmm5
mulss xmm3, xmm6
addss xmm2, xmm7
subss xmm7, xmm0
addss xmm3, xmm4
subss xmm4, xmm1
movss dword [esp + 0x1c], xmm2
mulss xmm7, xmm5
mulss xmm4, xmm6
addss xmm7, xmm0
movss dword [esp + 0x20], xmm3
addss xmm4, xmm1
subss xmm7, xmm2
subss xmm4, xmm3
movss dword [esp + 0x2c], xmm7
movss dword [esp + 0xc], xmm7
movss dword [esp + 0x30], xmm4
push dword [esp + 0x30]
movss dword [esp + 0x28], xmm4
push dword [esp + 0x30]
call fcn.10046e90
mov ecx, dword [esp + 0x4c]
add esp, 8
xorps xmm2, xmm2
movss xmm0, dword [ecx*8 + 0x10168960]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x28], xmm0
lahf
test ah, 0x44
jp 0x10047c3c
subss xmm0, dword [esp + 0xc]
movss xmm1, dword [esp + 0x1c]
subss xmm1, xmm0
movss dword [esp + 0x1c], xmm1
movss xmm0, dword [ecx*8 + 0x10168964]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x40]
movss dword [esp + 0xc], xmm0
lahf
test ah, 0x44
jp 0x10047c70
subss xmm0, dword [esp + 0x24]
movss xmm1, dword [esp + 0x20]
subss xmm1, xmm0
movss dword [esp + 0x20], xmm1
mov al, byte [esp + 0xa]
mov dl, byte [esp + 0xb]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10047abd
test al, al
jne 0x10047ac8
test dl, dl
je 0x10047cda
jmp 0x10047c96
mov dl, byte [esp + 0xb]
xor ecx, ecx
test dl, dl
setne cl
add ecx, 0x1f
mov eax, dword [0x1010713c]
add ecx, ecx
movups xmm0, xmmword [eax + ecx*8 + 0x15a8]
lea ecx, [esp + 0x6c]
movups xmmword [esp + 0x6c], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [eax + 0x1500]
movss dword [esp + 0x78], xmm0
call fcn.1003d8c0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [ebp + 0xc]
jl 0x10047960
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x48], ecx
jbe 0x10047f08
nop dword [eax + eax]
mov edx, dword [esp + 0x18]
movd xmm0, esi
push ecx
cvtdq2ps xmm3, xmm0
mov dword [esp], 0x40800000
push ecx
lea ecx, [esp + 0x74]
call fcn.100476f0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x12]
add esp, 8
push 0x20
push eax
lea eax, [esp + 0x13]
push eax
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
call fcn.10040b10
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.10076220
mov dl, byte [esp + 0x16]
add esp, 0xc
cmp byte [esp + 0xb], 0
je 0x10047d67
movss xmm0, dword [edi + 0x19b4]
comiss xmm0, dword [0x100fab58]
ja 0x10047d6f
test dl, dl
je 0x10047ef5
mov ecx, dword [esp + 0x10]
mov eax, ecx
and eax, 1
add eax, 3
mov dword [edi + 0x1c74], eax
test dl, dl
je 0x10047ef9
mov eax, dword [esp + 0x60]
xorps xmm4, xmm4
movss dword [esp + 0xc], xmm4
xorps xmm5, xmm5
movss dword [esp + 0x14], xmm5
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
movss xmm6, dword [eax + 0xc]
movss xmm7, dword [eax + 0x10]
movaps xmm0, xmm6
movaps xmm1, xmm7
test ecx, ecx
jne 0x10047dd3
movss xmm1, dword [edi + 0xe4]
subss xmm1, dword [edi + 0x19e0]
addss xmm1, dword [0x100facb0]
jmp 0x10047e0e
cmp ecx, 1
jne 0x10047de2
movss xmm5, dword [0x100fabf8]
jmp 0x10047df6
cmp ecx, 2
jne 0x10047df1
movss xmm4, dword [0x100fabf8]
jmp 0x10047db9
cmp ecx, 3
jne 0x10047e1a
movss xmm0, dword [edi + 0xe0]
subss xmm0, dword [edi + 0x19dc]
addss xmm0, dword [0x100facb0]
movss dword [esp + 0xc], xmm4
movss dword [esp + 0x14], xmm5
movaps xmm3, xmm7
lea ecx, [esp + 0x3c]
addss xmm7, dword [eax + 0x18]
subss xmm3, xmm1
movaps xmm2, xmm6
addss xmm6, dword [eax + 0x14]
subss xmm2, xmm0
mov edx, eax
mulss xmm3, xmm4
mulss xmm2, xmm5
addss xmm3, xmm1
subss xmm1, xmm7
addss xmm2, xmm0
subss xmm0, xmm6
movss dword [esp + 0x20], xmm3
mulss xmm1, xmm4
mulss xmm0, xmm5
addss xmm1, xmm7
movss dword [esp + 0x1c], xmm2
addss xmm0, xmm6
subss xmm1, xmm3
subss xmm0, xmm2
movss dword [esp + 0x38], xmm1
push dword [esp + 0x38]
movss dword [esp + 0x38], xmm0
push dword [esp + 0x38]
call fcn.10046e90
movss xmm0, dword [esp + 0x1c]
add esp, 8
xorps xmm2, xmm2
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x28], xmm0
lahf
test ah, 0x44
jp 0x10047ec4
subss xmm0, dword [esp + 0x34]
movss xmm1, dword [esp + 0x1c]
subss xmm1, xmm0
movss dword [esp + 0x1c], xmm1
movss xmm0, dword [esp + 0xc]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x40]
movss dword [esp + 0xc], xmm0
lahf
test ah, 0x44
jp 0x10047ef5
subss xmm0, dword [esp + 0x38]
movss xmm1, dword [esp + 0x20]
subss xmm1, xmm0
movss dword [esp + 0x20], xmm1
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x48]
jl 0x10047d00
mov eax, dword [0x1010713c]
mov esi, dword [eax + 0x199c]
cmp dword [esi + 0x1c0], 0
jg 0x10047f34
push 0x4c2
push 0x100c0510
push str.Size___0
call dword [sym.imp.ucrtbased.dll__wassert]
add esp, 0xc
dec dword [esi + 0x1c0]
mov eax, dword [edi + 0x1aec]
mov esi, dword [esp + 0x18]
test eax, eax
je 0x100480c5
cmp dword [eax + 0x2f0], esi
jne 0x100480c5
cmp dword [edi + 0x1ad4], 3
xorps xmm1, xmm1
xorps xmm3, xmm3
movss dword [esp + 0x10], xmm1
movss dword [esp + 0x24], xmm3
jne 0x10047fac
cmp byte [edi + 0xf9], 0
je 0x10047fac
push ecx
mov dword [esp], 0
lea ecx, [esp + 0x68]
push 0
mov edx, 1
call fcn.10051890
add esp, 8
movss xmm3, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [esp + 0x24], xmm3
movss dword [esp + 0x10], xmm1
cmp dword [edi + 0x1ad4], 4
jne 0x10047fe8
push ecx
mov dword [esp], 0
lea ecx, [esp + 0x40]
push 0
xorps xmm3, xmm3
mov edx, 2
call fcn.10051890
add esp, 8
movss xmm3, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [esp + 0x24], xmm3
movss dword [esp + 0x10], xmm1
xorps xmm2, xmm2
ucomiss xmm3, xmm2
lahf
test ah, 0x44
jp 0x10048001
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x100480c8
movss xmm1, dword [edi + 0xa4]
lea ecx, [esp + 0x6c]
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x100fad60]
mov eax, dword [0x1010713c]
minss xmm1, dword [edi + 0xa8]
mov byte [edi + 0x1b00], 0
mov byte [edi + 0x1b0f], 1
mulss xmm1, xmm0
movups xmm0, xmmword [eax + 0x17b8]
cvttss2si esi, xmm1
movups xmmword [esp + 0x6c], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [eax + 0x1500]
movss dword [esp + 0x78], xmm0
call fcn.1003d8c0
movss xmm1, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
movd xmm0, esi
mov esi, dword [esp + 0x18]
mov edx, esi
cvtdq2ps xmm0, xmm0
mov dword [ecx], eax
lea ecx, [esp + 0x2c]
mulss xmm1, xmm0
addss xmm1, dword [esi + 0x1c]
movss dword [esp + 0x2c], xmm1
movss xmm1, dword [esp + 0x10]
mulss xmm1, xmm0
addss xmm1, dword [esi + 0x20]
movss dword [esp + 0x30], xmm1
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.10046e90
add esp, 8
xorps xmm2, xmm2
movss xmm0, dword [eax]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + 4]
jmp 0x100480ce
xorps xmm2, xmm2
movss xmm0, dword [esp + 0xc]
movss xmm1, dword [esp + 0x28]
movss xmm3, dword [0x100fad98]
ucomiss xmm1, xmm3
lahf
test ah, 0x44
jnp 0x10048110
test dword [esi + 8], 0x100
mov ecx, dword [0x1010713c]
movss dword [esi + 0x1c], xmm1
movss dword [esi + 0x20], xmm0
jne 0x10048110
comiss xmm2, dword [ecx + 0x2c50]
jb 0x10048110
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2c50], eax
movss xmm0, dword [esp + 0x1c]
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jnp 0x10048162
test dword [esi + 8], 0x100
cvttss2si eax, xmm0
mov ecx, dword [0x1010713c]
movd xmm1, eax
cvttss2si eax, dword [esp + 0x20]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0xc], xmm1
movss dword [esi + 0x10], xmm0
jne 0x10048162
comiss xmm2, dword [ecx + 0x2c50]
jb 0x10048162
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2c50], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.100b3fd0
mov esp, ebp
pop ebp
ret