Function at 0x14001e2e0
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.0x14001e335.3
mov eax, dword [rsp + 0x48]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x1e5cc]
add rax, rcx
jmp rax
mov dword [rsp + 0x44], 0x80000000
mov dword [rsp + 0x40], 3
jmp 0x14001e3e1
mov dword [rsp + 0x44], 0x40000000
mov dword [rsp + 0x40], 2
jmp 0x14001e3e1
mov dword [rsp + 0x44], 0x40000000
mov dword [rsp + 0x40], 4
jmp 0x14001e3e1
mov dword [rsp + 0x44], 0xc0000000
mov dword [rsp + 0x40], 3
jmp 0x14001e3e1
mov dword [rsp + 0x44], 0xc0000000
mov dword [rsp + 0x40], 2
jmp 0x14001e3e1
mov dword [rsp + 0x44], 0xc0000000
mov dword [rsp + 0x40], 4
jmp 0x14001e3e1
lea rax, str.Invalid_file_mode
mov qword [rsp + 0x20], rax
mov r9d, 0x13c6
lea r8, str.C:OdinLangOdin_dev_2024_08_srcgbgb.h
xor edx, edx
lea rcx, str.Panic
call fcn.140017c40
int3
lea rcx, [rsp + 0xb0]
call fcn.140249ac0
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.14001dee0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14001e449
mov eax, 2
jmp 0x14001e5bf
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.140249ac0
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.140249a60
nop
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x14001e53e
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 0x14001e50c
cmp dword [rsp + 0x4c], 5
je 0x14001e52a
cmp dword [rsp + 0x4c], 0x50
je 0x14001e516
cmp dword [rsp + 0x4c], 0xb7
je 0x14001e520
jmp 0x14001e534
mov eax, 4
jmp 0x14001e5bf
mov eax, 3
jmp 0x14001e5bf
mov eax, 3
jmp 0x14001e5bf
mov eax, 5
jmp 0x14001e5bf
mov eax, 1
jmp 0x14001e5bf
mov eax, dword [rsp + 0x100]
and eax, 4
test eax, eax
je 0x14001e594
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 0x14001e594
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x14001e5bf
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
lea rax, [0x1402a97e8]
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