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

Disassembly:
sub esp, 0x19c
xor eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x1e
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
cmp dword [esp + 0x1b4], 3
jne 0x4ec97b
mov eax, dword [ebp + 0x1bc4]
mov edx, dword [ebp + 0x1bc0]
mov ebx, 4
mov dword [esp + 0x2c], 0xc
lea ecx, [eax + 4]
mov dword [esp + 0x1b4], ebx
cmp ecx, edx
jg 0x4ec96a
mov edx, dword [ebp + 0x1bd0]
mov ecx, dword [ebp + 0x1bcc]
add edx, 0xc
cmp edx, ecx
jg 0x4ec96a
mov edx, dword [ebp + 0x1bbc]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esp + 0x1b0]
mov esi, eax
lea edx, [edx + ecx*4]
mov ecx, 0x15
mov edi, edx
rep movsd dword es:[edi], dword [esi]
fld dword [eax + 0x38]
fadd dword [eax + 0x1c]
fadd dword [eax]
fld dword [eax + 0x3c]
fadd dword [eax + 0x20]
fadd dword [eax + 4]
fstp dword [esp + 0x18]
fld dword [eax + 0x40]
fadd dword [eax + 0x24]
fadd dword [eax + 8]
fstp dword [esp + 0x1c]
fld st(0)
fmul dword [0x594638]
fld dword [esp + 0x18]
fmul dword [0x594638]
fstp dword [esp + 0x3c]
fld dword [esp + 0x1c]
fmul dword [0x594638]
fstp dword [esp + 0x40]
fld dword [eax + 0x4c]
fadd dword [eax + 0x30]
fadd dword [eax + 0x14]
fmul dword [0x594638]
fld dword [eax + 0x50]
fadd dword [eax + 0x34]
fadd dword [eax + 0x18]
fmul dword [0x594638]
fstp dword [esp + 0x10]
fld dword [esp + 0x1b8]
fmul dword [ebp + 0x173c]
mov ecx, dword [esp + 0x10]
fsubr st(2)
fstp dword [edx + 0x54]
fld dword [esp + 0x1bc]
fmul dword [ebp + 0x173c]
fsubr dword [esp + 0x3c]
fstp dword [edx + 0x58]
fld dword [esp + 0x1c0]
fmul dword [ebp + 0x173c]
mov dword [edx + 0x6c], ecx
fsubr dword [esp + 0x40]
fstp dword [edx + 0x5c]
fstp dword [edx + 0x68]
mov ecx, dword [eax + 0xc]
fstp st(0)
fadd dword [edx + 0x54]
mov dword [edx + 0x60], ecx
mov eax, dword [eax + 0x10]
mov dword [edx + 0x64], eax
lea eax, [edx + 8]
fmul dword [0x59435c]
mov ecx, ebx
fstp dword [esp + 0x38]
fld dword [esp + 0x18]
fadd dword [edx + 0x58]
fmul dword [0x59435c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x1c]
fadd dword [edx + 0x5c]
fmul dword [0x59435c]
fstp dword [esp + 0x40]
fld dword [eax - 8]
fsub dword [esp + 0x38]
add eax, 0x1c
dec ecx
fstp dword [eax - 0x24]
fld dword [eax - 0x20]
fsub dword [esp + 0x3c]
fstp dword [eax - 0x20]
fld dword [eax - 0x1c]
fsub dword [esp + 0x40]
fstp dword [eax - 0x1c]
jne 0x4ec8db
mov esi, dword [ebp + 0x1bc4]
mov ecx, dword [ebp + 0x1bd0]
mov eax, dword [ebp + 0x1bc8]
add esi, ebx
mov dword [ebp + 0x1bc4], esi
xor ebx, ebx
lea eax, [eax + ecx*2]
mov esi, 1
mov ecx, 2
mov edi, 3
mov word [eax], bx
mov word [eax + 2], si
mov word [eax + 4], cx
mov word [eax + 6], si
mov word [eax + 8], bx
mov word [eax + 0xa], di
mov word [eax + 0xc], cx
mov word [eax + 0xe], si
mov word [eax + 0x10], di
mov word [eax + 0x12], bx
mov word [eax + 0x14], cx
mov word [eax + 0x16], di
mov ecx, dword [ebp + 0x1bd0]
add ecx, 0xc
jmp 0x4ecb90
mov ecx, dword [0x5e062c]
push str.A3DPArray::EmitOneFragment___buffer_overflow_
push ecx
jmp 0x4ed4df
mov eax, dword [ebp + 0x1bc4]
mov ecx, dword [ebp + 0x1bc0]
mov ebx, 5
mov dword [esp + 0x2c], 0x12
lea edx, [eax + 5]
mov dword [esp + 0x1b4], ebx
cmp edx, ecx
jg 0x4ed4d4
mov ecx, dword [ebp + 0x1bd0]
mov edx, dword [ebp + 0x1bcc]
add ecx, 0x12
cmp ecx, edx
jg 0x4ed4d4
lea edx, [eax*8]
mov ecx, 0x1c
sub edx, eax
mov eax, dword [ebp + 0x1bbc]
lea edx, [eax + edx*4]
mov eax, dword [esp + 0x1b0]
mov esi, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
fld dword [eax + 0x54]
fadd dword [eax + 0x38]
fadd dword [eax + 0x1c]
fadd dword [eax]
fld dword [eax + 0x58]
fadd dword [eax + 0x3c]
fadd dword [eax + 0x20]
fadd dword [eax + 4]
fstp dword [esp + 0x18]
fld dword [eax + 0x5c]
fadd dword [eax + 0x40]
fadd dword [eax + 0x24]
fadd dword [eax + 8]
fstp dword [esp + 0x1c]
fld st(0)
fmul dword [0x59435c]
fld dword [esp + 0x18]
fmul dword [0x59435c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x1c]
fmul dword [0x59435c]
fstp dword [esp + 0x40]
fld dword [eax + 0x68]
fadd dword [eax + 0x4c]
fadd dword [eax + 0x30]
fadd dword [eax + 0x14]
fmul dword [0x59435c]
fld dword [eax + 0x6c]
fadd dword [eax + 0x50]
fadd dword [eax + 0x34]
fadd dword [eax + 0x18]
fmul dword [0x59435c]
fstp dword [esp + 0x10]
fld dword [esp + 0x1b8]
fmul dword [ebp + 0x173c]
mov ecx, dword [esp + 0x10]
fsubr st(2)
fstp dword [edx + 0x70]
fld dword [esp + 0x1bc]
fmul dword [ebp + 0x173c]
fsubr dword [esp + 0x3c]
fstp dword [edx + 0x74]
fld dword [esp + 0x1c0]
fmul dword [ebp + 0x173c]
mov dword [edx + 0x88], ecx
fsubr dword [esp + 0x40]
fstp dword [edx + 0x78]
fstp dword [edx + 0x84]
mov ecx, dword [eax + 0xc]
fstp st(0)
fadd dword [edx + 0x70]
mov dword [edx + 0x7c], ecx
mov eax, dword [eax + 0x10]
mov dword [edx + 0x80], eax
lea eax, [edx + 8]
fmul dword [0x594634]
mov ecx, ebx
fstp dword [esp + 0x38]
fld dword [esp + 0x18]
fadd dword [edx + 0x74]
fmul dword [0x594634]
fstp dword [esp + 0x3c]
fld dword [esp + 0x1c]
fadd dword [edx + 0x78]
fmul dword [0x594634]
fstp dword [esp + 0x40]
fld dword [eax - 8]
fsub dword [esp + 0x38]
add eax, 0x1c
dec ecx
fstp dword [eax - 0x24]
fld dword [eax - 0x20]
fsub dword [esp + 0x3c]
fstp dword [eax - 0x20]
fld dword [eax - 0x1c]
fsub dword [esp + 0x40]
fstp dword [eax - 0x1c]
jne 0x4ecae7
mov ecx, dword [ebp + 0x1bd0]
mov eax, dword [ebp + 0x1bc8]
mov esi, dword [ebp + 0x1bc4]
mov edi, 1
add esi, ebx
lea eax, [eax + ecx*2]
mov dword [ebp + 0x1bc4], esi
xor ebx, ebx
mov word [eax + 2], di
mov word [eax + 0xc], di
mov word [eax + 0x14], di
mov ecx, 2
mov esi, 4
mov edi, 3
mov word [eax], bx
mov word [eax + 4], cx
mov word [eax + 6], bx
mov word [eax + 8], cx
mov word [eax + 0xa], 3
mov word [eax + 0xe], bx
mov word [eax + 0x10], si
mov word [eax + 0x12], cx
mov word [eax + 0x16], si
mov word [eax + 0x18], di
mov word [eax + 0x1a], cx
mov word [eax + 0x1c], si
mov word [eax + 0x1e], bx
mov word [eax + 0x20], di
mov word [eax + 0x22], si
mov ecx, dword [ebp + 0x1bd0]
add ecx, 0x12
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x1b4]
mov dword [ebp + 0x1bd0], ecx
mov ecx, dword [ebp + 0x1bdc]
mov dword [esp + 0xb0], edx
mov edx, dword [0x5ce824]
mov dword [esp + 0xc0], eax
mov eax, dword [0x5ce82c]
push ebx
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x30]
push edx
push ebx
push eax
mov dword [esp + 0xc4], ecx
call fcn.005758c0
mov esi, dword [0x5ce828]
push ebx
push esi
push edx
push eax
call fcn.00575800
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
fild qword [esp + 0x20]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
push ecx
lea ecx, [esp + 0x124]
fidiv dword [esp + 0x24]
mov dword [0x5ce82c], eax
fmul dword [0x59443c]
fsub dword [0x58dff4]
fstp dword [esp]
push ecx
call fcn.004ab8f0
mov edx, dword [0x5ce824]
add esp, 8
mov esi, eax
mov eax, dword [0x5ce82c]
push ebx
mov ecx, 0x10
lea edi, [esp + 0x170]
push edx
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.005758c0
mov esi, dword [0x5ce828]
push ebx
push esi
push edx
push eax
call fcn.00575800
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
fild qword [esp + 0x20]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
push ecx
lea ecx, [esp + 0xcc]
fidiv dword [esp + 0x24]
mov dword [0x5ce82c], eax
fmul dword [0x59443c]
fsub dword [0x58dff4]
fstp dword [esp]
push ecx
call fcn.004ab7d0
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0x128]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
lea edi, [esp + 0xd0]
rep stosd dword es:[edi], eax
add esp, 8
xor edi, edi
lea esi, [esp + 0x16c]
lea ebx, [esp + edi + 0xc8]
mov dword [esp + 0x2c], 4
fld dword [ebx]
lea ecx, [esp + edi + 0x120]
mov eax, esi
mov edx, 4
fld dword [eax]
fmul dword [ecx]
add eax, 0x10
add ecx, 4
dec edx
faddp st(1)
jne 0x4ecce2
fstp dword [ebx]
mov eax, dword [esp + 0x2c]
add ebx, 4
add esi, 4
dec eax
mov dword [esp + 0x2c], eax
jne 0x4eccd2
add edi, 0x10
cmp edi, 0x40
jl 0x4eccbc
fld dword [esp + 0x38]
fsub dword [ebp + 0x17a4]
fld dword [esp + 0x3c]
fsub dword [ebp + 0x17a8]
fstp dword [esp + 0x18]
fld dword [esp + 0x40]
fsub dword [ebp + 0x17ac]
fstp dword [esp + 0x1c]
fld st(0)
fmul st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fsqrt
fst dword [esp + 0x10]
fcomp qword [0x58dc98]
fnstsw ax
test ah, 1
je 0x4ecd9e
fld dword [esp + 0x10]
fcomp qword [0x58dc90]
fnstsw ax
test ah, 0x41
jne 0x4ecd9e
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x1c]
fstp st(0)
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
jmp 0x4ecdd2
fdiv dword [esp + 0x10]
fstp dword [esp + 0x2c]
fld dword [esp + 0x18]
fdiv dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], edx
fstp dword [esp + 0x30]
fld dword [esp + 0x1c]
fdiv dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
fstp dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
fld dword [esp + 0xc8]
fmul dword [esp + 0x20]
fld dword [esp + 0xd8]
fmul dword [esp + 0x24]
mov dword [esp + 0x28], ecx
xor ebx, ebx
push ebx
faddp st(1)
fld dword [esp + 0xec]
fmul dword [esp + 0x2c]
faddp st(1)
fadd dword [esp + 0xfc]
fld dword [esp + 0xd0]
fmul dword [esp + 0x24]
fld dword [esp + 0xe0]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0xf0]
fmul dword [esp + 0x2c]
faddp st(1)
fadd dword [esp + 0x100]
fstp dword [esp + 0x1c]
fld dword [esp + 0xd4]
fmul dword [esp + 0x24]
fld dword [esp + 0xe4]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0xf4]
fmul dword [esp + 0x2c]
faddp st(1)
fadd dword [esp + 0x104]
fstp dword [esp + 0x20]
fld dword [esp + 0xd8]
fmul dword [esp + 0x24]
fld dword [esp + 0xe8]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0xf8]
fmul dword [esp + 0x2c]
faddp st(1)
fadd dword [esp + 0x108]
fdivr dword [0x58d5d4]
fst dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
fstp st(0)
fld dword [esp + 0x14]
fmul dword [esp + 0x1c]
mov dword [esp + 0x78], edx
mov edx, dword [ebp + 0x1704]
mov dword [esp + 0x30], edx
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
fmul dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x7c], eax
mov eax, dword [0x5ce824]
push eax
push ebx
fstp dword [esp + 0x28]
fld dword [ebp + 0x1708]
fmul dword [ebp + 0x1704]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x88], ecx
mov ecx, dword [0x5ce82c]
fmul dword [0x58f208]
push ecx
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
fsub dword [esp + 0x20]
fstp dword [esp + 0x30]
call fcn.005758c0
mov esi, dword [0x5ce828]
push ebx
push esi
push edx
push eax
call fcn.00575800
mov dword [0x5ce82c], eax
fld dword [esp + 0x2c]
fadd dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
fsub dword [esp + 0x20]
fild qword [esp + 0x2c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
fidiv dword [esp + 0x2c]
fmulp st(1)
fadd dword [esp + 0x20]
fmul dword [ebp + 0x120]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x18]
fmul st(1)
mov edx, dword [esp + 0x20]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x38]
fstp dword [esp + 0x24]
fld dword [esp + 0x1c]
fmul st(1)
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x3c]
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x54], eax
fstp st(0)
fild dword [ebp + 0x1700]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x40]
push ecx
mov dword [esp + 0x5c], ecx
fidiv dword [ebp + 0x16fc]
fld st(0)
fadd dword [0x58d5d4]
fstp dword [esp]
fld dword [0x58d5d4]
fsub st(1)
push ecx
fstp dword [esp]
fstp st(0)
call fcn.004a9ce0
fild dword [ebp + 0x16fc]
fmul st(1)
call sub.MSVCRT.dll__ftol
fstp st(0)
fld dword [ebp + 0x1714]
fmul dword [ebp + 0x1710]
add esp, 4
mov dword [esp + 0x64], eax
fmul dword [0x58f208]
fld dword [ebp + 0x1710]
fld st(0)
fadd st(2)
fstp dword [esp]
push ecx
fsub st(1)
fstp dword [esp]
fstp st(0)
call fcn.004a9ce0
fmul dword [ebp + 0x11c]
add esp, 4
fstp dword [esp + 0xa4]
fld dword [ebp + 0x1764]
fmul dword [0x58f208]
fld st(0)
fadd dword [0x58d5d4]
fstp dword [esp]
fld dword [0x58d5d4]
fsub st(1)
push ecx
fstp dword [esp]
fstp st(0)
call fcn.004a9ce0
fild dword [ebp + 0x1760]
add esp, 8
fmul st(1)
call sub.MSVCRT.dll__ftol
xor edx, edx
cmp eax, ebx
setl dl
dec edx
mov ecx, ebp
and eax, edx
fstp st(0)
mov dword [esp + 0x98], eax
call fcn.004d8420
fstp dword [esp + 0x9c]
lea eax, [esp + 0x74]
lea ecx, [esp + 0x44]
push eax
push ecx
mov ecx, ebp
call fcn.004d84c0
mov edx, dword [eax]
mov dword [esp + 0x8c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x90], ecx
mov ecx, ebp
mov edx, dword [eax + 8]
mov dword [esp + 0x94], edx
call fcn.004d89e0
fstp dword [esp + 0xac]
mov ecx, ebp
call fcn.004d8940
mov ecx, ebp
mov dword [esp + 0xa8], eax
call fcn.004d88a0
fst dword [esp + 0xa4]
fcomp dword [0x58ddb8]
fnstsw ax
test ah, 0x40
jne 0x4ed2e8
fld dword [esp + 0x74]
fcomp dword [0x58ddb8]
fnstsw ax
test ah, 0x40
je 0x4ed12a
fld dword [esp + 0x78]
fcomp dword [0x58d5d4]
fnstsw ax
test ah, 0x40
je 0x4ed12a
fld dword [esp + 0x7c]
fcomp dword [0x58ddb8]
fnstsw ax
test ah, 0x40
je 0x4ed12a
push ebx
push ebx
push 0x3f800000
lea ecx, [esp + 0x50]
jmp 0x4ed135
push ebx
push 0x3f800000
push ebx
lea ecx, [esp + 0x50]
call fcn.0040cf40
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x28], edx
lea edx, [esp + 0x78]
mov eax, dword [eax + 8]
push edx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x4c]
push eax
call fcn.004d80b0
lea ecx, [esp + 0x114]
push eax
push ecx
call fcn.0045fa00
mov edx, dword [eax]
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x40]
mov edx, dword [eax + 8]
lea eax, [esp + 0x88]
mov dword [esp + 0x48], edx
push eax
lea edx, [esp + 0x120]
push ecx
push edx
call fcn.004d80b0
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0045fa00
mov ecx, dword [eax]
push 0x40c90fdb
mov dword [esp + 0x40], ecx
push ebx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x4c], eax
call fcn.004a9ce0
fstp dword [esp + 0x2c]
mov edx, dword [esp + 0xa4]
add esp, 0x2c
mov eax, dword [esp + 0x7c]
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
mov dword [ecx], edx
mov edx, dword [esp + 0x98]
mov dword [ecx + 4], eax
mov eax, esp
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
lea edx, [esp + 0x13c]
push edx
mov dword [eax + 8], ecx
call fcn.004abb60
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0x140]
lea eax, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
lea esi, [esp + 0x140]
lea edi, [esp + 0xe8]
push eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xec]
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.004a9c20
add esp, 0x2c
lea ecx, [esp + 0xc8]
lea edx, [esp + 0x160]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
push edx
call fcn.004a9c20
add esp, 0xc
push eax
lea eax, [esp + 0x11c]
push eax
call fcn.0045f890
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xb0]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x28], edx
lea edx, [esp + 0x24]
mov eax, dword [eax + 8]
push edx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x128]
push eax
call fcn.004611b0
mov ecx, dword [eax]
add esp, 0x18
mov dword [esp + 0x80], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x84], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x88], eax
mov ecx, dword [0x5ce824]
mov edx, dword [0x5ce82c]
push ebx
push ecx
push ebx
push edx
call fcn.005758c0
mov ecx, dword [0x5ce828]
push ebx
push ecx
push edx
push eax
call fcn.00575800
xor edx, edx
mov ecx, 0x64
mov dword [0x5ce82c], eax
div ecx
cmp edx, ecx
jae 0x4ed489
cmp dword [ebp + 0x1bb8], 1
jge 0x4ed489
lea edx, [ebp + 8]
push str.nosmoke_
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x4ed489
mov edi, dword [ebp + 0x1bb8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x110]
push ebx
inc edi
sub esp, 0xc
mov dword [ebp + 0x1bb8], edi
mov ecx, dword [eax + 0x764]
mov eax, dword [esp + 0x24]
mov edx, esp
mov dword [esp + 0x28], 0x3f800000
sub esp, 0xc
mov dword [edx], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], 0x3f800000
mov ecx, dword [ecx + 0x4c]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x3c]
mov edx, esp
sub esp, 0xc
mov dword [edx], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x50]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x54]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x58]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 8], eax
lea edx, [esp + 0x38]
push edx
push ebx
push ebx
push ebx
push str.SmokeTail.gfx
call fcn.004c2ce0
test al, al
je 0x4ed4e7
mov eax, dword [ebp + 0x110]
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [eax + 0x764]
mov ecx, dword [ecx + 0x4c]
call fcn.004c33e0
test al, al
je 0x4ed4e7
sub esp, 0xc
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x20]
mov eax, esp
mov dword [esp + 0x24], 0x3f800000
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x1c]
call fcn.004c1cb0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edx + 8], eax
call fcn.004c1bb0
mov ecx, dword [esp + 0x10]
push ebx
call fcn.004c0eb0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc4], ecx
mov eax, dword [ebp + 0x220]
mov ecx, dword [ebp + 0x224]
cmp eax, ecx
jge 0x4ed4c5
mov ecx, dword [ebp + 0x218]
mov edx, dword [ebp + 0x21c]
mov edi, ecx
lea esi, [esp + 0x50]
imul edi, eax
add edi, edx
mov edx, ecx
inc eax
shr ecx, 2
mov dword [ebp + 0x220], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret 0x14
mov eax, dword [0x5e062c]
push str.A3DPArray::EmitOneFragment___buffer_overflow_
push eax
call fcn.004c6d70
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x19c
ret 0x14