Function at 0x4c42f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
lea edi, [ebp - 0x11c]
mov ecx, 0x47
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
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov esi, esp
push 0x52ec84
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ucrtbased.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.00464018
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4c436f
mov eax, dword [ebp + 0xc]
push eax
push str.FILEIO:___s__Failed_to_load_ASTC_file
push 4
call fcn.0046388e
add esp, 0xc
jmp 0x4c4526
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov esi, esp
mov eax, dword [ebp - 0x28]
push eax
push 1
push 0x10
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.ucrtbased.dll_fread]
add esp, 0x10
cmp esi, esp
call fcn.00464018
mov eax, 1
imul ecx, eax, 3
movzx edx, byte [ebp + ecx - 0x40]
cmp edx, 0x5c
jne 0x4c43e8
mov eax, 1
shl eax, 1
movzx ecx, byte [ebp + eax - 0x40]
cmp ecx, 0xa1
jne 0x4c43e8
mov eax, 1
shl eax, 0
movzx ecx, byte [ebp + eax - 0x40]
cmp ecx, 0xab
jne 0x4c43e8
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 0x40]
cmp edx, 0x13
je 0x4c4400
mov eax, dword [ebp + 0xc]
push eax
push str.IMAGE:___s__ASTC_file_not_a_valid_image
push 4
call fcn.0046388e
add esp, 0xc
jmp 0x4c4510
mov eax, 1
shl eax, 1
movzx ecx, byte [ebp + eax - 0x39]
shl ecx, 0x10
mov edx, 1
shl edx, 0
movzx eax, byte [ebp + edx - 0x39]
shl eax, 8
or ecx, eax
mov edx, 1
imul eax, edx, 0
movzx edx, byte [ebp + eax - 0x39]
or ecx, edx
mov dword [ebp - 0x18], ecx
mov eax, 1
shl eax, 1
movzx ecx, byte [ebp + eax - 0x36]
shl ecx, 0x10
mov edx, 1
shl edx, 0
movzx eax, byte [ebp + edx - 0x36]
shl eax, 8
or ecx, eax
mov edx, 1
imul eax, edx, 0
movzx edx, byte [ebp + eax - 0x36]
or ecx, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 1
movzx ecx, byte [ebp - 0x3c]
movzx edx, byte [ebp - 0x3b]
imul ecx, edx
mov eax, 0x80
cdq
idiv ecx
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 8
je 0x4c448f
cmp dword [ebp - 0x4c], 2
jne 0x4c44fd
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x4c]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x58], eax
mov esi, esp
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
add esp, 4
cmp esi, esp
call fcn.00464018
mov dword [ebp - 0x1c], eax
mov esi, esp
mov eax, dword [ebp - 0x28]
push eax
push 1
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ucrtbased.dll_fread]
add esp, 0x10
cmp esi, esp
call fcn.00464018
cmp dword [ebp - 0x4c], 8
jne 0x4c44ee
mov dword [ebp - 0xc], 0x14
jmp 0x4c44fb
cmp dword [ebp - 0x4c], 2
jne 0x4c44fb
mov dword [ebp - 0xc], 0x15
jmp 0x4c4510
mov eax, dword [ebp + 0xc]
push eax
push str.IMAGE:___s__ASTC_block_size_configuration_not_supported
push 4
call fcn.0046388e
add esp, 0xc
mov esi, esp
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ucrtbased.dll_fclose]
add esp, 4
cmp esi, esp
call fcn.00464018
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x4c4578]
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, 0x11c
cmp ebp, esp
call fcn.00464018
mov esp, ebp
pop ebp
ret