Function at 0x18003cc00
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 0x18003cc40
xor eax, eax
jmp 0x18003cf92
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.180041aa0
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x18003cc70
mov rcx, qword [rbp - 0x10]
cmp rdx, rcx
ja 0x18003ccad
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 0x18003ccbc
mov r9, rax
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.18000d740
mov rdi, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
sub rax, rdi
cmp rax, 0x12
jb 0x18003cd03
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 0x18003cd23
mov qword [rsp + 0x20], 0x12
lea r9, str.resources_shaders_
xor r8d, r8d
lea edx, [r8 + 0x12]
lea rcx, [rbp - 0x28]
call fcn.18000d8c0
inc rsi
cmp word [r14 + rsi*2], 0
jne 0x18003cd23
mov rdi, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
sub rax, rdi
cmp rsi, rax
ja 0x18003cd71
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 0x18003cd88
mov qword [rsp + 0x20], rsi
mov r9, r14
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x28]
call fcn.18000d8c0
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 0x18003cf1b
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x18003cf1f
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 0x18003cf1b
cmp dword [rbp - 0x30], edi
jne 0x18003cf1b
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 0x18003cf1b
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.18003cb60
mov esi, eax
cmp eax, 0xffffffff
je 0x18003cf1b
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 0x18003cf1b
lea eax, [rsi + 1]
mov rcx, rbx
cmp eax, r14d
jge 0x18003cead
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 0x18003cf1b
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 0x18003cf1b
movsxd rcx, dword [rbp - 0x34]
mov rsi, rcx
mov eax, dword [rbp - 0x2c]
sub eax, ecx
movsxd rbx, eax
jmp 0x18003ced0
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 0x18003cf1b
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 0x18003cf15
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 0x18003cf15
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 0x18003cf15
mov sil, 1
mov rcx, qword [rbp - 0x40]
jmp 0x18003cf26
mov rcx, qword [rbp - 0x40]
jmp 0x18003cf23
mov rcx, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x40]
xor sil, sil
test rcx, rcx
je 0x18003cf31
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test sil, sil
je 0x18003cf3b
mov qword [r15], rbx
jmp 0x18003cf4c
test rdi, rdi
je 0x18003cf49
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 0x18003cf8f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003cf8a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003cf8a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004a518
mov rax, rdi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18004a5b0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret