Function at 0x140074380
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov r9, qword [rcx]
mov ebp, 4
mov rbx, r8
mov rdi, rcx
mov rsi, rdx
lea r8d, [rbp - 3]
lea rcx, [rsp + 0x30]
mov edx, ebp
call fcn.1401c1e14
test rax, rax
je 0x14007463d
cmp dword [rsp + 0x30], 0x20534444
je 0x1400743d0
lea eax, [rbp - 2]
jmp 0x140074640
mov rcx, rdi
call fcn.140066b20
mov rcx, rdi
mov dword [rbx], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 4], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 8], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0xc], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x10], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x14], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x18], eax
call fcn.140066b20
mov edx, 0x28
mov dword [rbx + 0x1c], eax
mov r9, qword [rdi]
lea rcx, [rbx + 0x20]
lea r8d, [rdx - 0x27]
call fcn.1401c1e14
mov rcx, rdi
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x48], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x4c], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x50], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x54], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x58], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x5c], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x60], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x64], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x68], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x6c], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x70], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x74], eax
call fcn.140066b20
mov rcx, rbx
mov dword [rbx + 0x78], eax
call fcn.140072b40
xor ebp, ebp
test byte [rbx + 4], 4
mov dword [rbx + 0x98], ebp
je 0x14007456b
cmp dword [rbx + 0x50], 0x30315844
jne 0x14007456b
mov rcx, rdi
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x98], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0x9c], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0xa0], eax
call fcn.140066b20
mov rcx, rdi
mov dword [rbx + 0xa4], eax
call fcn.140066b20
mov dword [rbx + 0xa8], eax
mov eax, dword [rbx + 0x98]
cmp eax, 0x47
jne 0x14007454b
mov dword [rbx + 0x80], 1
jmp 0x14007456b
cmp eax, 0x4a
jne 0x14007455c
mov dword [rbx + 0x80], 3
jmp 0x14007456b
cmp eax, 0x4d
jne 0x14007456b
mov dword [rbx + 0x80], 5
mov ecx, dword [rbx + 0x80]
cmp ecx, 6
jbe 0x140074597
movups xmm0, xmmword [str.DDS_:_Unknown_Type_]
movups xmmword [rsi + 0x74], xmm0
mov eax, dword [0x140211200]
mov dword [rsi + 0x84], eax
mov eax, 9
jmp 0x140074640
cmp ecx, 1
jne 0x1400745be
mov edx, dword [rbx + 0xc]
cmp dword [rbx + 0x10], edx
jae 0x1400745be
mov eax, dword [rbx + 8]
or dword [rbx + 4], 0x80000
mov dword [rbx + 0x54], 0x20
imul eax, edx
shl eax, 2
mov dword [rbx + 0x10], eax
cmp dword [rbx + 0x54], ebp
jne 0x1400745f1
cmp dword [rbx + 0x10], ebp
jne 0x1400745f1
or dword [rbx + 4], 0x80000
test dword [rbx + 4], 0x80000
mov dword [rbx + 0x54], 0x20
je 0x1400745e8
mov eax, dword [rbx + 8]
imul eax, dword [rbx + 0xc]
jmp 0x1400745eb
mov eax, dword [rbx + 0xc]
shl eax, 2
mov dword [rbx + 0x10], eax
mov r8d, dword [rbx + 0x7c]
cmp r8d, 0xffffffff
je 0x14007463d
or dword [rbx + 4], 0x80000
lea eax, [rcx - 1]
test eax, 0xfffffff9
jne 0x140074621
cmp ecx, 7
je 0x140074621
mov eax, dword [rbx + 8]
imul eax, r8d
imul eax, dword [rbx + 0xc]
mov dword [rbx + 0x10], eax
jmp 0x14007463d
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 0xc]
add edx, 3
add ecx, 3
shr edx, 2
shr ecx, 2
imul edx, ecx
imul edx, r8d
mov dword [rbx + 0x10], edx
movzx eax, bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret