Function at 0x6c271bbc
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x19c
mov dword [esp + 8], 0x6c36d282
mov dword [esp + 4], str.version
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d1dc
mov dword [esp + 0x164], 0x4c553331
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [esp + 0x164]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
lea edi, [esp + 0x144]
mov esi, 0x6c32f2a0
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], 1
lea eax, [esp + 0x144]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
lea ebx, [esp + 0x44]
xor esi, esi
mov ecx, 0x100
mov edi, ebx
mov eax, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1b8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x6c453680
mov dword [esp + 4], str.__.160s__ld:_Date:_2015_03_03_12:22:50_0000__Tue__03_Mar_2015___
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
mov dword [esp + 4], 0
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d308
mov edx, dword [esp + 0x1b0]
mov ebp, dword [edx + 0x2004]
test ebp, ebp
je 0x6c271d0d
mov ebp, edx
add ebp, 0x200c
mov ecx, 0xffffffff
mov edi, ebp
mov eax, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
ja 0x6c273166
mov dword [esp + 8], 0x6c36d282
mov dword [esp + 4], str.coronas
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d1dc
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
mov eax, dword [esp + 0x1b0]
add eax, 0x6cc0
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
mov edx, dword [esp + 0x1b0]
mov esi, dword [edx + 0x6cc0]
test esi, esi
jle 0x6c271dea
xor esi, esi
xor ebx, ebx
mov edi, edx
mov ebp, dword [esp + 0x1b4]
lea esi, [esi]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 1
lea eax, [ebx + 0x24e]
shl eax, 4
add eax, edi
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [edi + esi*4 + 0x6360]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
inc ebx
add esi, 6
cmp dword [edi + 0x6cc0], ebx
jg 0x6c271d84
mov dword [esp + 4], 0
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d308
mov dword [esp + 8], 0x6c36d282
mov dword [esp + 4], str.lights
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d1dc
mov edx, dword [esp + 0x1b0]
mov eax, dword [edx + 0x24bc]
mov esi, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov dword [esp + 0x174], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [esp + 0x174]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
mov ebx, dword [esp + 0x174]
test ebx, ebx
jle 0x6c271eb1
xor ebx, ebx
mov edi, dword [esp + 0x1b4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.6c22d540
inc ebx
sub esi, 0xffffff80
cmp dword [esp + 0x174], ebx
jg 0x6c271e80
mov dword [esp + 4], 0
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d308
mov dword [esp + 8], 0x6c36d282
mov dword [esp + 4], str.irrcache
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d1dc
mov edx, dword [esp + 0x1b0]
mov eax, dword [edx + 0x24b8]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov dword [esp + 0x178], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [esp + 0x178]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
mov ecx, dword [esp + 0x178]
test ecx, ecx
jle 0x6c271ff6
xor esi, esi
mov edi, dword [esp + 0x1b4]
nop
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 8]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 4]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 1
lea eax, [ebx + 0x10]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
inc esi
add ebx, 0x20
cmp dword [esp + 0x178], esi
jg 0x6c271f4c
mov dword [esp + 4], 0
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d308
mov dword [esp + 8], 0x6c36d282
mov dword [esp + 4], str.materials
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d1dc
mov edx, dword [esp + 0x1b0]
mov eax, dword [edx + 0x24c0]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 4]
sub eax, 2
mov dword [esp + 0x17c], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [esp + 0x17c]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
mov eax, dword [esp + 0x17c]
add eax, 2
mov dword [esp + 0x17c], eax
cmp eax, 2
jle 0x6c2727ee
add ebx, 0x1e0
mov esi, 2
lea edi, [esp + 0x180]
mov ebp, dword [esp + 0x1b4]
jmp 0x6c2720c4
inc esi
add ebx, 0xf0
cmp dword [esp + 0x17c], esi
jle 0x6c2727ee
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 4]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 8]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x10]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x14]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x20]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x24]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x28]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x2c]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x30]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x34]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x40]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x44]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x48]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x4c]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x50]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 1
lea eax, [ebx + 0x60]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 8
mov dword [esp + 8], 1
lea eax, [ebx + 0x70]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x78]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
fld dword [ebx + 0x7c]
fsqrt
fld1
fld st(0)
fsub st(2)
fxch st(1)
faddp st(2)
fdivrp st(1)
fstp dword [esp + 0x180]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x80]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x84]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 8
mov dword [esp + 8], 1
lea eax, [ebx + 0x88]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x90]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x94]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x98]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x9c]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0xa0]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0xa4]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0xa8]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0xac]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0xb0]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0xb4]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0xb8]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 1
lea eax, [ebx + 0xc0]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 1
lea eax, [ebx + 0xd0]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x6c272796
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x6c272796
test byte [ebx + 4], 4
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x20], edx
jne 0x6c272767
dec edx
jle 0x6c2733e3
mov dword [esp + 0x10], 0
mov edx, dword [ebx + 0x18]
imul edx, dword [ebx + 0x1c]
imul edx, dword [esp + 0x20]
imul edx, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x6c2720b0
mov edx, dword [ebx + 0x44]
test edx, edx
je 0x6c2720b0
mov dword [esp + 0x10], 0
mov ecx, dword [ebx + 0x3c]
imul ecx, dword [ebx + 0x40]
imul ecx, dword [ebx + 0x48]
imul edx, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6c22d540
inc esi
add ebx, 0xf0
cmp dword [esp + 0x17c], esi
jg 0x6c2720c4
mov dword [esp + 4], 0
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d308
mov dword [esp + 8], 0x6c36d282
mov dword [esp + 4], str.geometry
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d1dc
mov edx, dword [esp + 0x1b0]
mov eax, dword [edx + 0x24b0]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x3c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x184], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [esp + 0x184]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
mov esi, dword [esp + 0x184]
test esi, esi
jle 0x6c272add
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], 0
nop
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
mov ebp, dword [esp + 0x30]
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
mov eax, ebp
add eax, 4
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
mov eax, ebp
add eax, 8
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
mov eax, ebp
add eax, 0xc
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x170], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea ecx, [esp + 0x170]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
mov ecx, dword [esp + 0x170]
mov dword [esp + 0x2c], ecx
lea eax, [ecx + ecx*8]
lea eax, [ecx + eax*2]
shl eax, 3
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x30]
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jle 0x6c272a88
mov esi, dword [esp + 0x34]
mov dword [esp + 0x28], 0
mov ecx, esi
mov edx, esi
mov eax, edi
xor ebx, ebx
mov ebp, dword [eax + 0x30]
mov dword [edx], ebp
mov ebp, dword [eax + 0x34]
mov dword [edx + 4], ebp
mov ebp, dword [eax + 0x38]
mov dword [edx + 8], ebp
mov ebp, dword [eax + 0x60]
mov dword [edx + 0x24], ebp
mov ebp, dword [eax + 0x64]
mov dword [edx + 0x28], ebp
mov ebp, dword [eax + 0x68]
mov dword [edx + 0x2c], ebp
mov ebp, dword [eax + 0x90]
mov dword [ecx + 0x48], ebp
mov ebp, dword [eax + 0x94]
mov dword [ecx + 0x4c], ebp
mov ebp, dword [eax + 0xc0]
mov dword [esi + ebx*8 + 0x78], ebp
mov ebp, dword [eax + 0xc4]
mov dword [esi + ebx*8 + 0x7c], ebp
mov ebp, dword [eax + 0x98]
mov dword [ecx + 0x50], ebp
mov ebp, dword [eax + 0x9c]
mov dword [ecx + 0x54], ebp
inc ebx
add eax, 0x10
add edx, 0xc
add ecx, 0x10
cmp ebx, 3
jne 0x6c2729d8
mov eax, dword [edi + 0xf0]
mov word [esi + 0x90], ax
mov eax, dword [edi + 0xf4]
mov word [esi + 0x94], ax
mov ax, word [edi + 0xfa]
mov word [esi + 0x92], ax
inc dword [esp + 0x28]
add edi, 0x100
add esi, 0x98
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x28], edx
jne 0x6c2729d0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x98
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_free
inc dword [esp + 0x38]
add dword [esp + 0x30], 0x10
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x184], edx
jg 0x6c272894
mov dword [esp + 4], 0
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d308
mov dword [esp + 8], 0x6c36d282
mov dword [esp + 4], str.units
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d1dc
mov edx, dword [esp + 0x1b0]
mov eax, dword [edx + 0x24b4]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov dword [esp + 0x188], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [esp + 0x188]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
mov ecx, dword [esp + 0x188]
test ecx, ecx
jle 0x6c27313f
xor esi, esi
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x1b4]
nop
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 4]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 8]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0xc]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x10]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x14]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x18]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x28]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x30]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x34]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x38]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x40]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x4c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x50]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x54]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x58]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x5c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 1
lea eax, [ebx + 0x60]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 1
lea eax, [ebx + 0x70]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 1
lea eax, [ebx + 0x80]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 1
lea eax, [ebx + 0x90]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 1
lea eax, [ebx + 0xd0]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x110]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x114]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x118]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x11c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x120]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [ebx + 0x128]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22d540
mov edx, dword [ebx + 0x28]
test edx, edx
je 0x6c27307f
mov dword [esp + 0x10], 0
mov eax, dword [ebx + 0x14]
imul eax, dword [ebx + 0x18]
imul eax, dword [ebx + 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.6c22d540
mov edx, dword [ebx + 0x4c]
test edx, edx
je 0x6c2730b1
mov dword [esp + 0x10], 0
mov eax, dword [ebx + 0x38]
imul eax, dword [ebx + 0x3c]
imul eax, dword [ebx + 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.6c22d540
mov edx, dword [ebx + 0x120]
test edx, edx
je 0x6c2730ee
mov dword [esp + 0x10], 0
mov eax, dword [ebx + 4]
shl eax, 4
mov eax, dword [ebp + eax + 8]
mov eax, dword [eax + 0x3c]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.6c22d540
mov edx, dword [ebx + 0x128]
test edx, edx
je 0x6c27312b
mov dword [esp + 0x10], 0
mov eax, dword [ebx + 4]
shl eax, 4
mov eax, dword [ebp + eax + 8]
mov eax, dword [eax + 0x3c]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.6c22d540
inc esi
add ebx, 0x130
cmp dword [esp + 0x188], esi
jg 0x6c272b7c
mov dword [esp + 4], 0
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d308
mov eax, 1
add esp, 0x19c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x6c36d282
mov dword [esp + 4], str.skybox
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d1dc
mov dword [esp + 0x16c], 0
xor ebx, ebx
jmp 0x6c273349
mov edx, dword [esp + 0x1b4]
mov edi, dword [edx]
mov dword [esp], edi
call sub.msvcrt.dll_ftell
mov dword [esp + 0x20], eax
mov byte [esp + 0x18c], 0x4a
mov byte [esp + 0x18d], 0x50
mov byte [esp + 0x18e], 0x45
mov byte [esp + 0x18f], 0x47
mov dword [esp + 0xc], edi
mov dword [esp + 8], 4
mov dword [esp + 4], 1
lea ecx, [esp + 0x18c]
mov dword [esp], ecx
call sub.msvcrt.dll_fwrite
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], edi
call sub.msvcrt.dll_fseek
mov dword [esp + 0x10], 0x55
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x16c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6c22b5c4
mov dword [esp], edi
call sub.msvcrt.dll_ftell
sub eax, dword [esp + 0x20]
mov dword [esp + 0x170], eax
mov dword [esp + 8], 1
neg eax
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_fseek
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], edi
call sub.msvcrt.dll_fseek
mov dword [esp + 0xc], edi
mov dword [esp + 8], 4
mov dword [esp + 4], 1
lea eax, [esp + 0x170]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp + 8], 1
mov eax, dword [esp + 0x170]
sub eax, 8
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_fseek
mov eax, dword [esp + 0x170]
mov edx, dword [esp + 0x1b4]
mov edi, dword [edx + 0xc018]
test edi, edi
je 0x6c2732dd
mov ecx, edx
mov edx, dword [edx + 0xc010]
lea edx, [edx + edx*2]
add dword [ecx + edx*4 + 0x18], eax
mov edx, dword [esp + 0x1b4]
add dword [edx + 0xc014], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x6c27331c
mov edx, dword [esi + 0xc]
test edx, edx
je 0x6c273306
mov eax, dword [edx - 4]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esi + 8]
cmp eax, 0x6c4590a0
jb 0x6c273314
cmp eax, 0x6c4598a0
jbe 0x6c27331c
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esi + 8], 0
mov eax, esi
sub eax, 0x6c4598a0
cmp eax, 0x3f
jg 0x6c273337
cmp esi, 0x6c4598a0
jae 0x6c27333f
mov dword [esp], esi
call sub.msvcrt.dll_free
inc ebx
cmp ebx, 6
je 0x6c273541
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.6c2306c4
mov esi, eax
test eax, eax
je 0x6c27355d
mov eax, dword [esi]
mov dword [esp + 0x168], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x16c], eax
test ebx, ebx
jne 0x6c273197
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [esp + 0x168]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 1
lea eax, [esp + 0x16c]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d540
jmp 0x6c273197
mov ecx, dword [ebp]
mov dword [esp + 0x20], ecx
mov dword [esp], ecx
call sub.msvcrt.dll_ftell
mov dword [esp + 0x24], eax
mov byte [esp + 0x18c], 0x4a
mov byte [esp + 0x18d], 0x50
mov byte [esp + 0x18e], 0x45
mov byte [esp + 0x18f], 0x47
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 4
mov dword [esp + 4], 1
lea ecx, [esp + 0x18c]
mov dword [esp], ecx
call sub.msvcrt.dll_fwrite
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov edx, dword [esp + 0x20]
mov dword [esp], edx
call sub.msvcrt.dll_fseek
mov dword [esp + 0x10], 0x55
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x20]
mov dword [esp], ecx
call fcn.6c22b5c4
mov edx, dword [esp + 0x20]
mov dword [esp], edx
call sub.msvcrt.dll_ftell
sub eax, dword [esp + 0x24]
mov dword [esp + 0x170], eax
mov dword [esp + 8], 1
neg eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x20]
mov dword [esp], ecx
call sub.msvcrt.dll_fseek
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov edx, dword [esp + 0x20]
mov dword [esp], edx
call sub.msvcrt.dll_fseek
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 4
mov dword [esp + 4], 1
lea eax, [esp + 0x170]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp + 8], 1
mov eax, dword [esp + 0x170]
sub eax, 8
mov dword [esp + 4], eax
mov edx, dword [esp + 0x20]
mov dword [esp], edx
call sub.msvcrt.dll_fseek
mov eax, dword [esp + 0x170]
mov edx, dword [ebp + 0xc018]
test edx, edx
je 0x6c273536
mov edx, dword [ebp + 0xc010]
lea edx, [edx + edx*2]
add dword [ebp + edx*4 + 0x18], eax
add dword [ebp + 0xc014], eax
jmp 0x6c272796
mov dword [esp + 4], 0
mov edx, dword [esp + 0x1b4]
mov dword [esp], edx
call fcn.6c22d308
jmp 0x6c271d0d
mov dword [esp], ebp
call fcn.6c22d028
mov dword [esp + 0x20], eax
mov dword [esp + 4], 0x6c453680
mov dword [esp], 0x6c490a40
call sub.msvcrt.dll_strcpy
mov edi, 0x6c490a40
xor eax, eax
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx + 0x6c490a3f]
mov esi, str.Textures_
mov ecx, 0xa
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp], 0x6c490a40
call sub.msvcrt.dll_strcat
mov dword [esp + 4], ebx
mov dword [esp], 0x6c490a40
call fcn.6c2306c4
mov esi, eax
test eax, eax
jne 0x6c27335f
mov dword [esp + 4], 0x6c453a80
mov dword [esp], 0x6c490a40
call sub.msvcrt.dll_strcpy
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp], 0x6c490a40
call sub.msvcrt.dll_strcat
mov dword [esp + 4], ebx
mov dword [esp], 0x6c490a40
call fcn.6c2306c4
mov esi, eax
test eax, eax
je 0x6c27333f
jmp 0x6c27335f