Function at 0x4c6990
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push ebx
push esi
push edi
lea edi, [ebp - 0x174]
mov ecx, 0x5d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x56666c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x574237
call fcn.0046464e
mov dword [ebp - 0xc], 0
mov esi, esp
push 0x534a48
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.ucrtbased.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.00464018
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4c6a05
mov eax, dword [ebp + 0x1c]
push eax
push str.FILEIO:___s__Failed_to_open_KTX_file
push 4
call fcn.0046388e
add esp, 0xc
jmp 0x4c6c0f
push 0x40
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.004639e2
add esp, 0xc
mov byte [ebp - 0x74], 0xab
mov byte [ebp - 0x73], 0x4b
mov byte [ebp - 0x72], 0x54
mov byte [ebp - 0x71], 0x58
mov byte [ebp - 0x70], 0x20
mov byte [ebp - 0x6f], 0x31
mov byte [ebp - 0x6e], 0x31
mov byte [ebp - 0x6d], 0xbb
mov byte [ebp - 0x6c], 0xd
mov byte [ebp - 0x6b], 0xa
mov byte [ebp - 0x6a], 0x1a
mov byte [ebp - 0x69], 0xa
mov esi, esp
push 0xc
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.ucrtbased.dll_strncpy]
add esp, 0xc
cmp esi, esp
call fcn.00464018
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.00464126
add esp, 0x10
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x48], 0xffffffff
jne 0x4c6af5
mov eax, dword [ebp - 0x48]
push eax
push str.IMAGE:_GL_format_not_supported_for_KTX_export___i_
push 4
call fcn.0046388e
add esp, 0xc
jmp 0x4c6bf9
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
push 1
push 0x40
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.00464018
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xa4], 0
jmp 0x4c6b4a
mov eax, dword [ebp - 0xa4]
add eax, 1
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp + 0x14]
jge 0x4c6bf9
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x80]
push edx
call fcn.0046361d
add esp, 0xc
mov dword [ebp - 0xb0], eax
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
push 1
push 4
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.00464018
mov dword [ebp - 0xc], eax
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
push 1
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x98]
push edx
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.00464018
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x80]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x8c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x98]
add eax, dword [ebp - 0xb0]
mov dword [ebp - 0x98], eax
jmp 0x4c6b3b
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ucrtbased.dll_fclose]
add esp, 4
cmp esi, esp
call fcn.00464018
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x4c6c44]
call fcn.00463dd4
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046399c
add esp, 0x174
cmp ebp, esp
call fcn.00464018
mov esp, ebp
pop ebp
ret