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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x134
mov eax, dword [0x507b40]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
lea eax, [ebp + 8]
mov ebx, ecx
push eax
push 0
push eax
mov dword [esp + 0x28], ebx
call fcn.0040207a
movss xmm0, dword [ebx + 0x34]
lea eax, [esp + 0x78]
cvtps2pd xmm0, xmm0
sub esp, 0xc
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0
mulsd xmm0, qword [0x4cd6f0]
cvtpd2ps xmm0, xmm0
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm0
mov dword [esp], 0
push eax
call fcn.004024c5
movss xmm1, dword [ebx + 0x34]
lea eax, [esp + 0xb8]
cvtps2pd xmm1, xmm1
sub esp, 0xc
movaps xmm0, xmm1
mulsd xmm1, qword [0x4cd6f0]
mulsd xmm0, qword [0x4d54f0]
cvtpd2ps xmm0, xmm0
movss dword [esp + 8], xmm0
cvtpd2ps xmm0, xmm1
movss dword [esp + 4], xmm0
mov dword [esp], 0
push eax
call fcn.004024c5
movss xmm1, dword [ebx + 0x34]
lea eax, [esp + 0xf8]
cvtps2pd xmm1, xmm1
sub esp, 0xc
movaps xmm0, xmm1
mulsd xmm1, qword [0x4d54f0]
mulsd xmm0, qword [0x4cd6f0]
cvtpd2ps xmm0, xmm0
movss dword [esp + 8], xmm0
cvtpd2ps xmm0, xmm1
movss dword [esp + 4], xmm0
mov dword [esp], 0
push eax
call fcn.004024c5
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x7c]
push eax
push eax
call fcn.00401b6e
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0xbc]
push eax
push eax
call fcn.00401b6e
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0xfc]
push eax
push eax
call fcn.00401b6e
mov eax, dword [ebx + 8]
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x2c]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov eax, dword [ebx + 4]
test eax, eax
jle 0x4859fe
xor ebx, ebx
lea esi, [ecx + 0x18]
mov dword [esp + 0x2c], ebx
xorps xmm0, xmm0
nop dword [eax + eax]
mov edi, dword [esp + 0x1c]
mov edi, dword [edi + 0xc]
movss xmm2, dword [ebx + edi + 0x28]
comiss xmm2, xmm0
jb 0x485905
movss xmm0, dword [ebx + edi + 0x2c]
shufps xmm0, xmm0, 0
shufps xmm2, xmm2, 0
divps xmm2, xmm0
movups xmm1, xmmword [ebx + edi + 0x30]
movss xmm0, dword [ebx + edi + 0x18]
mulps xmm2, xmm1
cvtps2pd xmm0, xmm0
movups xmmword [esp + 0x30], xmm2
call fcn.004ad5e0
movaps xmm1, xmm0
movss xmm0, dword [ebx + edi + 0x20]
cvtps2pd xmm0, xmm0
mulsd xmm1, xmm0
movss xmm0, dword [ebx + edi]
cvtps2pd xmm0, xmm0
addsd xmm1, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
movss dword [esp + 0x18], xmm0
movss xmm0, dword [ebx + edi + 0x18]
cvtps2pd xmm0, xmm0
call fcn.004ad420
movaps xmm1, xmm0
mov eax, dword [esp + 0x10]
movss xmm0, dword [ebx + edi + 0x20]
movss xmm2, dword [ebx + edi + 4]
cvtps2pd xmm0, xmm0
movss dword [esp + 0x20], xmm2
mulsd xmm1, xmm0
movss xmm0, dword [ebx + edi + 8]
cvtps2pd xmm0, xmm0
addsd xmm1, xmm0
movss xmm0, dword [esp + 0xb0]
addss xmm0, dword [esp + 0x18]
cvtsd2ss xmm1, xmm1
movss dword [esi + eax - 0x18], xmm0
movss xmm0, dword [esp + 0xac]
mov eax, dword [esp + 0x10]
addss xmm0, xmm2
movss dword [esp + 0x24], xmm1
xorps xmm2, xmm2
movss dword [esi + eax - 0x14], xmm0
movaps xmm0, xmm1
subss xmm0, dword [esp + 0xa8]
mov eax, dword [esp + 0x10]
movups xmm1, xmmword [esp + 0x30]
comiss xmm1, dword [0x4ca598]
movss dword [esi + eax - 0x10], xmm0
jb 0x4854fd
mov dword [esp + 0x14], 0xff
jmp 0x485530
comiss xmm2, xmm1
jb 0x48550c
mov dword [esp + 0x14], 0
jmp 0x485530
movaps xmm0, xmm1
mulss xmm0, dword [0x4cb848]
addss xmm0, dword [0x4cb2fc]
call fcn.00498b50
movups xmm1, xmmword [esp + 0x30]
mov dword [esp + 0x14], eax
xorps xmm2, xmm2
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
comiss xmm0, dword [0x4ca598]
movaps xmmword [esp + 0x40], xmm0
jb 0x48554c
mov ebx, 0xff
jmp 0x485571
comiss xmm2, xmm0
jb 0x485555
xor ebx, ebx
jmp 0x485571
mulss xmm0, dword [0x4cb848]
addss xmm0, dword [0x4cb2fc]
call fcn.00498b50
movups xmm1, xmmword [esp + 0x30]
mov ebx, eax
movaps xmm0, xmm1
xorps xmm2, xmm2
shufps xmm0, xmm1, 0xaa
comiss xmm0, dword [0x4ca598]
movups xmmword [esp + 0x50], xmm0
jb 0x485590
mov edi, 0xff
jmp 0x4855b8
comiss xmm2, xmm0
jb 0x485599
xor edi, edi
jmp 0x4855b8
mulss xmm0, dword [0x4cb848]
addss xmm0, dword [0x4cb2fc]
call fcn.00498b50
movups xmm1, xmmword [esp + 0x30]
mov edi, eax
xorps xmm2, xmm2
movaps xmm0, xmm1
shufps xmm0, xmm1, 0xff
comiss xmm0, dword [0x4ca598]
movups xmmword [esp + 0x60], xmm0
jb 0x4855d4
mov ecx, 0xff
jmp 0x4855f9
comiss xmm2, xmm0
jb 0x4855dd
xor ecx, ecx
jmp 0x4855f9
mulss xmm0, dword [0x4cb848]
addss xmm0, dword [0x4cb2fc]
call fcn.00498b50
movups xmm1, xmmword [esp + 0x30]
mov ecx, eax
mov eax, dword [esp + 0x10]
shl ecx, 8
or ecx, dword [esp + 0x14]
shl ecx, 8
or ecx, ebx
shl ecx, 8
or ecx, edi
comiss xmm1, dword [0x4ca598]
mov dword [esi + eax - 0xc], ecx
mov eax, dword [esp + 0x10]
mov dword [esi + eax - 8], 0
mov eax, dword [esp + 0x10]
mov dword [esi + eax - 4], 0
movss xmm0, dword [esp + 0xf0]
addss xmm0, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
movss dword [esi + eax], xmm0
movss xmm0, dword [esp + 0xec]
addss xmm0, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
movss dword [esi + eax + 4], xmm0
movss xmm0, dword [esp + 0x24]
subss xmm0, dword [esp + 0xe8]
mov eax, dword [esp + 0x10]
movss dword [esi + eax + 8], xmm0
jb 0x485687
mov dword [esp + 0x14], 0xff
jmp 0x4856b5
xorps xmm0, xmm0
comiss xmm0, xmm1
jb 0x485699
mov dword [esp + 0x14], 0
jmp 0x4856b5
movaps xmm0, xmm1
mulss xmm0, dword [0x4cb848]
addss xmm0, dword [0x4cb2fc]
call fcn.00498b50
mov dword [esp + 0x14], eax
movaps xmm0, xmmword [esp + 0x40]
xorps xmm1, xmm1
comiss xmm0, dword [0x4ca598]
jb 0x4856cd
mov ebx, 0xff
jmp 0x4856f0
comiss xmm1, xmm0
jb 0x4856d6
xor ebx, ebx
jmp 0x4856f0
mulss xmm0, dword [0x4cb848]
addss xmm0, dword [0x4cb2fc]
call fcn.00498b50
mov ebx, eax
xorps xmm1, xmm1
movups xmm0, xmmword [esp + 0x50]
comiss xmm0, dword [0x4ca598]
jb 0x485705
mov edi, 0xff
jmp 0x485725
comiss xmm1, xmm0
jb 0x48570e
xor edi, edi
jmp 0x485725
mulss xmm0, dword [0x4cb848]
addss xmm0, dword [0x4cb2fc]
call fcn.00498b50
mov edi, eax
movups xmm0, xmmword [esp + 0x60]
xorps xmm1, xmm1
comiss xmm0, dword [0x4ca598]
jb 0x48573d
mov ecx, 0xff
jmp 0x485760
comiss xmm1, xmm0
jb 0x485746
xor ecx, ecx
jmp 0x485760
mulss xmm0, dword [0x4cb848]
addss xmm0, dword [0x4cb2fc]
call fcn.00498b50
mov ecx, eax
xorps xmm1, xmm1
mov eax, dword [esp + 0x10]
shl ecx, 8
or ecx, dword [esp + 0x14]
shl ecx, 8
or ecx, ebx
shl ecx, 8
or ecx, edi
mov dword [esi + eax + 0xc], ecx
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0x10], 0x3f800000
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0x14], 0
movss xmm0, dword [esp + 0x130]
addss xmm0, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
movss dword [esi + eax + 0x18], xmm0
movss xmm0, dword [esp + 0x12c]
addss xmm0, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
movss dword [esi + eax + 0x1c], xmm0
movss xmm0, dword [esp + 0x24]
subss xmm0, dword [esp + 0x128]
mov eax, dword [esp + 0x10]
movss dword [esi + eax + 0x20], xmm0
movups xmm0, xmmword [esp + 0x30]
comiss xmm0, dword [0x4ca598]
jb 0x4857f4
mov dword [esp + 0x18], 0xff
jmp 0x48581c
comiss xmm1, xmm0
jb 0x485803
mov dword [esp + 0x18], 0
jmp 0x48581c
mulss xmm0, dword [0x4cb848]
addss xmm0, dword [0x4cb2fc]
call fcn.00498b50
mov dword [esp + 0x18], eax
movaps xmm0, xmmword [esp + 0x40]
xorps xmm1, xmm1
comiss xmm0, dword [0x4ca598]
jb 0x485834
mov ebx, 0xff
jmp 0x485857
comiss xmm1, xmm0
jb 0x48583d
xor ebx, ebx
jmp 0x485857
mulss xmm0, dword [0x4cb848]
addss xmm0, dword [0x4cb2fc]
call fcn.00498b50
mov ebx, eax
xorps xmm1, xmm1
movups xmm0, xmmword [esp + 0x50]
comiss xmm0, dword [0x4ca598]
jb 0x48586c
mov edi, 0xff
jmp 0x48588c
comiss xmm1, xmm0
jb 0x485875
xor edi, edi
jmp 0x48588c
mulss xmm0, dword [0x4cb848]
addss xmm0, dword [0x4cb2fc]
call fcn.00498b50
mov edi, eax
movups xmm0, xmmword [esp + 0x60]
comiss xmm0, dword [0x4ca598]
jb 0x4858a1
mov ecx, 0xff
jmp 0x4858c4
xorps xmm1, xmm1
comiss xmm1, xmm0
jb 0x4858ad
xor ecx, ecx
jmp 0x4858c4
mulss xmm0, dword [0x4cb848]
addss xmm0, dword [0x4cb2fc]
call fcn.00498b50
mov ecx, eax
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
shl ecx, 8
or ecx, dword [esp + 0x18]
shl ecx, 8
or ecx, ebx
mov ebx, dword [esp + 0x2c]
shl ecx, 8
or ecx, edi
mov dword [esi + eax + 0x24], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov dword [esi + eax + 0x28], 0
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0x2c], 0x3f800000
jmp 0x4859dc
mov eax, dword [esp + 0x10]
mov dword [esi + eax - 0x18], 0xc47a0000
mov eax, dword [esp + 0x10]
mov dword [esi + eax - 0x10], 0xc47a0000
mov eax, dword [esp + 0x10]
mov dword [esi + eax - 0x14], 0xc47a0000
mov eax, dword [esp + 0x10]
mov dword [esi + eax - 0xc], 0
mov eax, dword [esp + 0x10]
mov dword [esi + eax - 8], 0
mov eax, dword [esp + 0x10]
mov dword [esi + eax - 4], 0
mov eax, dword [esp + 0x10]
mov dword [esi + eax], 0xc47a0000
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 8], 0xc47a0000
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 4], 0xc47a0000
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0xc], 0
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0x10], 0
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0x14], 0
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0x18], 0xc47a0000
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0x20], 0xc47a0000
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0x1c], 0xc47a0000
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0x24], 0
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0x28], 0
mov eax, dword [esp + 0x10]
mov dword [esi + eax + 0x2c], 0
mov eax, dword [esp + 0x1c]
inc ecx
add ebx, 0x40
mov dword [esp + 0x28], ecx
add esi, 0x48
mov dword [esp + 0x2c], ebx
mov eax, dword [eax + 4]
cmp ecx, eax
jl 0x4853f0
mov ebx, dword [esp + 0x1c]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8], 0xc47a0000
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8 + 8], 0xc47a0000
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8 + 4], 0xc47a0000
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8 + 0xc], 0
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8 + 0x10], 0
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8 + 0x14], 0
mov eax, dword [ebx + 4]
inc eax
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8], 0xc47a0000
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8 + 0x20], 0xc47a0000
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8 + 0x1c], 0xc47a0000
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8 + 0x24], 0
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8 + 0x28], 0
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8 + 0x2c], 0
mov eax, dword [ebx + 4]
add eax, 2
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8], 0xc47a0000
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8 + 0x38], 0xc47a0000
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8 + 0x34], 0xc47a0000
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8 + 0x3c], 0
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8 + 0x40], 0
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*8 + 0x44], 0
mov eax, dword [ebx + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [0x509420]
push dword [ebx + 0x10]
mov ecx, dword [eax + 0x2a3d8]
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0xf4]
test eax, eax
je 0x485b7d
push 0x125
push str.srcparticleRot.cpp
push 0x4d5570
call fcn.004aa62c
add esp, 0xc
mov eax, dword [0x509420]
push 0x18
push dword [ebx + 8]
mov eax, dword [eax + 0x2a3d8]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14c]
mov eax, dword [0x509420]
push 0x142
mov eax, dword [eax + 0x2a3d8]
push eax
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
mov esi, dword [ebx + 4]
xor edi, edi
test esi, esi
jle 0x485c01
mov eax, dword [0x509420]
mov edx, dword [eax + 0x2a490]
shr edx, 2
nop dword [eax + eax]
mov eax, dword [eax + 0x2a3d8]
sub esi, edi
cmp edx, esi
cmovae edx, esi
mov ecx, dword [eax]
push edx
push edi
push 4
push eax
call dword [ecx + 0x118]
mov eax, dword [0x509420]
mov esi, dword [ebx + 4]
mov edx, dword [eax + 0x2a490]
shr edx, 2
add edi, edx
cmp edi, esi
jl 0x485bd0
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00498846
mov esp, ebp
pop ebp
ret 0x40