Function at 0x414df0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040fa20
mov cx, word [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, 0x100
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, 1
mov word [esi + 0x2a8], cx
push str.Self_Created_Hardware_Prerendered_Ground
lea ecx, [esi + 8]
mov dword [esi], 0x4803c4
mov dword [esi + 0x24], eax
mov word [esi + 0x2a6], di
mov dword [esi + 0x64], eax
mov dword [esi + 4], edx
mov dword [esi + 0x33c], 0
call fcn.00405100
mov eax, edi
mov word [esi + 0x2a0], 0x225
cdq
and edx, 0xff
add eax, edx
mov ebx, eax
mov eax, dword [ebp + 0x10]
cdq
and edx, 0xff
add eax, edx
sar ebx, 8
sar eax, 8
inc ebx
inc eax
imul ebx, eax
inc ebx
lea eax, [ebx + ebx*8]
shl eax, 2
push eax
call fcn.004640eb
xor edx, edx
add esp, 4
cmp eax, edx
mov dword [esi + 0x41c], eax
jne 0x414ead
push ebx
push str.texcoor
push 2
mov ecx, esi
call fcn.0040fcc0
push 1
call fcn.00465bed
mov eax, dword [ebp + 0x10]
mov word [esi + 0x420], dx
cmp eax, edx
mov dword [ebp - 8], edx
mov dword [ebp + 8], edx
jle 0x414fb3
mov dword [ebp - 4], eax
xor ecx, ecx
test edi, edi
jle 0x414f93
lea eax, [edx + edx*8]
mov ebx, edi
shl eax, 2
test eax, eax
je 0x414ee8
mov edi, dword [esi + 0x41c]
mov dword [eax + edi - 4], edx
movsx edx, word [esi + 0x420]
mov edi, dword [esi + 0x41c]
mov dword [eax + edi + 4], edx
mov edi, dword [esi + 0x41c]
xor edx, edx
cmp ebx, 0x100
mov dword [eax + edi + 8], edx
mov edi, dword [esi + 0x41c]
mov dword [eax + edi + 0xc], edx
mov edx, dword [esi + 0x41c]
mov edi, dword [ebp + 8]
mov dword [eax + edx + 0x18], ecx
mov edx, dword [esi + 0x41c]
mov dword [eax + edx + 0x1c], edi
mov edx, 0x100
jg 0x414f35
mov edx, ebx
mov edi, dword [esi + 0x41c]
mov dword [eax + edi + 0x10], edx
mov edx, dword [ebp - 4]
cmp edx, 0x100
jle 0x414f4f
mov edx, 0x100
mov edi, dword [esi + 0x41c]
add ecx, 0x100
sub ebx, 0x100
mov dword [eax + edi + 0x14], edx
mov edx, dword [esi + 0x41c]
mov edi, dword [ebp + 0xc]
mov dword [eax + edx + 0x20], 0
mov edx, dword [ebp - 8]
add word [esi + 0x420], 2
inc edx
add eax, 0x24
cmp ecx, edi
mov dword [ebp - 8], edx
jl 0x414eda
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
add ecx, 0x100
sub ebx, 0x100
cmp ecx, eax
mov dword [ebp + 8], ecx
mov dword [ebp - 4], ebx
jl 0x414ec8
movsx eax, word [esi + 0x420]
shl eax, 2
push eax
call fcn.004640eb
add esp, 4
mov dword [esi + 0x424], eax
test eax, eax
jne 0x414ff1
movsx ecx, word [esi + 0x420]
push ecx
push str.textures
push 2
mov ecx, esi
call fcn.0040fcc0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor ebx, ebx
cmp word [esi + 0x420], bx
mov dword [ebp + 0xc], ebx
jle 0x415161
jmp 0x415008
mov ebx, dword [ebp + 0xc]
push 0x20
call fcn.004640eb
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x41503e
mov eax, ebx
push 0
cdq
sub eax, edx
push 0x17
sar eax, 1
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x41c]
lea eax, [eax + edx*4]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
push edx
push eax
call fcn.00402780
jmp 0x415040
xor eax, eax
mov ecx, dword [esi + 0x424]
lea edx, [ebp + 0x10]
push 0
push edx
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x424]
mov ecx, dword [eax + ebx*4]
call fcn.00402ae0
mov ecx, dword [esi + 0x424]
mov edi, eax
xor eax, eax
mov edx, dword [ecx + ebx*4]
mov ecx, dword [edx + 0x14]
imul ecx, dword [ebp + 0x10]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x424]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax + 8]
test eax, eax
je 0x415097
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x44]
push 0x20
call fcn.004640eb
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4150cd
mov eax, ebx
push 2
cdq
sub eax, edx
push 0x50
sar eax, 1
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x41c]
lea eax, [eax + edx*4]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
push edx
push eax
call fcn.00402780
jmp 0x4150cf
xor eax, eax
mov ecx, dword [esi + 0x424]
lea edx, [ebp + 0x10]
push 0
push edx
mov dword [ecx + ebx*4 + 4], eax
mov eax, dword [esi + 0x424]
mov ecx, dword [eax + ebx*4 + 4]
call fcn.00402ae0
mov ecx, dword [esi + 0x424]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ecx + ebx*4 + 4]
cdq
sub eax, edx
mov edx, dword [ecx + 0x14]
sar eax, 1
imul edx, eax
mov dword [ebp + 8], edx
mov eax, 0x400
mov edi, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cld
mov bx, ax
shl eax, 0x10
mov ax, bx
shr ecx, 1
jae 0x41512b
mov word [edi], ax
add edi, 2
jcxz 0x415130
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x424]
mov edi, dword [ebp + 0xc]
mov eax, dword [eax + edi*4 + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x41514c
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x44]
movsx edx, word [esi + 0x420]
add edi, 2
cmp edi, edx
mov dword [ebp + 0xc], edi
jl 0x415005
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc