Function at 0x1400130e0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
mov eax, dword [rsp + 0x100]
and eax, 0xf
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xb
ja case.0x140013135.3
mov eax, dword [rsp + 0x48]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x133c8]
add rax, rcx
jmp rax
mov dword [rsp + 0x44], 0x80000000
mov dword [rsp + 0x40], 3
jmp 0x1400131e1
mov dword [rsp + 0x44], 0x40000000
mov dword [rsp + 0x40], 2
jmp 0x1400131e1
mov dword [rsp + 0x44], 0x40000000
mov dword [rsp + 0x40], 4
jmp 0x1400131e1
mov dword [rsp + 0x44], 0xc0000000
mov dword [rsp + 0x40], 3
jmp 0x1400131e1
mov dword [rsp + 0x44], 0xc0000000
mov dword [rsp + 0x40], 2
jmp 0x1400131e1
mov dword [rsp + 0x44], 0xc0000000
mov dword [rsp + 0x40], 4
jmp 0x1400131e1
lea rax, str.Invalid_file_mode
mov qword [rsp + 0x20], rax
mov r9d, 0x1398
lea r8, str.C:Users13304DesktoplangOdin_srcgbgb.h
xor edx, edx
lea rcx, str.Panic
call fcn.14000ca50
int3
lea rcx, [rsp + 0xb0]
call fcn.140229e60
lea rcx, [rsp + 0x70]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x80]
lea rcx, [rsp + 0x70]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
xor r8d, r8d
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x80]
call fcn.140012ce0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140013249
mov eax, 2
jmp 0x1400133be
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, 5
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0xc0]
call fcn.140229e60
lea rcx, [rsp + 0x90]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xa0]
lea rcx, [rsp + 0x90]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0xa0]
call fcn.140229e00
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x14001333d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 2
je 0x14001330b
cmp dword [rsp + 0x4c], 5
je 0x140013329
cmp dword [rsp + 0x4c], 0x50
je 0x140013315
cmp dword [rsp + 0x4c], 0xb7
je 0x14001331f
jmp 0x140013333
mov eax, 4
jmp 0x1400133be
mov eax, 3
jmp 0x1400133be
mov eax, 3
jmp 0x1400133be
mov eax, 5
jmp 0x1400133be
mov eax, 1
jmp 0x1400133be
mov eax, dword [rsp + 0x100]
and eax, 4
test eax, eax
je 0x140013393
mov dword [rsp + 0x68], 0
lea rax, [rsp + 0x6c]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov r9d, 2
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140013393
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400133be
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
lea rax, [0x1402832b0]
mov rdi, qword [rsp + 0xf8]
mov rsi, rax
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
xor eax, eax
add rsp, 0xd8
pop rdi
pop rsi
ret