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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18020
call fcn.00597fe0
mov eax, dword [0x6cf520]
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 0x5911ae
mov eax, dword [ebx + 0x28c]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x1801c], eax
test eax, eax
je 0x5911ae
movzx ecx, word [esi + 0xc]
mov dword [ebp - 0x1800c], 0
mov dword [ebp - 0x18010], ecx
lea eax, [ecx + ecx*2]
cmp eax, 0x2000
jae 0x59125a
mov edi, dword [esi + 0x18]
xor edx, edx
test ecx, ecx
je 0x59113d
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 0x591031
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 0x5911a8
movzx eax, word [esi + 0xc]
lea edi, [eax + eax*2]
add edi, edi
je 0x591193
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 0x591170
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 0x590fb0
mov ecx, ebx
call fcn.005909f0
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 0x591250
cmp byte [esi], 0
je 0x591250
cmp word [esi + 0xc], 0
jbe 0x591250
mov eax, dword [ebx + 0x28c]
push 0x18
push dword [eax + ecx*4]
mov ecx, dword [0x722fe8]
push 0
call fcn.00502a70
movss xmm0, dword [esi + 4]
call fcn.00597da0
mov ecx, dword [0x722fe8]
push eax
push 0x18
call fcn.00502a30
movzx ecx, word [esi + 0xc]
mov eax, dword [0x6e8a2c]
lea eax, [eax + ecx*2]
mov ecx, dword [0x722fe8]
mov dword [0x6e8a2c], eax
movzx eax, word [esi + 0xc]
add eax, eax
push eax
push 0
push 4
call fcn.005018d0
mov eax, 0xb4
inc edi
cmp edi, 2
jb 0x5911d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00597338
mov esp, ebp
pop ebp
ret