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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x7c], 0
push esi
push edi
jne 0x557a23
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
cmp dword [ebx + 0x68], 0
je 0x557a33
cmp eax, dword [ebx + 0x6c]
jb 0x557a18
cmp eax, dword [ebx + 0x70]
jae 0x557a18
cmp dword [ebx + 0x18], 0
je 0x557a18
cmp dword [ebx + 0x58], 0
jne 0x557a67
cmp dword [ebp + 0x1c], 0
jne 0x557a67
movss xmm0, dword [ebp + 0x14]
ucomiss xmm0, dword [0x6cc5ec]
lahf
test ah, 0x44
jp 0x557a61
mov esi, dword [ebp + 0x20]
cmp dword [ebx + 0x64], esi
jne 0x557a18
jmp 0x557a6a
cmp dword [ebp + 0x20], 0
jne 0x557a18
mov esi, dword [ebp + 0x20]
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.granny2.dll__GrannyMeshIsRigid_4]
movss xmm0, dword [ebp + 0x14]
ucomiss xmm0, dword [0x6cc5ec]
movzx edi, al
lahf
test ah, 0x44
mov dword [esp + 0x24], edi
jp 0x557a95
test esi, esi
je 0x557a95
xor eax, eax
jmp 0x557a9a
mov eax, 1
push eax
lea ecx, [esp + 0x30]
call fcn.00403e20
mov eax, dword [0x819afc]
shr eax, 5
and eax, 1
mov dword [esp + 0x34], eax
jne 0x557abc
or dword [0x819afc], 0x24
mov ecx, esi
lea esi, [esp + 0x38]
call fcn.00403db0
movsx eax, word [0x819b16]
mov dword [esp + 0x28], eax
cmp eax, 3
mov eax, dword [0x819afc]
je 0x557aed
or eax, 8
mov dword [0x819afc], eax
mov word [0x819b16], 3
mov ecx, eax
shr ecx, 7
and ecx, 1
mov dword [esp + 0x30], ecx
je 0x557b08
and eax, 0xffffff7f
or eax, 1
mov dword [0x819afc], eax
mov ecx, eax
shr ecx, 7
and ecx, 1
mov dword [esp + 0x3c], ecx
je 0x557b23
and eax, 0xffffff7f
or eax, 1
mov dword [0x819afc], eax
test edi, edi
je 0x557bec
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx]
movss xmm1, dword [0x6f2110]
lea eax, [eax + eax*2]
shl eax, 4
add eax, dword [ebp + 0xc]
lea ecx, [esp + 0x50]
movups xmm0, xmmword [eax]
movaps xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [eax + 0x10]
movaps xmmword [esp + 0x60], xmm0
movups xmm0, xmmword [eax + 0x20]
movaps xmmword [esp + 0x70], xmm0
movups xmm0, xmmword [eax + 0x30]
movaps xmmword [esp + 0x80], xmm0
xorps xmm0, xmm0
shufps xmm0, xmm1, 0x10
lea eax, [esp + 0x90]
movaps xmmword [esp + 0x80], xmm0
call fcn.00403b30
mov eax, dword [ebp + 0x10]
movups xmm0, xmmword [eax]
movaps xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [eax + 0x10]
movaps xmmword [esp + 0x60], xmm0
movups xmm0, xmmword [eax + 0x20]
lea edx, [esp + 0xd0]
movaps xmmword [esp + 0x70], xmm0
movups xmm0, xmmword [eax + 0x30]
push edx
lea ecx, [esp + 0x54]
lea edx, [esp + 0x94]
movaps xmmword [esp + 0x84], xmm0
call fcn.00402160
add esp, 4
lea eax, [esp + 0xd0]
call fcn.0058ca50
mov eax, dword [ebx + 0x14]
push 0
mov edi, 0x20
xor esi, esi
call fcn.00402540
add esp, 4
jmp 0x557c41
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.granny2.dll__GrannyGetMeshBindingBoneCount_4]
mov ecx, dword [ebp + 0x24]
cmp dword [ecx], 0
jne 0x557c1e
mov edx, dword [ebp + 0xc]
mov edi, dword [ebx + 0x2c]
add dword [0x939e74], 1
push edx
mov esi, eax
call fcn.00556950
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
add esp, 4
mov dword [ecx], eax
mov eax, dword [ebx + 0x14]
add dword [0x939e78], 1
push 0
mov edi, 0x28
xor esi, esi
call fcn.00402540
mov eax, dword [ebp + 0x10]
add esp, 4
call fcn.0058ca50
mov esi, dword [ebp + 0x18]
xor edx, edx
cmp dword [esp + 0x24], edx
mov eax, esi
sete dl
shr eax, 0x18
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fdiv qword [0x6f9ac8]
mov edi, edx
fld qword [0x6f99e0]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld dword [0x6d54d4]
fcompi st(1)
fstp st(0)
jbe 0x557c8a
movss xmm0, dword [0x6d54d4]
jmp 0x557c90
movss xmm0, dword [esp + 0x18]
fmul dword [ebp + 0x14]
mov eax, dword [ebx + 0x10]
movss dword [esp + 0x40], xmm0
movss dword [esp + 0x44], xmm0
fstp dword [esp + 0x4c]
movss dword [esp + 0x48], xmm0
call fcn.00402510
cmp dword [ebx + 0x58], 0
jne 0x557d40
test edi, edi
mov ecx, dword [ebp + 0x1c]
movss xmm0, dword [ebp + 0x14]
mov dword [0x93d8e8], 0
mov eax, esi
je 0x557d08
mov dword [0x939e90], ecx
movss dword [0x939e94], xmm0
call fcn.00556900
mov eax, dword [0x93d8d8]
mov ecx, dword [0x939e60]
test eax, eax
cmovne ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push 0
push 0
call eax
mov eax, dword [0x939e7c]
jmp 0x557d3b
mov dword [0x939ecc], ecx
movss dword [0x939ed0], xmm0
call fcn.005569d0
mov eax, dword [0x93d8d8]
mov ecx, dword [0x939e64]
test eax, eax
cmovne ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push 0
push 0
call eax
mov eax, dword [0x939e80]
call fcn.004024e0
xor eax, eax
cmp dword [ebx + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
jle 0x557ec6
cmp dword [ebx + 0x58], 0
mov ecx, dword [ebx + 0x24]
mov esi, dword [ecx + eax*4]
je 0x557e5c
cmp dword [ebp + 0x1c], 0
jne 0x557d8d
movss xmm0, dword [ebp + 0x14]
ucomiss xmm0, dword [0x6cc5ec]
lahf
test ah, 0x44
jp 0x557d83
mov edx, dword [ebp + 0x20]
cmp dword [esi + 0x48], edx
jmp 0x557d87
cmp dword [ebp + 0x20], 0
jne 0x557eb2
mov eax, dword [esi + 4]
sub eax, 1
neg eax
sbb eax, eax
and eax, dword [ebp + 0x2c]
mov edi, dword [esi + eax*4 + 8]
cmp edi, dword [esp + 0x18]
je 0x557e4d
cmp dword [ebx + 0x78], 0
je 0x557dbc
cmp dword [esp + 0x24], 0
jne 0x557dbc
mov edx, 0x20
jmp 0x557dbe
xor edx, edx
mov ecx, dword [edi]
push edi
call fcn.00589ef0
movups xmm1, xmmword [esp + 0x44]
movaps xmm2, xmmword [0x805e80]
movaps xmm0, xmm1
add esp, 4
cmpneqps xmm0, xmm2
movmskps edx, xmm0
neg edx
sbb edx, edx
neg edx
mov ecx, 0x805e80
movaps xmmword [ecx], xmm1
je 0x557e08
mov eax, dword [0x7e43a0]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x44]
push edx
push 0x18
push eax
mov eax, dword [ecx + 0x178]
call eax
mov ecx, dword [ebx + 0x78]
mov eax, ecx
neg eax
or eax, ecx
add ecx, 0xffffffff
sar eax, 0x1f
and eax, ecx
lea ecx, [eax + eax*2]
lea edx, [ecx*4 + 0x6f8780]
push edx
push 0xc
mov edx, 3
call fcn.00417fa0
mov eax, dword [0x939e80]
add esp, 8
cmp dword [esp + 0x24], 0
jne 0x557e44
mov eax, dword [0x939e7c]
call fcn.004024e0
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0x58]
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x20], eax
jmp 0x557e76
mov ecx, dword [esi]
push ecx
xor edi, edi
call fcn.00402260
mov eax, dword [esi + 0x58]
mov edx, dword [ebx + 0x18]
add esp, 4
lea ecx, [eax + eax*2]
mov dword [esp + 0x20], edx
mov esi, dword [esi + 0x54]
mov eax, 0xaaaaaaab
mul ecx
lea edi, [esi + esi*2]
mov esi, edx
shr esi, 1
test byte [0x819afc], 0x1f
je 0x557e95
call fcn.0058a570
mov edx, dword [esp + 0x20]
mov eax, dword [0x7e43a0]
mov ecx, dword [eax]
push esi
push edi
push edx
push 0
push 0
push 4
push eax
mov eax, dword [ecx + 0x148]
call eax
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [ebx + 0x20]
mov dword [esp + 0x1c], eax
jl 0x557d53
mov ecx, dword [esp + 0x3c]
mov eax, dword [0x819afc]
xor edx, edx
test ecx, ecx
setne dl
mov esi, eax
shr esi, 7
and esi, 1
cmp esi, edx
je 0x557ef9
shl ecx, 7
xor ecx, eax
and ecx, 0x80
xor ecx, eax
or ecx, 1
mov eax, ecx
mov dword [0x819afc], eax
mov ecx, dword [esp + 0x30]
xor edx, edx
test ecx, ecx
setne dl
mov esi, eax
shr esi, 7
and esi, 1
cmp esi, edx
je 0x557f27
shl ecx, 7
xor ecx, eax
and ecx, 0x80
xor ecx, eax
or ecx, 1
mov eax, ecx
mov dword [0x819afc], eax
movsx edx, word [0x819b16]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
je 0x557f45
or eax, 8
mov dword [0x819afc], eax
mov word [0x819b16], cx
mov ecx, dword [esp + 0x38]
mov edx, eax
shr edx, 6
xor ebx, ebx
and edx, 1
test ecx, ecx
setne bl
cmp edx, ebx
je 0x557f70
shl ecx, 6
xor ecx, eax
and ecx, 0x40
xor ecx, eax
or ecx, 4
mov eax, ecx
mov dword [0x819afc], eax
mov ecx, dword [esp + 0x34]
xor edx, edx
test ecx, ecx
setne dl
mov esi, eax
shr esi, 5
and esi, 1
cmp esi, edx
je 0x557f9b
shl ecx, 5
xor ecx, eax
and ecx, 0x20
xor ecx, eax
or ecx, 4
mov eax, ecx
mov dword [0x819afc], eax
mov ecx, dword [esp + 0x2c]
mov edx, eax
shr edx, 8
xor ebx, ebx
and edx, 1
test ecx, ecx
setne bl
cmp edx, ebx
je 0x557fc8
shl ecx, 8
xor ecx, eax
and ecx, 0x100
xor ecx, eax
or ecx, 1
mov dword [0x819afc], ecx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x28