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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2624
call fcn.00535460
mov eax, dword [0xd961c0]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, dword [ebx + 0x180]
cmp eax, edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x44], esi
jne 0x4e1538
push edi
push 0x55d434
push str.viewmodelentity
call dword [0x160cc8c]
add esp, 0xc
mov dword [0xd961c0], eax
test byte [ebx + 4], 1
je 0x4e154f
mov eax, dword [0x160d4a8]
mov dword [esp + 0x74], 1
test eax, eax
je 0x4e1557
mov dword [esp + 0x74], 0
mov eax, dword [0xd961b8]
mov ecx, eax
shl ecx, 6
add ecx, 0xc511b8
mov dword [esp + 0x40], ecx
movsx ecx, word [esi + 0x3c]
add eax, ecx
mov dword [esp + 0x3c], ecx
cmp eax, 0x4e20
jle 0x4e1599
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push ecx
push str.R_AddSkelSurfaces:_too_many_skeleton_models_visible_on__s_n
push 1
call dword [0x160cc60]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [esi + 0x14]
fmul dword [ebx + 0x11c]
lea edx, [esp + 0x28]
lea eax, [esp + 0x54]
push edx
push eax
fst dword [esp + 0x14]
fmul dword [esi + 0x2c]
fstp dword [esp + 0x5c]
fld dword [esp + 0x14]
fmul dword [esi + 0x30]
fstp dword [esp + 0x60]
fld dword [esp + 0x14]
fmul dword [esi + 0x34]
fstp dword [esp + 0x64]
call fcn.004acbe0
push ebx
call fcn.004b8ee0
mov eax, dword [ebx + 4]
add esp, 0xc
fstp dword [esp + 0x38]
test ah, 2
mov dword [esp + 0x10], 0x40000000
jne 0x4e15f7
mov dword [esp + 0x10], 0x3f800000
mov ecx, dword [0x16e0cdc]
mov eax, dword [ecx + 0x20]
test eax, eax
jne 0x4e16b5
fld dword [esp + 0x10]
fmul dword [esp + 0x38]
push ecx
lea edx, [esp + 0x2c]
fstp dword [esp]
push edx
call fcn.004ac930
mov edi, eax
mov eax, dword [0x16dd234]
add esp, 8
test byte [eax + 0x20], 2
je 0x4e1696
mov eax, edi
sub eax, 0
je 0x4e166b
sub eax, 2
jne 0x4e1696
fld dword [esp + 0x38]
fmul dword [0x54f820]
push 0
push 0x3f000000
push 0x3e4ccccd
push 0x3e4ccccd
fadd dword [0x54ed1c]
push 0x3f800000
push ecx
lea ecx, [esp + 0x40]
fstp dword [esp]
push ecx
jmp 0x4e168e
fld dword [esp + 0x38]
fmul dword [0x54f820]
push 0
push 0x3f000000
push 0
push 0x3f800000
push 0
push ecx
lea edx, [esp + 0x40]
fstp dword [esp]
push edx
call fcn.004ac0f0
add esp, 0x1c
mov eax, edi
sub eax, 0
je 0x4e16af
sub eax, 2
jne 0x4e16b5
inc dword [0x160d858]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc dword [0x160d850]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x48]
mov eax, dword [0x160d4a8]
test ecx, ecx
je 0x4e17ad
fld dword [ebx + 0x11c]
fmul dword [0x54ff70]
test eax, eax
fstp dword [esp + 0x34]
fld dword [0x160d3a4]
fld dword [0x160d3a8]
fxch st(1)
fsub dword [esp + 0x28]
fstp dword [esp + 0x14]
fsub dword [esp + 0x2c]
fstp dword [esp + 0x18]
je 0x4e1761
mov ecx, dword [0x160d3ac]
lea edx, [esp + 0x14]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x20], edx
fld dword [esp + 0x50]
fsub dword [esp + 0x30]
fstp dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
fld dword [esi]
fld dword [esi + 4]
fxch st(1)
fmul dword [esi]
fxch st(1)
fld dword [esi + 8]
fxch st(1)
fmul dword [esi + 4]
fxch st(1)
fmul dword [esi + 8]
fxch st(2)
faddp st(1)
faddp st(1)
fsqrt
pop esi
fld dword [esp + 0x34]
fabs
fld dword [0x160d4e0]
fdivr qword [0x54f818]
fmulp st(1)
fxch st(1)
fdivp st(1)
fstp dword [ebx + 0x1ac]
jmp 0x4e1895
mov eax, dword [0x160d3ac]
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], eax
mov dword [esp + 0x20], ecx
fld dword [esp + 0x50]
fsub dword [esp + 0x30]
fstp dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
fld dword [esi]
fld dword [esi + 4]
fxch st(1)
fmul dword [esi]
fxch st(1)
fld dword [esi + 8]
fxch st(1)
fmul dword [esi + 4]
fxch st(1)
fmul dword [esi + 8]
fxch st(2)
faddp st(1)
faddp st(1)
fsqrt
pop esi
fld dword [esp + 0x34]
jmp 0x4e187b
fld dword [0x160d3a4]
fld dword [0x160d3a8]
fxch st(1)
fsub dword [esp + 0x28]
test eax, eax
fstp dword [esp + 0x14]
fsub dword [esp + 0x2c]
fstp dword [esp + 0x18]
je 0x4e1833
mov edx, dword [0x160d3ac]
lea eax, [esp + 0x14]
mov dword [esp + 0x50], edx
mov dword [esp + 0x20], eax
fld dword [esp + 0x50]
fsub dword [esp + 0x30]
fstp dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
fld dword [esi]
fld dword [esi + 4]
fxch st(1)
fmul dword [esi]
fxch st(1)
fld dword [esi + 8]
fxch st(1)
fmul dword [esi + 4]
fxch st(1)
fmul dword [esi + 8]
fxch st(2)
faddp st(1)
faddp st(1)
fsqrt
pop esi
fld dword [esp + 0x38]
fabs
fld dword [0x160d4e0]
fdivr qword [0x54f818]
fmulp st(1)
fxch st(1)
fdivp st(1)
fstp dword [ebx + 0x1ac]
jmp 0x4e1895
mov ecx, dword [0x160d3ac]
lea edx, [esp + 0x14]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x20], edx
fld dword [esp + 0x50]
fsub dword [esp + 0x30]
fstp dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
fld dword [esi]
fld dword [esi + 4]
fxch st(1)
fmul dword [esi]
fxch st(1)
fld dword [esi + 8]
fxch st(1)
fmul dword [esi + 4]
fxch st(1)
fmul dword [esi + 8]
fxch st(2)
faddp st(1)
faddp st(1)
fsqrt
pop esi
fld dword [esp + 0x38]
fabs
fld dword [0x160d4e0]
fdivr qword [0x54f818]
fmulp st(1)
fxch st(1)
fdivp st(1)
fstp dword [ebx + 0x1a8]
lea eax, [esp + 0x90]
push eax
push ebx
call fcn.004b8f70
mov ecx, dword [0x16e0cdc]
xor esi, esi
add esp, 8
cmp dword [ecx + 0x20], esi
jne 0x4e1a5e
cmp edi, 1
jne 0x4e1a5e
mov edx, dword [0x160d1d4]
fld dword [esp + 0x10]
mov al, byte [edx + 4]
fmul dword [esp + 0xc]
test al, 0x10
jne 0x4e18e3
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
jmp 0x4e190a
fld dword [ebx + 0x48]
fsub dword [ebx + 0x120]
fstp dword [esp + 0x14]
fld dword [ebx + 0x4c]
fsub dword [ebx + 0x124]
fstp dword [esp + 0x18]
fld dword [ebx + 0x50]
fsub dword [ebx + 0x128]
fstp dword [esp + 0x1c]
xor ecx, ecx
fld st(0)
fmul dword [esp + ecx + 0x94]
fadd dword [esp + ecx + 0x54]
fst dword [esp + ecx + 0x78]
fld st(1)
fmul dword [esp + ecx + 0xa0]
fadd dword [esp + ecx + 0x54]
fst dword [esp + 0x20]
fstp dword [esp + ecx + 0x84]
fld dword [esp + ecx + 0x14]
fcomp dword [0x54e4d0]
fnstsw ax
and eax, 0x4100
jne 0x4e195b
fstp st(0)
fld dword [esp + 0x20]
fadd dword [esp + ecx + 0x14]
fstp dword [esp + ecx + 0x84]
jmp 0x4e1963
fadd dword [esp + ecx + 0x14]
fstp dword [esp + ecx + 0x78]
add ecx, 4
cmp ecx, 0xc
jl 0x4e190c
lea eax, [esp + 0x78]
push eax
fstp st(0)
call fcn.004ac7f0
mov ecx, dword [0x16dd234]
mov esi, eax
add esp, 4
test byte [ecx + 0x20], 1
je 0x4e1a37
mov eax, esi
sub eax, 0
je 0x4e19da
dec eax
mov dword [esp + 0xc], 0x3f800000
je 0x4e19e2
mov dword [esp + 0x24], 0x3e4ccccd
mov dword [esp + 0x10], 0x3e4ccccd
xor eax, eax
fld dword [esp + eax*4 + 0x78]
fsub dword [0x54e768]
inc eax
cmp eax, 3
fstp dword [esp + eax*4 + 0x74]
fld dword [esp + eax*4 + 0x80]
fadd dword [0x54e768]
fstp dword [esp + eax*4 + 0x80]
jl 0x4e19b0
jmp 0x4e19f2
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], 0x3f800000
mov dword [esp + 0x10], 0
lea edx, [esp + 0x48]
push edx
push 0x160d5f8
call fcn.004727b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push 0x3f000000
push eax
push ecx
lea eax, [esp + 0x98]
push edx
lea ecx, [esp + 0x90]
push eax
lea edx, [esp + 0x64]
push ecx
push edx
push 0x160d5ec
call fcn.004cdc70
add esp, 0x28
mov eax, esi
sub eax, 0
je 0x4e1a56
dec eax
je 0x4e1a4e
inc dword [0x160d864]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc dword [0x160d860]
jmp 0x4e1a5c
inc dword [0x160d85c]
xor esi, esi
mov edx, dword [esp + 0x3c]
cmp edx, esi
jle 0x4e1ad1
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0xd4]
add eax, 0x18
mov edi, dword [ecx - 4]
add ecx, 0x30
mov dword [eax - 0x18], edi
mov edi, dword [ecx - 0x30]
mov dword [eax - 0x14], edi
mov edi, dword [ecx - 0x2c]
mov dword [eax - 0x10], edi
mov edi, dword [ecx - 0x58]
mov dword [eax - 8], edi
mov edi, dword [ecx - 0x54]
mov dword [eax - 4], edi
mov edi, dword [ecx - 0x50]
mov dword [eax], edi
mov edi, dword [ecx - 0x4c]
mov dword [eax + 8], edi
mov edi, dword [ecx - 0x48]
mov dword [eax + 0xc], edi
mov edi, dword [ecx - 0x44]
mov dword [eax + 0x10], edi
mov edi, dword [ecx - 0x40]
mov dword [eax + 0x18], edi
mov edi, dword [ecx - 0x3c]
mov dword [eax + 0x1c], edi
mov edi, dword [ecx - 0x38]
mov dword [eax + 4], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], esi
add eax, 0x40
dec edx
jne 0x4e1a74
mov edx, dword [esp + 0x3c]
mov ecx, dword [0xd961b8]
mov dword [ebx + 0x184], ecx
mov eax, dword [0xd961b8]
add eax, edx
mov dword [0xd961b8], eax
mov edx, dword [ebx + 0x144]
mov eax, dword [ebx + 0x180]
push edx
push eax
mov dword [ebx + 0x18c], esi
call fcn.00528a60
mov ecx, dword [0xd961bc]
add esp, 8
lea edx, [ecx*4 + 0xd899b8]
mov ecx, dword [ebx + 0x58]
push edx
mov edx, dword [ebx + 0x54]
push ecx
push edx
mov ecx, eax
call fcn.005204b0
mov ecx, dword [0xd961bc]
cmp eax, esi
mov dword [ebx + 0x188], ecx
je 0x4e1b4a
mov ecx, dword [0xd961bc]
add ecx, eax
mov dword [0xd961bc], ecx
mov dword [ebx + 0x18c], 1
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], esi
mov ecx, dword [eax + 0x1d4]
mov edx, dword [eax + 0x10]
cmp ecx, esi
mov dword [esp + 0xc], edx
jle 0x4e215d
add eax, 0x1d8
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
movsx ecx, word [eax]
push ecx
call fcn.0052d290
add esp, 4
mov dword [esp + 0x70], eax
test eax, eax
je 0x4e21d6
mov edx, dword [0x16e0cdc]
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4e1e47
mov eax, dword [0x16dd2cc]
mov edx, dword [ebx + 0x180]
mov ecx, dword [eax + 4]
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax]
push ecx
call fcn.00535800
add esp, 8
test eax, eax
jne 0x4e1e47
mov edx, dword [esp + 0x44]
mov ecx, dword [0x16dd2d4]
mov eax, dword [edx + 0x1d4]
mov edx, dword [ecx + 0x20]
dec eax
cmp edx, eax
jle 0x4e1bf4
push eax
push sym.moh_spearhead.exe____C__02MECO___CFd__AA_
call fcn.00473b80
push eax
push str.lod_mesh
call dword [0x160cc90]
add esp, 0x10
mov eax, dword [0x16dd2d4]
mov edx, dword [esp + 0x10]
cmp edx, dword [eax + 0x20]
jne 0x4e1e47
mov eax, dword [esp + 0x70]
mov esi, dword [eax + 0x88]
test esi, esi
je 0x4e1e47
add eax, 4
push eax
push str.lod_meshname
call dword [0x160cc90]
fld dword [ebx + 0x1a8]
fstp qword [esp]
push 0x568284
call fcn.00473b80
push eax
push str.lod_metric
call dword [0x160cc90]
mov ecx, dword [0x16dd310]
mov edx, dword [0x16e0cf4]
mov eax, dword [0x16e0c20]
add esp, 0x14
fld dword [ecx + 0x1c]
fsub dword [edx + 0x1c]
mov ecx, dword [eax + 0x20]
test ecx, ecx
fstp dword [esp + 0x34]
je 0x4e1c89
push 0x55cd40
push str.lod_edit_0
call dword [0x160cc90]
fld dword [0x54e504]
fsub dword [esi + 8]
jmp 0x4e1d26
mov ecx, dword [0x16e0c30]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4e1cb1
push 0x55cd40
push str.lod_edit_1
call dword [0x160cc90]
fld dword [0x54e504]
fsub dword [esi + 0x10]
jmp 0x4e1d26
mov edx, dword [0x16e0c34]
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4e1cd9
push 0x55cd40
push str.lod_edit_2
call dword [0x160cc90]
fld dword [0x54e504]
fsub dword [esi + 0x18]
jmp 0x4e1d26
mov eax, dword [0x16e0c28]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4e1d00
push 0x55cd40
push str.lod_edit_3
call dword [0x160cc90]
fld dword [0x54e504]
fsub dword [esi + 0x20]
jmp 0x4e1d26
mov ecx, dword [0x16e0c2c]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4e1d42
push 0x55cd40
push str.lod_edit_4
call dword [0x160cc90]
fld dword [0x54e504]
fsub dword [esi + 0x28]
fstp qword [esp]
push 0x568284
call fcn.00473b80
push eax
push str.lod_LOD_slider
call dword [0x160cc90]
add esp, 0x14
mov edx, dword [0x16dd2ac]
mov eax, dword [0x16e0cf4]
fld dword [esp + 0x34]
fmul dword [edx + 0x1c]
sub esp, 8
fadd dword [eax + 0x1c]
fst dword [esp + 0x2c]
fstp qword [esp]
push 0x568284
call fcn.00473b80
push eax
push str.lod_LOD
call dword [0x160cc90]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
add esp, 0x14
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 0x1a8]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
sub esp, 0xc
mov dword [esp + 0x30], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
lea edx, [esp + 0x8c]
push edx
mov dword [eax + 8], ecx
call fcn.004e1040
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x60], ecx
fld dword [esp + 0x68]
fstp qword [esp + 0x10]
fld dword [esp + 0x64]
fstp qword [esp + 8]
fld dword [esp + 0x60]
fstp qword [esp]
push str._f__f__f
call fcn.00473b80
push eax
push str.lod_position
call dword [0x160cc90]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x60]
push ecx
mov ecx, dword [ebx + 0x1a8]
push edx
push eax
push ecx
push ebx
call fcn.004e1330
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x74]
push edx
push eax
push 0x560af4
call fcn.00473b80
add esp, 0x44
push eax
push str.lod_tris
call dword [0x160cc90]
add esp, 8
mov eax, dword [esp + 0x70]
mov dword [esp + 0x34], 0
mov ecx, dword [eax + 0x48]
mov esi, dword [eax + 0x54]
test ecx, ecx
jle 0x4e2126
mov ecx, dword [esp + 0x6c]
lea edx, [ecx + ebx + 0x148]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
mov al, byte [eax]
test al, 4
jne 0x4e20f5
mov edi, dword [ebx + 0x12c]
mov ecx, dword [ebx + 0x130]
and eax, 3
add eax, edi
test ecx, ecx
je 0x4e1ea9
test dword [ebx + 4], 0x10000
jne 0x4e1ea9
push ecx
call fcn.004becc0
add esp, 4
mov edi, eax
jmp 0x4e1ed8
mov ecx, dword [esp + 0xc]
cmp eax, dword [ecx + 0x150]
jge 0x4e1ec7
mov edx, ecx
mov eax, dword [edx + eax*4 + 0x140]
mov edi, dword [eax*4 + 0x1657a4c]
jmp 0x4e1ed8
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x140]
mov edi, dword [edx*4 + 0x1657a4c]
cmp dword [edi + 0x170], 1
jne 0x4e200e
mov eax, dword [0x16e0cd0]
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x4e200e
mov ecx, dword [edi + 0x174]
mov eax, dword [ecx + 0x2ac]
cmp eax, 0x12
jne 0x4e1f36
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x28]
fld dword [edi + 0xb0]
fadd dword [edi + 0xac]
push edx
push eax
push ecx
fstp dword [esp]
call fcn.004acae0
add esp, 0xc
cmp eax, 2
jne 0x4e200e
jmp 0x4e20f5
cmp eax, 0x13
jne 0x4e1f61
mov ecx, dword [esp + 0x38]
mov eax, dword [edi + 0xb0]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.004acae0
add esp, 0xc
test eax, eax
jne 0x4e200e
jmp 0x4e20f5
cmp eax, 0x14
jne 0x4e1fba
fld dword [esp + 0x28]
fsub dword [0x160d3a4]
fld dword [esp + 0x2c]
fsub dword [0x160d3a8]
fld dword [esp + 0x30]
fsub dword [0x160d3ac]
fld dword [edi + 0xb0]
fadd dword [edi + 0xac]
fld st(1)
fmul st(2)
fld st(3)
fmul st(4)
faddp st(1)
fld st(4)
fmul st(5)
faddp st(1)
fld st(1)
fmul st(2)
fcompp
fstp st(0)
fstp st(0)
fnstsw ax
fstp st(0)
test ah, 0x41
fstp st(0)
jp 0x4e200e
jmp 0x4e20f5
cmp eax, 0x15
jne 0x4e200e
fld dword [esp + 0x28]
fsub dword [0x160d3a4]
fld dword [esp + 0x2c]
fsub dword [0x160d3a8]
fld dword [esp + 0x30]
fsub dword [0x160d3ac]
fld dword [edi + 0xb0]
fld st(1)
fmul st(2)
fld st(3)
fmul st(4)
faddp st(1)
fld st(4)
fmul st(5)
faddp st(1)
fld st(1)
fmul st(2)
fcompp
fstp st(0)
fstp st(0)
fnstsw ax
fstp st(0)
and eax, 0x100
fstp st(0)
je 0x4e20f5
mov eax, dword [esp + 0x74]
mov dword [esi], 8
test eax, eax
jne 0x4e20d0
mov ecx, dword [0x16e0c24]
cmp dword [ecx + 0x20], 3
jne 0x4e205a
mov eax, dword [ebx + 4]
test al, 4
jne 0x4e205a
test ah, 8
je 0x4e205a
test eax, 0x1000000
je 0x4e205a
cmp dword [edi + 0x4c], 0x40800000
jne 0x4e205a
mov edx, dword [0x160cdc0]
push 0
push edx
push esi
call fcn.004aead0
add esp, 0xc
mov eax, dword [esp + 0x24]
mov al, byte [eax]
test al, 0x40
je 0x4e20b7
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x150], 1
jle 0x4e20b7
mov edx, dword [ebx + 0x12c]
and eax, 2
add eax, edx
mov edx, ecx
mov edi, eax
push 0
mov eax, dword [edx + edi*4 + 0x140]
mov ecx, dword [eax*4 + 0x1657a4c]
push ecx
push esi
call fcn.004aead0
mov edx, dword [esp + 0x18]
push 0
mov eax, dword [edx + edi*4 + 0x144]
mov ecx, dword [eax*4 + 0x1657a4c]
push ecx
push esi
call fcn.004aead0
add esp, 0x18
jmp 0x4e20d0
mov edx, dword [0x16e0c0c]
mov eax, dword [edx + 0x20]
test eax, eax
jne 0x4e20d0
push 0
push edi
push esi
call fcn.004aead0
add esp, 0xc
mov eax, dword [ebx + 0x130]
test eax, eax
je 0x4e20f5
test dword [ebx + 4], 0x10000
je 0x4e20f5
push eax
call fcn.004becc0
push 0
push eax
push esi
call fcn.004aead0
add esp, 0x10
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
add eax, 0x15c
mov esi, dword [esi + 0x64]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x70]
inc ecx
inc edi
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0x48]
mov dword [esp + 0x24], edi
cmp ecx, edx
jl 0x4e1e70
mov eax, dword [eax + 0x48]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x40]
add ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x44]
inc eax
add esi, 2
mov dword [esp + 0x10], eax
mov edx, dword [ecx + 0x1d4]
mov dword [esp + 0x40], esi
cmp eax, edx
jl 0x4e1b70
mov eax, ecx
xor esi, esi
mov edx, dword [0x16e0cc0]
cmp dword [edx + 0x20], esi
je 0x4e21cf
mov ecx, dword [ebx + 0x48]
mov edx, dword [ebx + 0x4c]
fld dword [ebx + 0x50]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x64], edx
push ecx
mov ecx, dword [ebx + 0x1a8]
lea edx, [esp + 0x40]
fadd qword [0x54f818]
push edx
push ecx
push eax
fstp dword [esp + 0x78]
call fcn.004e1190
mov edx, dword [0x16e0cc0]
add esp, 0x10
lea eax, [esp + 0x60]
fld dword [edx + 0x1c]
push esi
push esi
push 0x3f800000
push 0x3f800000
fadd st(0), st(0)
sub esp, 8
fstp dword [esp + 4]
fild dword [esp + 0x54]
fstp dword [esp]
push eax
call fcn.004cd940
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
push ecx
push str.R_AddSkelSurfaces:_couldnt_get_skel_model_in__s_n
push 1
call dword [0x160cc60]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret