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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x558a63
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x67ccf0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x67ccf0]
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 0x51cb10
push edi
push 4
push edi
lea esi, [ebx + 0x29c]
push eax
mov ecx, esi
call fcn.00517ec0
mov eax, dword [ebx + 0x14]
push ecx
mov ecx, esi
movss xmm0, dword [eax + 0x218]
movss dword [esp], xmm0
call fcn.00517962
push ecx
push ecx
mov dword [esp + 4], 0x3f490fd8
mov ecx, 0x6d6c20
and dword [esp], edi
push esi
call fcn.00524517
mov eax, dword [ebx + 0x14]
mov esi, 0x690a18
mov ecx, esi
push dword [eax + 0x184]
call fcn.0042c560
mov ecx, eax
call fcn.0042c560
mov ecx, eax
call fcn.005157a6
mov eax, dword [ebx + 0x14]
push ecx
mov ecx, esi
movss xmm0, dword [eax + 4]
movss dword [esp], xmm0
push dword [eax]
call fcn.0042c560
mov ecx, eax
call fcn.0042c560
mov ecx, eax
call fcn.005157b8
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xb4]
mov dword [0x6d4970], eax
mov eax, dword [0x6d4974]
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 [0x6d4974]
push eax
mov ecx, dword [eax]
je 0x51cbbc
call dword [ecx + 0x18]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
mov eax, dword [0x6d4974]
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 0x51cbc9
call dword [ecx + 0x18]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, dword [0x6d4974]
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 [0x566014]
mulss xmm0, dword [0x566010]
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, 0x6d6c20
push ecx
mov ecx, esi
movss xmm0, dword [eax + 0x18]
movss dword [esp], xmm0
call fcn.0051e684
mov eax, dword [ebx + 0x14]
push ecx
mov ecx, esi
movss xmm0, dword [eax + 0x1c]
divss xmm0, dword [0x566014]
mulss xmm0, dword [0x566010]
movss dword [esp], xmm0
call fcn.0051e658
mov eax, dword [ebx + 0x14]
mov ecx, 0x6d66a8
movzx eax, word [eax + 0x138]
push eax
call fcn.00518c85
mov eax, dword [0x6d4974]
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.0048a468
mov esi, eax
lea edi, [esp + 0x68]
mov eax, dword [0x6d4974]
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 [0x6d2fe4], 2
jne 0x51cd3c
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 [0x56c3a4]
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.00515f2f
mov eax, dword [ebx + 0x14]
cmp dword [eax + 0x140], edi
je 0x51cd75
mov esi, 0x6d7510
push 0xc
mov ecx, esi
call fcn.0052e5a2
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x1f8]
push edi
push 4
push edi
add eax, 0x144
push eax
call fcn.00517ec0
push edi
mov ecx, esi
call fcn.0052e5a2
mov eax, dword [ebx + 0x14]
cmp dword [eax + 0x1cc], edi
je 0x51cf87
add eax, 0x18c
push eax
call fcn.005171d1
mov eax, dword [ebx + 0x14]
push dword [eax + 0x1d4]
push dword [eax + 0x1d0]
call fcn.0051743c
and dword [esp + 0x60], edi
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x60], 0x41a00000
mov dword [esp + 0x68], 0x41200000
call fcn.00517451
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 + 0x5648d0]
call sub.MSVCR120.dll__libm_sse2_sqrt_precise
call fcn.005507c1
movss xmm1, dword [0x56a1b0]
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 + 0x5648d0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [esp + 0x20], xmm1
test esi, esi
je 0x51cf87
movaps xmm0, xmm1
call fcn.005505e0
mov dword [esp + 0x30], eax
lea eax, [ebx + 0x350]
mov dword [esp + 0x28], eax
movd xmm0, edi
mov eax, edi
mov edi, dword [esp + 0x30]
xor esi, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [esp + 0x18], esi
addsd xmm0, qword [eax*8 + 0x5648d0]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x20]
movss dword [esp + 0x2c], xmm0
jmp 0x51ce79
mov esi, dword [esp + 0x18]
push 0xb4
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [esp + 0x1c], eax
and dword [esp + 0x88], 0
test eax, eax
je 0x51ce9f
mov ecx, eax
call fcn.0051704b
mov ebx, eax
jmp 0x51cea1
xor ebx, ebx
or dword [esp + 0x88], 0xffffffff
call dword [sym.imp.MSVCR120.dll_rand]
xor edx, edx
div edi
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x5648d0]
cvtpd2ps xmm0, xmm0
addss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x1c], xmm0
call dword [sym.imp.MSVCR120.dll_rand]
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 + 0x5648d0]
cvtpd2ps xmm1, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x5648d0]
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 dword [sym.imp.MSVCR120.dll_rand]
mov esi, eax
call fcn.0051d126
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
mov ecx, ebx
push edx
call fcn.0051708b
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push esi
push ebx
call fcn.004e2201
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 0x51ce75
mov edi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], edi
cmp edi, esi
jb 0x51ce43
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.005500ac
mov esp, ebp
pop ebp
ret