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

Disassembly:
sub esp, 0xe4
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 0x47c]
mov eax, dword [ebp + 0x478]
mov edx, dword [ebp + 0x480]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x570]
push esi
push edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edx
test ecx, ecx
je 0x50d2fb
mov eax, dword [ecx + 0x478]
mov edx, dword [ecx + 0x47c]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x480]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
call fcn.0050d2a0
mov ecx, dword [ebp + 0x2ec]
mov ebx, dword [ecx]
mov edi, dword [ebp + 0x2d8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov esi, dword [ebp + 0x2ec]
mov eax, dword [ebp + 0x2d8]
test edi, edi
je 0x50d325
cmp edi, eax
je 0x50d32a
call fcn.00615e0c
cmp ebx, esi
je 0x50d5a6
test edi, edi
jne 0x50d38a
call fcn.00615e0c
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x50d347
call fcn.00615e0c
cmp dword [ebx + 0xc], 0
je 0x50d401
mov edx, dword [ebp + 0x1d8]
sub edx, dword [ebp + 0x1d4]
mov esi, dword [ebx + 0x10]
sar edx, 2
cmp esi, edx
jb 0x50d38e
mov eax, dword [ebp + 0x1d8]
sub eax, dword [ebp + 0x1d4]
sar eax, 2
push eax
push esi
push str.CActorInstance::UpdateAdvancingPointInstance___rInstance.dwModelIndex_d___m_LODControllerVector.size___d
call fcn.005872c0
add esp, 0xc
jmp 0x50d580
mov eax, dword [edi]
jmp 0x50d33d
mov ecx, dword [ebp + 0x1d8]
sub ecx, dword [ebp + 0x1d4]
sar ecx, 2
cmp esi, ecx
jb 0x50d3a6
call fcn.00615e0c
mov edx, dword [ebp + 0x1d4]
mov ecx, dword [edx + esi*4]
test ecx, ecx
jne 0x50d3c9
mov eax, dword [ebx + 0x10]
push eax
push str.CActorInstance::UpdateAdvancingPointInstance___m_LODControllerVector_rInstance.dwModelIndex_d__is_NULL
call fcn.005872c0
add esp, 8
jmp 0x50d580
call fcn.005b669e
test eax, eax
je 0x50d580
mov ecx, dword [ebx + 0x14]
push ecx
mov ecx, eax
call fcn.005b8c25
add ebp, 0x6c
push ebp
lea edx, [esp + 0x38]
mov esi, eax
push edx
mov eax, edx
mov ecx, 0x10
lea edi, [esp + 0x3c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.005dbe6d
jmp 0x50d40f
lea esi, [ebp + 0x6c]
mov ecx, 0x10
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov ebp, dword [ebx + 8]
test ebp, ebp
je 0x50d578
mov ecx, dword [ebp + 0x18]
sub ecx, dword [ebp + 0x14]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
xor edi, edi
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x18], edi
je 0x50d578
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jmp 0x50d454
mov edi, dword [esp + 0x18]
mov ecx, dword [ebp + 0x18]
sub ecx, dword [ebp + 0x14]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x50d474
call fcn.00615e0c
mov ecx, dword [ebp + 0x14]
add ecx, dword [esp + 0x20]
call fcn.00567180
mov ecx, dword [ebx + 0x28]
sub ecx, dword [ebx + 0x24]
mov esi, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x50d4a4
call fcn.00615e0c
fld dword [esi + 8]
mov ebx, dword [ebx + 0x24]
add ebx, dword [esp + 0x1c]
sub esp, 0xc
fstp dword [esp + 8]
lea edx, [esp + 0x80]
fld dword [esi + 4]
fstp dword [esp + 4]
fld dword [esi]
fstp dword [esp]
push edx
call fcn.005dc7ca
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0xbc]
push edx
call fcn.005dbe6d
fld dword [esp + 0xe4]
mov ecx, 0x10
lea esi, [esp + 0xb4]
lea edi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
fstp dword [ebx + 0xc]
fld dword [esp + 0xa8]
fstp dword [ebx + 0x10]
fld dword [esp + 0xac]
fstp dword [ebx + 0x14]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov esi, dword [esp + 0x18]
fld dword [ebx]
add dword [esp + 0x20], 0x14
fadd dword [esp + 0x24]
add dword [esp + 0x1c], 0x1c
mov eax, 0x66666667
inc esi
fstp dword [ebx]
mov dword [esp + 0x18], esi
fld dword [ebx + 4]
fadd dword [esp + 0x28]
fstp dword [ebx + 4]
fld dword [ebx + 8]
fadd dword [esp + 0x2c]
fstp dword [ebx + 8]
mov ecx, dword [ebp + 0x18]
sub ecx, dword [ebp + 0x14]
mov ebx, dword [esp + 0x14]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x50d450
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x30]
test edi, edi
jne 0x50d5a2
call fcn.00615e0c
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x50d595
call fcn.00615e0c
mov ecx, dword [ebx]
mov dword [esp + 0x14], ecx
mov ebx, ecx
jmp 0x50d311
mov eax, dword [edi]
jmp 0x50d58b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret