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

Disassembly:
sub esp, 0xd4
push ebx
mov ebx, dword [esp + 0xdc]
push ebp
push esi
lea eax, [ebx + ebx*2]
push edi
shl eax, 3
sub eax, ebx
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*2]
mov eax, dword [0x6baa04]
test eax, eax
lea ebp, [ecx*8 + 0x5aad18]
mov dword [esp + 0x38], ebp
je 0x40d39d
test ebx, ebx
jl 0x40d38a
cmp ebx, 0x3e8
jge 0x40d38a
mov edi, dword [esp + 0xec]
cmp edi, 0xfa0
jl 0x40c858
push ebx
push str.Too_many_vertices_in_model__d
push str.ComModelsLoadModFile
call fcn.004012b0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
mov dl, byte [esp + 0x120]
test edi, edi
mov byte [ebp + 0x454], dl
jle 0x40c8df
mov eax, dword [esp + 0xf0]
mov ecx, 0x509afc
add eax, 8
mov edx, edi
fld dword [esp + 0x108]
fmul dword [eax - 8]
add eax, 0xc
add ecx, 0x18
dec edx
fadd dword [esp + 0x114]
fstp dword [ecx - 0x1c]
fld dword [esp + 0x10c]
fmul dword [eax - 0x10]
fadd dword [esp + 0x118]
fstp dword [ecx - 0x18]
fld dword [esp + 0x110]
fmul dword [eax - 0xc]
fadd dword [esp + 0x11c]
fstp dword [ecx - 0x14]
jne 0x40c87a
test edi, edi
jle 0x40c8df
mov esi, 0x509b08
lea ecx, [esi + 4]
lea edx, [esi - 4]
push ecx
push esi
push edx
call fcn.0040d3b0
add esp, 0xc
add esi, 0x18
dec edi
jne 0x40c8c8
mov ecx, dword [ebp + 0x450]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], eax
jle 0x40d2e8
mov dword [esp + 0xa4], 0x3f800000
mov dword [esp + 0xa8], 0x3f800000
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x3f800000
mov dword [esp + 0xc0], 0x3f800000
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], 0x3f800000
mov dword [esp + 0xcc], 0x3f800000
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], 0x3f800000
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], 0x3f800000
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x30], 1
lea ecx, [eax + eax*2]
mov dword [esp + 0x14], 0x3f800000
shl ecx, 3
sub ecx, eax
mov eax, dword [edx + ecx*4 + 4]
cmp eax, ebx
mov dword [esp + 0x18], 0x3f800000
movsx esi, byte [edx + ecx*4 + 0x52]
lea edi, [edx + ecx*4]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], edi
je 0x40c9d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi + 4], ebx
cmp esi, 3
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
jne 0x40cb43
mov edx, dword [esp + 0xfc]
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x104]
mov dword [esp + 0x14], 0
lea eax, [edx - 1]
mov dword [esp + 0x18], 0
cmp ecx, eax
jge 0x40cb20
cmp dword [ebp + ecx*4], 3
jne 0x40ca43
mov eax, dword [ebp + ecx*4 + 4]
inc ecx
add ecx, 2
mov dword [esp + 0x58], eax
mov edx, dword [ebp + ecx*4]
mov eax, dword [ebp + ecx*4 + 8]
add ecx, 2
mov dword [esp + 0x60], eax
inc ecx
mov dword [esp + 0x5c], edx
mov eax, 3
inc ebx
jmp 0x40ca76
mov edx, dword [ebp + ecx*4 + 4]
inc ecx
add ecx, 2
mov dword [esp + 0x58], edx
mov eax, dword [ebp + ecx*4]
mov edx, dword [ebp + ecx*4 + 8]
add ecx, 2
mov dword [esp + 0x5c], eax
add ecx, 2
mov dword [esp + 0x60], edx
mov eax, dword [ebp + ecx*4]
inc ecx
mov dword [esp + 0x64], eax
mov eax, 4
add ebx, 2
lea esi, [esp + 0x58]
mov edi, eax
mov eax, dword [esi]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0xf0]
fld dword [eax + edx*4]
lea edx, [eax + edx*4]
fabs
fcom dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x40caa1
fstp dword [esp + 0x14]
jmp 0x40caa3
fstp st(0)
fld dword [edx + 4]
fabs
fcom dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x40cab9
fstp dword [esp + 0x18]
jmp 0x40cabb
fstp st(0)
add esi, 4
dec edi
jne 0x40ca7c
mov eax, dword [esp + 0x28]
cmp eax, 0xb
jge 0x40cafc
inc eax
lea edx, [eax + eax*2]
shl edx, 3
sub edx, eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + edx*4]
test eax, eax
jbe 0x40cafc
mov edx, dword [esp + 0xfc]
lea esi, [edx - 3]
cmp ecx, esi
jge 0x40cb03
mov edi, dword [esp + 0x20]
mov esi, ebx
add esi, dword [edi]
cmp esi, eax
jbe 0x40cb03
mov ecx, edx
jmp 0x40cb03
mov edx, dword [esp + 0xfc]
inc ecx
lea eax, [edx - 1]
cmp ecx, eax
jl 0x40ca14
fld dword [esp + 0x14]
fcomp dword [0x4772e0]
fnstsw ax
test ah, 0x40
je 0x40cb28
mov dword [esp + 0x14], 0x3f800000
fld dword [esp + 0x18]
fcomp dword [0x4772e0]
fnstsw ax
test ah, 0x40
je 0x40cb56
mov dword [esp + 0x18], 0x3f800000
jmp 0x40cb56
cmp esi, 2
jne 0x40cb4f
mov ecx, dword [edi + 0x58]
mov dword [esp + 0x30], ecx
mov ebp, dword [esp + 0x104]
mov edx, dword [esp + 0xfc]
mov edi, dword [esp + 0x40]
lea eax, [edx - 1]
cmp edi, eax
jge 0x40d17e
jmp 0x40cb75
mov ebp, dword [esp + 0x104]
mov eax, dword [ebp + edi*4]
cmp eax, 3
jne 0x40cd5e
mov eax, dword [esp + 0x104]
inc edi
xor ebp, ebp
mov ecx, dword [eax + edi*4]
mov edx, dword [eax + edi*4 + 4]
inc edi
mov dword [esp + 0x98], ecx
inc edi
mov dword [esp + 0x8c], edx
mov dword [esp + 0x1c], ebp
mov ecx, dword [eax + edi*4]
mov edx, dword [eax + edi*4 + 4]
inc edi
mov dword [esp + 0x9c], ecx
inc edi
mov dword [esp + 0x90], edx
mov ecx, dword [eax + edi*4]
mov edx, dword [eax + edi*4 + 4]
mov eax, dword [esp + 0x10]
inc edi
mov esi, eax
mov dword [esp + 0xa0], ecx
shl esi, 5
lea ecx, [eax + eax*2]
add esi, 0x5211fc
add eax, 3
mov dword [esp + 0x94], edx
lea ebx, [ecx*8 + 0x56f3fc]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x20]
mov al, byte [edx + 0x50]
test al, al
je 0x40cced
mov ecx, dword [esp + ebp + 0x98]
lea eax, [ecx + ecx*2]
shl eax, 3
mov edx, dword [eax + 0x509af8]
mov dword [esi - 4], edx
mov edx, dword [eax + 0x509afc]
mov eax, dword [eax + 0x509b00]
mov dword [esi], edx
mov dword [esi + 4], eax
mov eax, dword [esp + ebp + 0x8c]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0xf8]
lea eax, [eax + edx*4]
mov edx, dword [eax]
mov dword [esi + 8], edx
mov edx, dword [eax + 4]
mov dword [esi + 0xc], edx
mov eax, dword [eax + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x3c]
cmp eax, 2
jne 0x40cc6f
push str.Cylinder_wrap_with_triangular_faces_not_supported
push str.ComModelsLoadModFile
call fcn.00401170
add esp, 8
jmp 0x40cd3a
cmp eax, 3
jne 0x40ccb2
mov edx, dword [esp + 0xf0]
lea ecx, [ecx + ecx*2]
fld dword [edx + ecx*4]
fdiv dword [esp + 0x14]
lea eax, [edx + ecx*4]
fadd dword [0x4772bc]
fmul dword [0x477fec]
fstp dword [esi + 0x14]
fld dword [eax + 4]
fdiv dword [esp + 0x18]
fadd dword [0x4772bc]
fmul dword [0x477fec]
fstp dword [esi + 0x18]
jmp 0x40cd3a
cmp eax, 4
jne 0x40cccd
mov eax, dword [esp + ebp + 0xe4]
mov ecx, dword [esp + ebp + 0x104]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
jmp 0x40cd3a
mov edx, dword [esp + 0x1c]
lea eax, [edx + eax*4]
shl eax, 2
mov ecx, dword [esp + eax + 0xa4]
mov edx, dword [esp + eax + 0xc4]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
jmp 0x40cd3a
mov eax, dword [esp + ebp + 0x98]
lea eax, [eax + eax*2]
shl eax, 3
mov ecx, dword [eax + 0x509af8]
mov edx, dword [eax + 0x509afc]
mov eax, dword [eax + 0x509b00]
mov dword [ebx - 4], ecx
mov dword [ebx], edx
mov edx, dword [esp + 0xf8]
mov dword [ebx + 4], eax
mov eax, dword [esp + ebp + 0x8c]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*4]
mov ecx, dword [edx + ecx*4]
mov dword [ebx + 8], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0xc], edx
mov eax, dword [eax + 8]
mov dword [ebx + 0x10], eax
mov edx, dword [esp + 0x1c]
add esi, 0x20
add ebx, 0x18
add ebp, 4
inc edx
cmp ebp, 0xc
mov dword [esp + 0x1c], edx
jl 0x40cbf4
inc dword [esp + 0x24]
jmp 0x40d116
cmp eax, 4
jne 0x40d0fc
mov ecx, dword [ebp + edi*4 + 4]
inc edi
inc edi
mov dword [esp + 0x68], ecx
xor esi, esi
mov edx, dword [ebp + edi*4]
mov eax, dword [ebp + edi*4 + 4]
inc edi
mov dword [esp + 0x78], edx
inc edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x34], esi
mov ecx, dword [ebp + edi*4]
mov edx, dword [ebp + edi*4 + 4]
inc edi
mov dword [esp + 0x7c], ecx
inc edi
mov dword [esp + 0x70], edx
mov eax, dword [ebp + edi*4]
mov ecx, dword [ebp + edi*4 + 4]
inc edi
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10]
inc edi
mov dword [esp + 0x74], ecx
mov edx, dword [ebp + edi*4]
lea ecx, [eax + eax*2]
shl eax, 5
mov dword [esp + 0x84], edx
lea ebx, [ecx*8 + 0x56f3fc]
add eax, 0x5211fc
test esi, esi
je 0x40cde0
xor edx, edx
cmp esi, 1
setne dl
inc edx
mov esi, edx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], esi
mov dl, byte [ecx + 0x50]
test dl, dl
je 0x40cee0
mov edx, dword [esp + esi*4 + 0x68]
lea ecx, [edx + edx*2]
shl ecx, 3
mov ebp, dword [ecx + 0x509af8]
mov dword [eax - 4], ebp
mov ebp, dword [ecx + 0x509afc]
mov ecx, dword [ecx + 0x509b00]
mov dword [eax], ebp
mov ebp, dword [esp + 0xf8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + esi*4 + 0x78]
lea ecx, [ecx + ecx*2]
lea ecx, [ebp + ecx*4]
mov ebp, dword [ecx]
mov dword [eax + 8], ebp
mov ebp, dword [ecx + 4]
mov dword [eax + 0xc], ebp
mov ecx, dword [ecx + 8]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x3c]
cmp ecx, 2
jne 0x40ce7f
cmp esi, ecx
jge 0x40ce62
fild dword [esp + 0x1c]
fiadd dword [esp + 0x2c]
fidiv dword [esp + 0x30]
fstp dword [eax + 0x14]
mov dword [eax + 0x18], 0x3f800000
jmp 0x40cf26
fild dword [esp + 0x2c]
fadd dword [0x4772bc]
fidiv dword [esp + 0x30]
fstp dword [eax + 0x14]
mov dword [eax + 0x18], 0
jmp 0x40cf26
cmp ecx, 3
je 0x40ce89
cmp ecx, 4
jne 0x40cec4
mov ecx, dword [esp + 0xf0]
lea edx, [edx + edx*2]
fld dword [ecx + edx*4]
fadd dword [0x4772bc]
lea ecx, [ecx + edx*4]
fmul dword [0x477fec]
fdiv dword [esp + 0x14]
fstp dword [eax + 0x14]
fld dword [ecx + 4]
fadd dword [0x4772bc]
fmul dword [0x477fec]
fdiv dword [esp + 0x18]
fstp dword [eax + 0x18]
jmp 0x40cf26
lea esi, [esi + ecx*4]
shl esi, 2
mov edx, dword [esp + esi + 0xa4]
mov ecx, dword [esp + esi + 0xc4]
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
jmp 0x40cf26
mov ecx, dword [esp + esi*4 + 0x68]
mov esi, dword [esp + esi*4 + 0x78]
lea ecx, [ecx + ecx*2]
shl ecx, 3
mov edx, dword [ecx + 0x509af8]
mov dword [ebx - 4], edx
mov edx, dword [ecx + 0x509afc]
mov ecx, dword [ecx + 0x509b00]
mov dword [ebx], edx
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0xf8]
lea edx, [esi + esi*2]
lea ecx, [ecx + edx*4]
mov edx, dword [ecx]
mov dword [ebx + 8], edx
mov edx, dword [ecx + 4]
mov dword [ebx + 0xc], edx
mov ecx, dword [ecx + 8]
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x34]
inc ecx
add eax, 0x20
add ebx, 0x18
inc esi
cmp esi, 3
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], esi
jl 0x40cdd1
mov eax, ecx
lea edx, [ecx + ecx*2]
xor esi, esi
shl eax, 5
mov dword [esp + 0x34], esi
lea ebx, [edx*8 + 0x56f3fc]
add eax, 0x5211fc
test esi, esi
jne 0x40cf69
xor edx, edx
jmp 0x40cf74
xor edx, edx
cmp esi, 1
setne dl
add edx, 2
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
cmp byte [ecx + 0x50], 0
je 0x40d08e
mov esi, dword [esp + edx*4 + 0x68]
lea ecx, [esi + esi*2]
shl ecx, 3
mov ebp, dword [ecx + 0x509af8]
mov dword [eax - 4], ebp
mov ebp, dword [ecx + 0x509afc]
mov ecx, dword [ecx + 0x509b00]
mov dword [eax], ebp
mov ebp, dword [esp + 0xf8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + edx*4 + 0x78]
lea ecx, [ecx + ecx*2]
lea ecx, [ebp + ecx*4]
mov ebp, dword [ecx]
mov dword [eax + 8], ebp
mov ebp, dword [ecx + 4]
mov dword [eax + 0xc], ebp
mov ecx, dword [ecx + 8]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x3c]
cmp ecx, 2
jne 0x40d017
cmp edx, ecx
je 0x40cff6
cmp edx, 3
je 0x40cff6
fild dword [esp + 0x2c]
fidiv dword [esp + 0x30]
fstp dword [eax + 0x14]
mov dword [eax + 0x18], 0x3f800000
jmp 0x40d0d4
fild dword [esp + 0x2c]
fadd dword [0x477ff0]
fisub dword [esp + 0x1c]
fidiv dword [esp + 0x30]
fstp dword [eax + 0x14]
mov dword [eax + 0x18], 0
jmp 0x40d0d4
cmp ecx, 3
jne 0x40d057
mov ecx, dword [esp + 0xf0]
lea edx, [esi + esi*2]
fld dword [ecx + edx*4]
fdiv dword [esp + 0x14]
lea ecx, [ecx + edx*4]
fadd dword [0x4772bc]
fmul dword [0x477fec]
fstp dword [eax + 0x14]
fld dword [ecx + 4]
fdiv dword [esp + 0x18]
fadd dword [0x4772bc]
fmul dword [0x477fec]
fstp dword [eax + 0x18]
jmp 0x40d0d4
cmp ecx, 4
jne 0x40d072
mov ecx, dword [esp + edx*4 + 0xe4]
mov edx, dword [esp + edx*4 + 0x104]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
jmp 0x40d0d4
lea edx, [edx + ecx*4]
shl edx, 2
mov ecx, dword [esp + edx + 0xa4]
mov edx, dword [esp + edx + 0xc4]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
jmp 0x40d0d4
mov ecx, dword [esp + edx*4 + 0x68]
mov edx, dword [esp + edx*4 + 0x78]
lea ecx, [ecx + ecx*2]
lea edx, [edx + edx*2]
shl ecx, 3
mov esi, dword [ecx + 0x509af8]
mov dword [ebx - 4], esi
mov esi, dword [ecx + 0x509afc]
mov ecx, dword [ecx + 0x509b00]
mov dword [ebx], esi
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0xf8]
lea ecx, [ecx + edx*4]
mov edx, dword [ecx]
mov dword [ebx + 8], edx
mov edx, dword [ecx + 4]
mov dword [ebx + 0xc], edx
mov ecx, dword [ecx + 8]
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x34]
inc ecx
add eax, 0x20
add ebx, 0x18
inc esi
cmp esi, 3
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], esi
jl 0x40cf61
add dword [esp + 0x24], 2
jmp 0x40d116
mov edx, dword [esp + 0xe8]
push edx
push str.Invalid_mod_file__d
push str.ComModelsLoadModFile
call fcn.00401170
add esp, 0xc
cmp dword [esp + 0x10], 0x2710
jge 0x40d311
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
inc edx
cmp eax, 0xb
mov dword [esp + 0x2c], edx
jge 0x40d16d
mov edx, dword [esp + 0x38]
inc eax
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
mov eax, dword [edx + ecx*4]
test eax, eax
jbe 0x40d16d
mov ecx, dword [esp + 0xfc]
lea edx, [ecx - 3]
cmp edi, edx
jge 0x40d16d
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add edx, dword [esi]
cmp edx, eax
jbe 0x40d16d
inc edi
mov dword [esp + 0x40], edi
mov edi, ecx
mov eax, dword [esp + 0xfc]
inc edi
dec eax
cmp edi, eax
jl 0x40cb6e
mov ecx, dword [esp + 0x20]
mov al, byte [ecx + 0x50]
test al, al
mov eax, dword [esp + 0x10]
je 0x40d1cf
mov edx, dword [esp + 0x24]
mov ebp, ecx
mov esi, eax
mov dword [esp + 0x54], eax
mov dword [ebp + 8], edx
mov eax, dword [0x6baa00]
lea ebx, [ebp + 4]
push 0
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], 0x10
mov dword [esp + 0x54], 0x112
mov dword [esp + 0x50], 0x800
mov ecx, dword [eax]
push ebx
push edx
push eax
shl esi, 5
call dword [ecx + 0x14]
jmp 0x40d216
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
lea esi, [eax + eax*2]
mov dword [esp + 0x54], eax
mov dword [ebx + 8], ecx
mov eax, dword [0x6baa00]
add ebx, 4
push 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], 0x10
mov dword [esp + 0x54], 0x12
mov dword [esp + 0x50], 0x800
mov edx, dword [eax]
push ebx
push ecx
push eax
shl esi, 3
call dword [edx + 0x14]
mov ebp, dword [esp + 0x20]
push eax
push str.CreateVertexBuffer
push str.ComModelsLoadModFile
call fcn.00408b70
add esp, 0xc
test al, al
je 0x40d336
mov eax, dword [ebx]
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x48]
mov edx, dword [eax]
push ecx
push 0
push eax
call dword [edx + 0xc]
mov edi, eax
mov eax, dword [esp + 0x88]
cmp eax, esi
je 0x40d26f
mov edx, dword [esp + 0xe8]
push edx
push str.Size_problem_in_vertex_buffer_for_model__d
push str.ComModelsLoadModFile
call fcn.00401170
add esp, 0xc
push edi
push str.Lock
push str.ComModelsLoadModFile
call fcn.00408b70
add esp, 0xc
test al, al
je 0x40d360
mov al, byte [ebp + 0x50]
mov ecx, esi
test al, al
je 0x40d2a7
mov edi, dword [esp + 0x44]
mov eax, ecx
mov esi, 0x5211f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x40d2b9
mov edi, dword [esp + 0x44]
mov edx, ecx
mov esi, 0x56f3f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebx]
call dword [eax + 0x10]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
inc eax
mov edx, dword [ecx + 0x450]
mov dword [esp + 0x28], eax
cmp eax, edx
jl 0x40c987
mov ebx, dword [esp + 0xe8]
lea eax, [ebx + ebx*2]
pop edi
shl eax, 4
pop esi
pop ebp
mov dword [eax + 0x28fbc00], 1
mov byte [eax + 0x28fbbe0], 1
mov byte [eax + 0x28fbc04], 0
pop ebx
add esp, 0xd4
ret
mov edx, dword [esp + 0xe8]
push edx
push str.Too_many_triangle_points_in_model__d
push str.ComModelsLoadModFile
call fcn.004012b0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xe8]
push eax
push ecx
push str.Could_not_create_3d_model___d____d_
push 0x4edd18
call fcn.004012b0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xe8]
push edx
push eax
push str.Could_not_create_3d_model___d____d___Lock_
push 0x4edd18
call fcn.004012b0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
push ebx
push str.Invalid_model_num__d
push str.ComModelsLoadModFile
call fcn.00401170
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret