Function at 0x18003c690
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 [0x180067dc0]
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 0x18003c6d0
xor eax, eax
jmp 0x18003ca22
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.180041550
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x18003c700
mov rcx, qword [rbp - 0x10]
cmp rdx, rcx
ja 0x18003c73d
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 0x18003c74c
mov r9, rax
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.18000d210
mov rdi, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
sub rax, rdi
cmp rax, 0x12
jb 0x18003c793
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 0x18003c7b3
mov qword [rsp + 0x20], 0x12
lea r9, str.resources_shaders_
xor r8d, r8d
lea edx, [r8 + 0x12]
lea rcx, [rbp - 0x28]
call fcn.18000d390
inc rsi
cmp word [r14 + rsi*2], 0
jne 0x18003c7b3
mov rdi, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
sub rax, rdi
cmp rsi, rax
ja 0x18003c801
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 0x18003c818
mov qword [rsp + 0x20], rsi
mov r9, r14
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x28]
call fcn.18000d390
mov qword [rbp - 0x40], r13
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rdx, qword [rbp - 0x28]
mov rdi, r13
lea r8, [0x18004fe24]
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
test eax, eax
jne 0x18003c9ab
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x18003c9af
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 0x18003c9ab
cmp dword [rbp - 0x30], edi
jne 0x18003c9ab
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 0x18003c9ab
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.18003c5f0
mov esi, eax
cmp eax, 0xffffffff
je 0x18003c9ab
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 0x18003c9ab
lea eax, [rsi + 1]
mov rcx, rbx
cmp eax, r14d
jge 0x18003c93d
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 0x18003c9ab
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 0x18003c9ab
movsxd rcx, dword [rbp - 0x34]
mov rsi, rcx
mov eax, dword [rbp - 0x2c]
sub eax, ecx
movsxd rbx, eax
jmp 0x18003c960
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 0x18003c9ab
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 0x18003c9a5
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 0x18003c9a5
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 0x18003c9a5
mov sil, 1
mov rcx, qword [rbp - 0x40]
jmp 0x18003c9b6
mov rcx, qword [rbp - 0x40]
jmp 0x18003c9b3
mov rcx, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x40]
xor sil, sil
test rcx, rcx
je 0x18003c9c1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test sil, sil
je 0x18003c9cb
mov qword [r15], rbx
jmp 0x18003c9dc
test rdi, rdi
je 0x18003c9d9
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 0x18003ca1f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003ca1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003ca1a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180049f88
mov rax, rdi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18004a020
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret