Function at 0x14001e1b0
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.0x14001e205.3
mov eax, dword [rsp + 0x48]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x1e49c]
add rax, rcx
jmp rax
mov dword [rsp + 0x44], 0x80000000
mov dword [rsp + 0x40], 3
jmp 0x14001e2b1
mov dword [rsp + 0x44], 0x40000000
mov dword [rsp + 0x40], 2
jmp 0x14001e2b1
mov dword [rsp + 0x44], 0x40000000
mov dword [rsp + 0x40], 4
jmp 0x14001e2b1
mov dword [rsp + 0x44], 0xc0000000
mov dword [rsp + 0x40], 3
jmp 0x14001e2b1
mov dword [rsp + 0x44], 0xc0000000
mov dword [rsp + 0x40], 2
jmp 0x14001e2b1
mov dword [rsp + 0x44], 0xc0000000
mov dword [rsp + 0x40], 4
jmp 0x14001e2b1
lea rax, str.Invalid_file_mode
mov qword [rsp + 0x20], rax
mov r9d, 0x13c6
lea r8, str.D:prjsOdin_srcgbgb.h
xor edx, edx
lea rcx, str.Panic
call fcn.140017b10
int3
lea rcx, [rsp + 0xb0]
call fcn.140246780
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.14001ddb0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14001e319
mov eax, 2
jmp 0x14001e48f
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.140246780
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.140246720
nop
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x14001e40e
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 0x14001e3dc
cmp dword [rsp + 0x4c], 5
je 0x14001e3fa
cmp dword [rsp + 0x4c], 0x50
je 0x14001e3e6
cmp dword [rsp + 0x4c], 0xb7
je 0x14001e3f0
jmp 0x14001e404
mov eax, 4
jmp 0x14001e48f
mov eax, 3
jmp 0x14001e48f
mov eax, 3
jmp 0x14001e48f
mov eax, 5
jmp 0x14001e48f
mov eax, 1
jmp 0x14001e48f
mov eax, dword [rsp + 0x100]
and eax, 4
test eax, eax
je 0x14001e464
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 0x14001e464
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x14001e48f
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
lea rax, [0x1402a6668]
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