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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18028
call fcn.005bab30
mov eax, dword [0x6ae450]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ebx, ecx
push 0xffffffffffffffff
push 4
mov dword [ebp - 0x18024], ebx
push dword [ebx + 0x264]
mov ecx, dword [ebx + 0x248]
call sub.SpeedTreeRT.dll_public:_void___thiscall_CSpeedTreeRT::GetGeometry_struct_CSpeedTreeRT::SGeometry___unsigned_long_int__short_int__short_int__short_int_
xor esi, esi
mov dword [ebp - 0x1800c], esi
test esi, esi
mov esi, dword [ebx + 0x264]
jne 0x5afbb2
add esi, 0x78
jmp 0x5afbb8
add esi, 0xb4
cmp byte [esi], 0
mov ecx, dword [esi + 8]
mov dword [ebp - 0x18010], esi
mov dword [ebp - 0x18020], ecx
je 0x5afd96
mov eax, dword [ebx + 0x28c]
mov edi, dword [eax + ecx*4]
mov dword [ebp - 0x18018], edi
test edi, edi
je 0x5afd96
movzx edx, word [esi + 0xc]
mov dword [ebp - 0x18008], 0
lea eax, [edx + edx*2]
cmp eax, 0x2000
jae 0x5afe3f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18028], eax
mov dword [ebp - 0x18014], 0
test edx, edx
je 0x5afd29
mov edi, dword [ebp - 0x18014]
lea ecx, [ebp - 0x17ffc]
mov esi, dword [esi + 0x20]
mov ebx, eax
nop
mov eax, dword [esi + edi*4]
movss xmm3, dword [ebx]
movss xmm2, dword [ebx + 4]
movaps xmm0, xmm3
movss xmm1, dword [ebx + 8]
add ebx, 0xc
addss xmm0, dword [eax]
movss dword [ecx - 8], xmm0
movss xmm0, dword [eax + 4]
addss xmm0, xmm2
movss dword [ecx - 4], xmm0
movss xmm0, dword [eax + 8]
addss xmm0, xmm1
movss dword [ecx], xmm0
movss xmm0, dword [eax + 0x10]
addss xmm0, xmm3
movss dword [ecx + 4], xmm0
movss xmm0, dword [eax + 0x14]
addss xmm0, xmm2
movss dword [ecx + 8], xmm0
movss xmm0, dword [eax + 0x18]
addss xmm0, xmm1
movss dword [ecx + 0xc], xmm0
movss xmm0, dword [eax + 0x20]
addss xmm0, xmm3
movss dword [ecx + 0x10], xmm0
movss xmm0, dword [eax + 0x24]
addss xmm0, xmm2
movss dword [ecx + 0x14], xmm0
movss xmm0, dword [eax + 0x28]
mov eax, dword [ecx]
addss xmm0, xmm1
movss dword [ecx + 0x18], xmm0
movq xmm0, qword [ecx - 8]
movq qword [ecx + 0x1c], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ecx + 0x28], xmm0
mov dword [ecx + 0x24], eax
mov eax, dword [ecx + 0x18]
mov dword [ecx + 0x30], eax
mov eax, dword [esi + edi*4]
inc edi
movss xmm0, dword [eax + 0x30]
addss xmm0, xmm3
movss dword [ecx + 0x34], xmm0
movss xmm0, dword [eax + 0x34]
addss xmm0, xmm2
movss dword [ecx + 0x38], xmm0
movss xmm0, dword [eax + 0x38]
addss xmm0, xmm1
movss dword [ecx + 0x3c], xmm0
add ecx, 0x48
cmp edi, edx
jb 0x5afc30
mov esi, dword [ebp - 0x18010]
mov ebx, dword [ebp - 0x18024]
mov edi, dword [ebp - 0x18018]
mov eax, dword [edi]
lea ecx, [ebp - 0x18008]
push 0x2800
push ecx
push 0
push 0
push edi
call dword [eax + 0x2c]
test eax, eax
js 0x5afd96
movzx eax, word [esi + 0xc]
lea edi, [eax + eax*2]
add edi, edi
je 0x5afd81
xor edx, edx
lea esi, [ebp - 0x18004]
jmp 0x5afd60
mov ecx, dword [ebp - 0x18008]
lea esi, [esi + 0xc]
movq xmm0, qword [esi - 0xc]
lea edx, [edx + 0x18]
mov eax, dword [esi - 4]
movq qword [ecx + edx - 0x18], xmm0
mov dword [ecx + edx - 0x10], eax
dec edi
jne 0x5afd60
mov eax, dword [ebx + 0x28c]
mov ecx, dword [ebp - 0x18020]
mov eax, dword [eax + ecx*4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov esi, dword [ebp - 0x1800c]
inc esi
mov dword [ebp - 0x1800c], esi
cmp esi, 2
jb 0x5afba3
mov ecx, ebx
call fcn.005af5f0
xor edi, edi
mov esi, dword [ebx + 0x264]
test edi, edi
jne 0x5afdc4
add esi, 0x78
jmp 0x5afdca
add esi, 0xb4
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
jle 0x5afe35
cmp byte [esi], 0
je 0x5afe35
cmp word [esi + 0xc], 0
jbe 0x5afe35
mov eax, dword [ebx + 0x28c]
push 0x18
push dword [eax + ecx*4]
mov ecx, dword [0x7031f4]
push 0
call fcn.00523430
movss xmm0, dword [esi + 4]
call fcn.005b9ac0
mov ecx, dword [0x7031f4]
push eax
push 0x18
call fcn.005233f0
movzx ecx, word [esi + 0xc]
mov eax, dword [0x6c34dc]
lea eax, [eax + ecx*2]
mov ecx, dword [0x7031f4]
mov dword [0x6c34dc], eax
movzx eax, word [esi + 0xc]
add eax, eax
push eax
push 0
push 4
call fcn.00522300
inc edi
cmp edi, 2
jb 0x5afdb5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b509b
mov esp, ebp
pop ebp
ret