Function at 0x6be2b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x138
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x10], ecx
push ebx
push ebp
mov ecx, dword [eax + 0x1c]
mov ebp, dword [eax + 0x20]
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov cx, word [eax + 0xa]
mov eax, dword [eax + 0x24]
push esi
cmp ecx, 8
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], eax
jbe 0x6be2fd
mov dword [esp + 0x28], 8
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x154]
mov ebx, 0xc
mov dx, word [esi + 0x20]
mov edi, dword [esi + 0xc]
mov dword [esp + 0x24], edi
mov di, word [esi + 0x1c]
cmp dx, 1
mov dword [esp + 0x34], edx
jne 0x6be331
mov dword [esp + 0x10], 6
mov ebx, 0x10
jmp 0x6be36e
cmp dx, 2
jne 0x6be346
mov dword [esp + 0x10], 6
mov ebx, 0x10
jmp 0x6be36e
cmp dx, 3
jne 0x6be35b
mov dword [esp + 0x10], 8
mov ebx, 0x14
jmp 0x6be36e
cmp dx, 4
jne 0x6be36e
mov dword [esp + 0x10], 0xa
mov ebx, 0x18
test ebp, ebp
mov ebp, dword [esp + 0x10]
je 0x6be380
or ebp, 0x10
mov dword [esp + 0x38], ebx
add ebx, 0xc
test eax, eax
je 0x6be38e
or ebp, 0x40
mov dword [esp + 0x40], ebx
add ebx, 4
test ecx, ecx
mov dword [esp + 0x30], ebx
je 0x6be3a2
mov edx, ecx
lea ebx, [ebx + ecx*8]
shl edx, 8
or ebp, edx
jmp 0x6be3ab
or ebp, 0x100
add ebx, 8
push str.NiDX8VertexBufferManager::CreateVertexBuffer
mov ecx, 0x7dea78
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], 0
call fcn.00693f00
lea edx, [esp + 0x2c]
and edi, 0xffff
push edx
mov edx, dword [esp + 0x164]
mov eax, dword [esp + 0x24]
push edx
mov edx, edi
push ebp
mov eax, dword [eax + 8]
imul edx, ebx
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x5c]
mov ecx, 0x7dea78
mov ebp, eax
call fcn.00693f10
test ebp, ebp
je 0x6be422
push ebp
call fcn.006c20a0
push eax
push str.NiDX8VertexBufferManager::CreateVertexBuffer_FAILED_n_____s
call fcn.006e9a00
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x138
ret 0x24
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x6be413
lea edx, [esp + 0x14]
push 0
push edx
mov dword [esp + 0x1c], 0
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x2c]
test eax, eax
jne 0x6be413
mov edx, dword [esp + 0x14]
xor ecx, ecx
test edi, edi
jbe 0x6be485
mov esi, dword [esp + 0x24]
xor eax, eax
mov ax, word [esi + ecx*2]
mov esi, dword [esp + 0x18]
inc ecx
lea eax, [eax + eax*2]
lea eax, [esi + eax*4]
mov esi, edx
add edx, ebx
cmp ecx, edi
mov ebp, dword [eax]
mov dword [esi], ebp
mov ebp, dword [eax + 4]
mov dword [esi + 4], ebp
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
jb 0x6be451
mov esi, dword [esp + 0x154]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esi + 8]
add ecx, 0xc
mov dword [esp + 0x18], ecx
xor ecx, ecx
test edi, edi
mov dword [esp + 0x20], ecx
jbe 0x6be57e
mov esi, dword [esp + 0x34]
and esi, 0xffff
mov dword [esp + 0x44], esi
fld dword [0x74bfdc]
xor eax, eax
test esi, esi
jbe 0x6be4c4
fsub dword [ebp + eax*4]
inc eax
cmp eax, esi
jb 0x6be4bb
fld st(0)
fabs
fcomp qword [0x74f758]
fnstsw ax
and eax, 0x4100
jne 0x6be50c
sub esp, 0x10
lea edx, [esp + 0x58]
fst qword [esp + 8]
fld dword [0x74bfdc]
fsub st(1)
fstp qword [esp]
push ecx
push str.ILLEGAL_WEIGHTS__Vertex__4d___Weight_Sum__8.5f____8.5f__n
push edx
fstp st(0)
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x6be50e
fstp st(0)
lea eax, [esi - 1]
xor ecx, ecx
test eax, eax
jle 0x6be537
xor eax, eax
mov esi, dword [esp + 0x18]
mov edx, dword [ebp + eax*4]
inc ecx
mov dword [esi + eax*4], edx
mov esi, dword [esp + 0x44]
mov eax, ecx
and eax, 0xffff
lea edx, [esi - 1]
cmp eax, edx
jl 0x6be519
mov eax, dword [esp + 0x34]
cmp ax, 3
je 0x6be547
cmp ax, 1
jne 0x6be55a
mov edx, dword [esp + 0x18]
and ecx, 0xffff
shl ecx, 2
mov eax, dword [ecx + ebp]
mov dword [ecx + edx], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
lea eax, [esi*4]
add edx, ebx
add ebp, eax
inc ecx
cmp ecx, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
jb 0x6be4af
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x6be5c4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
lea edx, [ecx + eax]
xor ecx, ecx
test edi, edi
jbe 0x6be5c4
mov esi, dword [esp + 0x24]
xor eax, eax
mov ax, word [esi + ecx*2]
mov esi, dword [esp + 0x1c]
inc ecx
lea eax, [eax + eax*2]
lea eax, [esi + eax*4]
mov esi, edx
add edx, ebx
cmp ecx, edi
mov ebp, dword [eax]
mov dword [esi], ebp
mov ebp, dword [eax + 4]
mov dword [esi + 4], ebp
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
jb 0x6be597
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x6be5f3
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
add ecx, eax
xor eax, eax
test edi, edi
jbe 0x6be5f3
mov ebp, dword [esp + 0x24]
xor esi, esi
mov si, word [ebp + eax*2]
inc eax
mov esi, dword [edx + esi*4]
mov dword [ecx], esi
add ecx, ebx
cmp eax, edi
jb 0x6be5dc
mov eax, dword [esp + 0x28]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x1c], ebp
jbe 0x6be650
mov ecx, dword [esp + 0x14]
push ebp
lea esi, [ecx + ebp*8]
mov ecx, dword [esp + 0x34]
add esi, ecx
mov ecx, dword [esp + 0x150]
call fcn.006ef500
xor ecx, ecx
test edi, edi
jbe 0x6be643
mov ebp, dword [esp + 0x24]
xor edx, edx
mov dx, word [ebp + ecx*2]
inc ecx
mov ebp, dword [eax + edx*8]
mov dword [esi], ebp
mov edx, dword [eax + edx*8 + 4]
mov dword [esi + 4], edx
add esi, ebx
cmp ecx, edi
jb 0x6be621
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
inc ebp
cmp ebp, eax
mov dword [esp + 0x1c], ebp
jb 0x6be601
mov esi, dword [esp + 0x2c]
push esi
mov eax, dword [esi]
call dword [eax + 0x30]
test eax, eax
jne 0x6be413
mov eax, dword [esp + 0x168]
test eax, eax
je 0x6be66f
mov dword [eax], ebx
mov eax, dword [esp + 0x16c]
test eax, eax
je 0x6be680
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret 0x24