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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57716e
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x6a2c70]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x6a2c70]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x14]
xor edi, edi
add eax, 0x1d8
cmp byte [eax], 0
je 0x511f3c
push edi
push 4
push edi
lea esi, [ebx + 0x29c]
push eax
mov ecx, esi
call fcn.0050d0c3
mov eax, dword [ebx + 0x14]
push ecx
mov ecx, esi
movss xmm0, dword [eax + 0x218]
movss dword [esp], xmm0
call fcn.0050cb58
push ecx
push ecx
mov dword [esp + 4], 0x3f490fd8
mov ecx, 0x6f4798
and dword [esp], edi
push esi
call fcn.005199f5
mov eax, dword [ebx + 0x14]
mov esi, 0x6aedac
mov ecx, esi
push dword [eax + 0x184]
call fcn.004b2240
mov ecx, eax
call fcn.004b2240
mov ecx, eax
call fcn.0050a9fd
mov eax, dword [ebx + 0x14]
push ecx
mov ecx, esi
movss xmm0, dword [eax + 4]
movss dword [esp], xmm0
push dword [eax]
call fcn.004b2240
mov ecx, eax
call fcn.004b2240
mov ecx, eax
call fcn.0050aa0f
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xb4]
mov dword [0x6f25ac], eax
mov eax, dword [0x6f25b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebx + 0x14]
mov edx, dword [eax]
push dword [ecx + 0x14]
push edi
push eax
call dword [edx + 0xd4]
mov eax, dword [ebx + 0x14]
cmp dword [eax + 0x30], edi
mov eax, dword [0x6f25b0]
push eax
mov ecx, dword [eax]
je 0x511fe8
call dword [ecx + 0x18]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
mov eax, dword [0x6f25b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebx + 0x14]
push edi
add ecx, 0x20
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xa0]
jmp 0x511ff5
call dword [ecx + 0x18]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, dword [0x6f25b0]
and dword [esp + 0x38], edi
and dword [esp + 0x3c], edi
and dword [esp + 0x40], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ecx, dword [ebx + 0x14]
push edi
sub esp, 0xc
mov edx, dword [eax]
movss xmm0, dword [ecx + 0x1c]
divss xmm0, dword [0x57b404]
mulss xmm0, dword [0x57b400]
movss dword [esp + 8], xmm0
movss xmm0, dword [ecx + 0x18]
lea ecx, [esp + 0x48]
movss dword [esp + 4], xmm0
mov dword [esp], 0x42c80000
push ecx
push eax
call dword [edx + 0x88]
mov eax, dword [ebx + 0x14]
mov esi, 0x6f4798
push ecx
mov ecx, esi
movss xmm0, dword [eax + 0x18]
movss dword [esp], xmm0
call fcn.00513aa2
mov eax, dword [ebx + 0x14]
push ecx
mov ecx, esi
movss xmm0, dword [eax + 0x1c]
divss xmm0, dword [0x57b404]
mulss xmm0, dword [0x57b400]
movss dword [esp], xmm0
call fcn.00513a76
mov eax, dword [ebx + 0x14]
mov ecx, 0x6f4288
movzx eax, word [eax + 0x138]
push eax
call fcn.0050dea3
mov eax, dword [0x6f25b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb4]
mov ecx, dword [ebx + 0x14]
lea eax, [esp + 0x14]
or dword [esp + 0x60], 0xffffffff
add ecx, 8
or dword [esp + 0x64], 0xffffffff
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x60], edi
push eax
mov dword [esp + 0x1c], 0xbf800000
call fcn.0047cc27
mov esi, eax
lea edi, [esp + 0x68]
mov eax, dword [0x6f25b0]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x78], 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
xor edi, edi
lea edx, [esp + 0x5c]
push edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xac]
cmp byte [0x6f0ce4], 2
jne 0x512168
and dword [esp + 0x44], edi
lea eax, [ebx + 0x378]
and dword [esp + 0x48], edi
and dword [esp + 0x4c], edi
push eax
call dword [sym.imp.SS3DGFunc.dll__VECTOR3Length_4]
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
lea eax, [esp + 0x44]
addss xmm0, dword [0x581794]
push ecx
push ecx
lea ecx, [ebx + 0x340]
movss dword [esp + 4], xmm0
mov dword [esp], 0x3e490fd8
push eax
lea eax, [esp + 0x44]
push eax
push edi
call fcn.0050b12f
mov eax, dword [ebx + 0x14]
cmp dword [eax + 0x140], edi
je 0x5121a1
mov esi, 0x6f4fe0
push 0xc
mov ecx, esi
call fcn.005239f5
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x1f8]
push edi
push 4
push edi
add eax, 0x144
push eax
call fcn.0050d0c3
push edi
mov ecx, esi
call fcn.005239f5
mov eax, dword [ebx + 0x14]
cmp dword [eax + 0x1cc], edi
je 0x5123ac
add eax, 0x18c
push eax
call fcn.0050c3c7
mov eax, dword [ebx + 0x14]
push dword [eax + 0x1d4]
push dword [eax + 0x1d0]
call fcn.0050c632
and dword [esp + 0x60], edi
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x60], 0x41a00000
mov dword [esp + 0x68], 0x41200000
call fcn.0050c647
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov eax, dword [eax + 0x1cc]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x579c70]
call fcn.00554740
call fcn.00553a91
movss xmm1, dword [0x57f5a0]
mov esi, eax
mov ecx, esi
mov dword [esp + 0x34], esi
shr ecx, 0x1f
mov dword [esp + 0x24], edi
movd xmm0, esi
mov dword [esp + 0x14], edi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [ecx*8 + 0x579c70]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [esp + 0x20], xmm1
test esi, esi
je 0x5123ac
movaps xmm0, xmm1
call fcn.005538b0
mov dword [esp + 0x30], eax
lea eax, [ebx + 0x350]
mov dword [esp + 0x28], eax
movd xmm0, edi
mov ecx, edi
mov edi, dword [esp + 0x30]
xor esi, esi
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
mov dword [esp + 0x18], esi
addsd xmm0, qword [ecx*8 + 0x579c70]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x20]
movss dword [esp + 0x2c], xmm0
jmp 0x5122a5
mov esi, dword [esp + 0x18]
push 0xb4
call fcn.0054f5fe
pop ecx
mov dword [esp + 0x1c], eax
and dword [esp + 0x88], 0
test eax, eax
je 0x5122cb
mov ecx, eax
call fcn.0050c24b
mov ebx, eax
jmp 0x5122cd
xor ebx, ebx
or dword [esp + 0x88], 0xffffffff
call fcn.0054ee51
xor edx, edx
div edi
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x579c70]
cvtpd2ps xmm0, xmm0
addss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x1c], xmm0
call fcn.0054ee51
xor edx, edx
div edi
mov eax, esi
shr eax, 0x1f
push ecx
push ecx
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x579c70]
cvtpd2ps xmm1, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x579c70]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x28]
addss xmm1, xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
call fcn.0051254b
mov esi, eax
call fcn.0054ee51
xor edx, edx
mov ecx, ebx
div esi
push edx
call fcn.0050c28b
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push esi
push ebx
call fcn.005015fc
mov ebx, dword [esp + 0x18]
inc esi
inc ebx
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x18], ebx
cmp ebx, esi
jb 0x5122a1
mov edi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], edi
cmp edi, esi
jb 0x51226f
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0054ee82
mov esp, ebp
pop ebp
ret