Function at 0x18003cc30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x180067d80]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15, r8
mov r12d, edx
mov r14, rcx
xor r13d, r13d
mov qword [r8], r13
test rcx, rcx
jne 0x18003cc70
xor eax, eax
jmp 0x18003cfc2
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r13w
call fcn.180041ad0
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x18003cca0
mov rcx, qword [rbp - 0x10]
cmp rdx, rcx
ja 0x18003ccdd
lea rdi, [rbp - 0x28]
cmp rcx, 7
cmova rdi, qword [rbp - 0x28]
mov qword [rbp - 0x18], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r13w
jmp 0x18003ccec
mov r9, rax
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.18000d770
mov rdi, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
sub rax, rdi
cmp rax, 0x12
jb 0x18003cd33
lea rax, [rdi + 0x12]
mov qword [rbp - 0x18], rax
lea rbx, [rbp - 0x28]
cmp rcx, 7
cmova rbx, qword [rbp - 0x28]
lea rcx, [rbx + rdi*2]
mov r8d, 0x24
lea rdx, str.resources_shaders_
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x24], r13w
jmp 0x18003cd53
mov qword [rsp + 0x20], 0x12
lea r9, str.resources_shaders_
xor r8d, r8d
lea edx, [r8 + 0x12]
lea rcx, [rbp - 0x28]
call fcn.18000d8f0
inc rsi
cmp word [r14 + rsi*2], 0
jne 0x18003cd53
mov rdi, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
sub rax, rdi
cmp rsi, rax
ja 0x18003cda1
lea rax, [rsi + rdi]
mov qword [rbp - 0x18], rax
lea rbx, [rbp - 0x28]
cmp rcx, 7
cmova rbx, qword [rbp - 0x28]
lea rcx, [rbx + rdi*2]
lea r8, [rsi + rsi]
mov rdx, r14
call sub.VCRUNTIME140.dll_memmove
lea rax, [rdi + rsi]
mov word [rbx + rax*2], r13w
jmp 0x18003cdb8
mov qword [rsp + 0x20], rsi
mov r9, r14
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x28]
call fcn.18000d8f0
mov qword [rbp - 0x40], r13
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rdx, qword [rbp - 0x28]
mov rdi, r13
lea r8, [0x18004fe74]
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
test eax, eax
jne 0x18003cf4b
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x18003cf4f
mov r9, rcx
lea edx, [rax + 4]
lea r8d, [rax + 1]
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
jne 0x18003cf4b
cmp dword [rbp - 0x30], edi
jne 0x18003cf4b
mov r9, qword [rbp - 0x40]
lea edx, [rax + 3]
mov r8, rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
jne 0x18003cf4b
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdx, eax
mov r9d, dword [rbp - 0x38]
dec r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rcx, qword [rbp - 0x40]
call fcn.18003cb90
mov esi, eax
cmp eax, 0xffffffff
je 0x18003cf4b
mov r14d, dword [rbp - 0x38]
mov rbx, qword [rbp - 0x40]
mov r9, rbx
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rbp - 0x34]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
jne 0x18003cf4b
lea eax, [rsi + 1]
mov rcx, rbx
cmp eax, r14d
jge 0x18003cedd
mov edx, 4
lea r8d, [rdx - 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18003cf4b
mov r9, rbx
lea edx, [rax + 4]
lea r8d, [rax + 1]
lea rcx, [rbp - 0x2c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
jne 0x18003cf4b
movsxd rcx, dword [rbp - 0x34]
mov rsi, rcx
mov eax, dword [rbp - 0x2c]
sub eax, ecx
movsxd rbx, eax
jmp 0x18003cf00
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18003cf4b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbx, eax
movsxd rsi, dword [rbp - 0x34]
sub rbx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x18003cf45
xor r8d, r8d
mov edx, esi
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18003cf45
mov r9, qword [rbp - 0x40]
mov r8, rbx
lea edx, [rax + 1]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rbx, rax
jne 0x18003cf45
mov sil, 1
mov rcx, qword [rbp - 0x40]
jmp 0x18003cf56
mov rcx, qword [rbp - 0x40]
jmp 0x18003cf53
mov rcx, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x40]
xor sil, sil
test rcx, rcx
je 0x18003cf61
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test sil, sil
je 0x18003cf6b
mov qword [r15], rbx
jmp 0x18003cf7c
test rdi, rdi
je 0x18003cf79
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, r13
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x18003cfbf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003cfba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003cfba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004a4a8
mov rax, rdi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18004a540
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret