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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18020
call fcn.00599790
mov eax, dword [0x6d5600]
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 - 0x18018], 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 edx, edx
mov dword [ebp - 0x18008], edx
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebx + 0x264]
test edx, edx
lea ecx, [eax + 0xb4]
lea esi, [eax + 0x78]
cmovne esi, ecx
mov dword [ebp - 0x18014], esi
cmp byte [esi], 0
mov ecx, dword [esi + 8]
mov dword [ebp - 0x18020], ecx
je 0x595a3e
mov eax, dword [ebx + 0x28c]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x1801c], eax
test eax, eax
je 0x595a3e
movzx ecx, word [esi + 0xc]
mov dword [ebp - 0x1800c], 0
mov dword [ebp - 0x18010], ecx
lea eax, [ecx + ecx*2]
cmp eax, 0x2000
jae 0x595aea
mov edi, dword [esi + 0x18]
xor edx, edx
test ecx, ecx
je 0x5959cd
mov ebx, dword [esi + 0x20]
lea ecx, [ebp - 0x17ffc]
mov esi, dword [ebp - 0x18010]
mov eax, dword [ebx + edx*4]
movss xmm0, dword [eax]
addss xmm0, dword [edi]
movss dword [ecx - 8], xmm0
mov eax, dword [ebx + edx*4]
movss xmm0, dword [eax + 4]
addss xmm0, dword [edi + 4]
movss dword [ecx - 4], xmm0
mov eax, dword [ebx + edx*4]
movss xmm0, dword [eax + 8]
addss xmm0, dword [edi + 8]
movss dword [ecx], xmm0
mov eax, dword [ebx + edx*4]
movss xmm0, dword [eax + 0x10]
addss xmm0, dword [edi]
movss dword [ecx + 4], xmm0
mov eax, dword [ebx + edx*4]
movss xmm0, dword [eax + 0x14]
addss xmm0, dword [edi + 4]
movss dword [ecx + 8], xmm0
mov eax, dword [ebx + edx*4]
movss xmm0, dword [eax + 0x18]
addss xmm0, dword [edi + 8]
movss dword [ecx + 0xc], xmm0
mov eax, dword [ebx + edx*4]
movss xmm0, dword [eax + 0x20]
addss xmm0, dword [edi]
movss dword [ecx + 0x10], xmm0
mov eax, dword [ebx + edx*4]
movss xmm0, dword [eax + 0x24]
addss xmm0, dword [edi + 4]
movss dword [ecx + 0x14], xmm0
mov eax, dword [ebx + edx*4]
movss xmm0, dword [eax + 0x28]
addss xmm0, dword [edi + 8]
mov eax, dword [ecx]
movss dword [ecx + 0x18], xmm0
movq xmm0, qword [ecx - 8]
movq qword [ecx + 0x1c], xmm0
movq xmm0, qword [ecx + 0x10]
mov dword [ecx + 0x24], eax
mov eax, dword [ecx + 0x18]
movq qword [ecx + 0x28], xmm0
mov dword [ecx + 0x30], eax
mov eax, dword [ebx + edx*4]
movss xmm0, dword [eax + 0x30]
addss xmm0, dword [edi]
movss dword [ecx + 0x34], xmm0
mov eax, dword [ebx + edx*4]
movss xmm0, dword [eax + 0x34]
addss xmm0, dword [edi + 4]
movss dword [ecx + 0x38], xmm0
mov eax, dword [ebx + edx*4]
inc edx
movss xmm0, dword [eax + 0x38]
addss xmm0, dword [edi + 8]
add edi, 0xc
movss dword [ecx + 0x3c], xmm0
add ecx, 0x48
cmp edx, esi
jb 0x5958c1
mov esi, dword [ebp - 0x18014]
mov ebx, dword [ebp - 0x18018]
mov ecx, dword [ebp - 0x1801c]
lea edx, [ebp - 0x1800c]
push 0x2800
push edx
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x2c]
test eax, eax
js 0x595a38
movzx eax, word [esi + 0xc]
lea edi, [eax + eax*2]
add edi, edi
je 0x595a23
xor edx, edx
lea esi, [ebp - 0x18004]
mov ecx, dword [ebp - 0x1800c]
lea esi, [esi + 0xc]
movq xmm0, qword [esi - 0xc]
lea edx, [edx + 0x18]
movq qword [edx + ecx - 0x18], xmm0
mov eax, dword [esi - 4]
mov dword [edx + ecx - 0x10], eax
sub edi, 1
jne 0x595a00
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 edx, dword [ebp - 0x18008]
inc edx
mov dword [ebp - 0x18008], edx
cmp edx, 2
jb 0x595840
mov ecx, ebx
call fcn.00595280
xor edi, edi
mov eax, 0xb4
nop dword [eax]
test edi, edi
mov esi, 0x78
cmovne esi, eax
add esi, dword [ebx + 0x264]
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
jle 0x595ae0
cmp byte [esi], 0
je 0x595ae0
cmp word [esi + 0xc], 0
jbe 0x595ae0
mov eax, dword [ebx + 0x28c]
push 0x18
push dword [eax + ecx*4]
mov ecx, dword [0x6e6138]
push 0
call fcn.00503f50
movss xmm0, dword [esi + 4]
call fcn.00599b70
mov ecx, dword [0x6e6138]
push eax
push 0x18
call fcn.00503f10
movzx ecx, word [esi + 0xc]
mov eax, dword [0x6ec86c]
lea eax, [eax + ecx*2]
mov ecx, dword [0x6e6138]
mov dword [0x6ec86c], eax
movzx eax, word [esi + 0xc]
add eax, eax
push eax
push 0
push 4
call fcn.00502e70
mov eax, 0xb4
inc edi
cmp edi, 2
jb 0x595a60
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005994b1
mov esp, ebp
pop ebp
ret