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

Disassembly:
sub esp, 0x158
mov eax, dword [esp + 0x15c]
mov edx, dword [eax + 0x28]
push ebx
mov ebx, dword [eax + 0x20]
push ebp
mov ebp, ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov cl, byte [eax + 0x30]
push esi
push edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], edx
and ecx, 0x3f
cmp ecx, 8
mov dword [esp + 0x2c], ecx
jbe 0x5cf7a1
mov dword [esp + 0x2c], 8
mov edi, dword [esp + 0x174]
mov cx, word [edi + 0x20]
mov edx, dword [edi + 0xc]
mov word [esp + 0x24], cx
mov cx, word [edi + 0x1c]
mov word [esp + 0x1c], cx
xor ecx, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
push eax
mov ecx, ebp
call fcn.005ced80
mov esi, dword [edi + 0x28]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x14]
test eax, eax
mov dword [esi + 0xc], 0
jbe 0x5cf818
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x20]
mov dword [ecx], edx
mov eax, dword [esp + 0x180]
test eax, eax
mov byte [esp + 0x13], 1
je 0x5cf83d
mov eax, dword [esp + 0x17c]
mov dword [esp + 0x14], eax
mov byte [esp + 0x13], 0
jmp 0x5cf912
mov ebx, dword [esp + 0x17c]
test ebx, ebx
je 0x5cf89c
mov eax, dword [ebx + 8]
test eax, eax
je 0x5cf89c
mov ecx, dword [esp + 0x16c]
xor edx, edx
mov dx, word [ecx + 0x32]
and edx, 0xf000
cmp edx, 0x8000
je 0x5cf89c
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push eax
call dword [ecx + 0x34]
cmp dword [esp + 0x50], 0x64
jne 0x5cf89c
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x64], eax
jne 0x5cf89c
movzx ecx, word [esp + 0x1c]
imul ecx, dword [esp + 0x20]
cmp dword [esp + 0x60], ecx
jb 0x5cf89c
mov dword [esp + 0x14], ebx
jmp 0x5cf8d7
push 0
push esi
mov ecx, ebp
call fcn.005ced40
test al, al
je 0x5cfc3f
mov eax, dword [esi + 0x14]
test eax, eax
jbe 0x5cf8c0
mov edx, dword [esi + 0x1c]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
jmp 0x5cf8c8
mov dword [esp + 0x14], 0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x178], 0xfff
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov ebx, dword [eax]
push ecx
lea ecx, [esp + 0x44]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x54], 0
call dword [ebx + 0x2c]
mov ebx, dword [esp + 0x44]
xor edx, edx
test eax, eax
mov eax, dword [esp + 0x40]
setl dl
dec edx
and edx, eax
mov dword [esp + 0x180], edx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x180]
lea edx, [eax + ecx]
test byte [esp + 0x178], 1
je 0x5cfa6f
movzx ecx, word [esp + 0x1c]
xor eax, eax
test ecx, ecx
jbe 0x5cf970
lea esp, [esp]
mov ecx, dword [esp + 0x28]
movzx ecx, word [ecx + eax*2]
lea ecx, [ecx + ecx*2]
lea ecx, [ebx + ecx*4]
mov ebp, dword [ecx]
mov esi, edx
mov dword [esi], ebp
mov ebp, dword [ecx + 4]
mov dword [esi + 4], ebp
mov ecx, dword [ecx + 8]
mov ebp, dword [esp + 0x20]
mov dword [esi + 8], ecx
movzx ecx, word [esp + 0x1c]
inc eax
add edx, ebp
cmp eax, ecx
jb 0x5cf940
mov eax, dword [esp + 0x180]
mov edx, dword [esp + 0x30]
mov esi, dword [edi + 8]
lea ebp, [edx + eax]
movzx eax, word [esp + 0x1c]
xor ebx, ebx
test eax, eax
jbe 0x5cfa6f
movzx edi, word [esp + 0x24]
fld dword [0x6c263c]
xor edx, edx
cmp edi, 4
jl 0x5cf9c5
lea ecx, [edi - 4]
shr ecx, 2
inc ecx
lea eax, [esi + 8]
lea edx, [ecx*4]
fsub dword [eax - 8]
add eax, 0x10
dec ecx
fsub dword [eax - 0x14]
fsub dword [eax - 0x10]
fsub dword [eax - 0xc]
jne 0x5cf9b3
cmp edx, edi
jae 0x5cf9d8
lea esp, [esp]
fsub dword [esi + edx*4]
inc edx
cmp edx, edi
jb 0x5cf9d0
fld st(0)
fld st(0)
fabs
fcomp dword [0x6c2ca4]
fnstsw ax
test ah, 0x41
jne 0x5cfa15
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x78]
fld dword [0x6c263c]
fsub st(1)
fstp qword [esp]
push ebx
push str.ILLEGAL_WEIGHTS__Vertex__4d___Weight_Sum__8.5f____8.5f__n
push ecx
fstp st(0)
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x1c
jmp 0x5cfa19
fstp st(0)
fstp st(0)
lea eax, [edi - 1]
xor ecx, ecx
test eax, eax
jle 0x5cfa36
xor eax, eax
mov edx, dword [esi + eax*4]
inc ecx
mov dword [ebp + eax*4], edx
movzx eax, cx
lea edx, [edi - 1]
cmp eax, edx
jl 0x5cfa24
mov eax, dword [esp + 0x24]
cmp ax, 3
je 0x5cfa46
cmp ax, 1
jne 0x5cfa52
movzx eax, cx
shl eax, 2
mov ecx, dword [eax + esi]
mov dword [eax + ebp], ecx
mov edx, dword [esp + 0x20]
lea eax, [edi*4]
add esi, eax
movzx eax, word [esp + 0x1c]
inc ebx
add ebp, edx
cmp ebx, eax
jb 0x5cf995
mov edi, dword [esp + 0x34]
test edi, edi
je 0x5cfacb
test byte [esp + 0x178], 2
je 0x5cfacb
mov eax, dword [esp + 0x180]
mov edx, dword [esp + 0x3c]
movzx esi, word [esp + 0x1c]
add edx, eax
xor eax, eax
test esi, esi
jbe 0x5cfacb
lea esp, [esp]
mov ecx, dword [esp + 0x28]
movzx ecx, word [ecx + eax*2]
lea ecx, [ecx + ecx*2]
lea ecx, [edi + ecx*4]
mov ebp, dword [ecx]
mov ebx, edx
mov dword [ebx], ebp
mov ebp, dword [ecx + 4]
mov dword [ebx + 4], ebp
mov ecx, dword [ecx + 8]
mov dword [ebx + 8], ecx
mov ebx, dword [esp + 0x20]
inc eax
add edx, ebx
cmp eax, esi
jb 0x5cfaa0
mov edi, dword [esp + 0x38]
test edi, edi
je 0x5cfba9
test byte [esp + 0x178], 4
je 0x5cfba9
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x180]
lea ecx, [edx + eax]
movzx edx, word [esp + 0x1c]
xor eax, eax
test edx, edx
jbe 0x5cfba9
mov esi, dword [esp + 0x28]
movzx ebx, word [esi + eax*2]
shl ebx, 4
fld dword [ebx + edi + 0xc]
fmul dword [0x715638]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x38]
movzx ebx, word [esi + eax*2]
shl ebx, 4
fld dword [ebx + edi]
fmul dword [0x715638]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x3c]
movzx ebx, word [esi + eax*2]
shl ebx, 4
fld dword [ebx + edi + 4]
fmul dword [0x715638]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x34]
movzx esi, word [esi + eax*2]
shl esi, 4
fld dword [esi + edi + 8]
fmul dword [0x715638]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x30]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
shl esi, 8
or esi, ebx
mov ebx, dword [esp + 0x34]
shl esi, 8
or esi, ebx
mov ebx, dword [esp + 0x30]
shl esi, 8
or esi, ebx
mov ebx, dword [esp + 0x20]
mov dword [ecx], esi
inc eax
add ecx, ebx
cmp eax, edx
jb 0x5cfb02
test byte [esp + 0x178], 8
je 0x5cfc26
mov eax, dword [esp + 0x2c]
xor ebp, ebp
test eax, eax
jbe 0x5cfc26
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x180]
movzx edi, word [esp + 0x1c]
lea esi, [ecx + edx]
mov dword [esp + 0x24], esi
jmp 0x5cfbe0
mov ecx, dword [esp + 0x16c]
push ebp
call fcn.00542a50
xor ecx, ecx
test edi, edi
jbe 0x5cfc12
mov edx, dword [esp + 0x28]
movzx edx, word [edx + ecx*2]
mov ebx, dword [eax + edx*8]
mov dword [esi], ebx
mov edx, dword [eax + edx*8 + 4]
mov ebx, dword [esp + 0x20]
mov dword [esi + 4], edx
inc ecx
add esi, ebx
cmp ecx, edi
jb 0x5cfbf3
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
inc ebp
add esi, 8
cmp ebp, eax
mov dword [esp + 0x24], esi
jb 0x5cfbe0
mov al, byte [esp + 0x13]
test al, al
je 0x5cfc4e
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jge 0x5cfc4e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x158
ret 0x18
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret 0x18