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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18028
call fcn.0065e7e0
mov eax, dword [0x762dc0]
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 + 0x270]
mov ecx, dword [ebx + 0x254]
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 + 0x270]
jne 0x651f82
add esi, 0x78
jmp 0x651f88
add esi, 0xb4
cmp byte [esi], 0
mov ecx, dword [esi + 8]
mov dword [ebp - 0x18010], esi
mov dword [ebp - 0x18020], ecx
je 0x652166
mov eax, dword [ebx + 0x298]
mov edi, dword [eax + ecx*4]
mov dword [ebp - 0x18018], edi
test edi, edi
je 0x652166
movzx edx, word [esi + 0xc]
mov dword [ebp - 0x18008], 0
lea eax, [edx + edx*2]
cmp eax, 0x2000
jae 0x65220f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18028], eax
mov dword [ebp - 0x18014], 0
test edx, edx
je 0x6520f9
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 0x652000
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 0x652166
movzx eax, word [esi + 0xc]
lea edi, [eax + eax*2]
add edi, edi
je 0x652151
xor edx, edx
lea esi, [ebp - 0x18004]
jmp 0x652130
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 0x652130
mov eax, dword [ebx + 0x298]
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 0x651f73
mov ecx, ebx
call fcn.006519c0
xor edi, edi
mov esi, dword [ebx + 0x270]
test edi, edi
jne 0x652194
add esi, 0x78
jmp 0x65219a
add esi, 0xb4
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
jle 0x652205
cmp byte [esi], 0
je 0x652205
cmp word [esi + 0xc], 0
jbe 0x652205
mov eax, dword [ebx + 0x298]
push 0x18
push dword [eax + ecx*4]
mov ecx, dword [0x799d10]
push 0
call fcn.005bc7c0
movss xmm0, dword [esi + 4]
call fcn.0065d6c0
mov ecx, dword [0x799d10]
push eax
push 0x18
call fcn.005bc780
movzx ecx, word [esi + 0xc]
mov eax, dword [0x7a13f4]
lea eax, [eax + ecx*2]
mov ecx, dword [0x799d10]
mov dword [0x7a13f4], eax
movzx eax, word [esi + 0xc]
add eax, eax
push eax
push 0
push 4
call fcn.005bb690
inc edi
cmp edi, 2
jb 0x652185
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0065b5b4
mov esp, ebp
pop ebp
ret