Function at 0x14001e0d0
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.0x14001e125.3
mov eax, dword [rsp + 0x48]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x1e3bc]
add rax, rcx
jmp rax
mov dword [rsp + 0x44], 0x80000000
mov dword [rsp + 0x40], 3
jmp 0x14001e1d1
mov dword [rsp + 0x44], 0x40000000
mov dword [rsp + 0x40], 2
jmp 0x14001e1d1
mov dword [rsp + 0x44], 0x40000000
mov dword [rsp + 0x40], 4
jmp 0x14001e1d1
mov dword [rsp + 0x44], 0xc0000000
mov dword [rsp + 0x40], 3
jmp 0x14001e1d1
mov dword [rsp + 0x44], 0xc0000000
mov dword [rsp + 0x40], 2
jmp 0x14001e1d1
mov dword [rsp + 0x44], 0xc0000000
mov dword [rsp + 0x40], 4
jmp 0x14001e1d1
lea rax, str.Invalid_file_mode
mov qword [rsp + 0x20], rax
mov r9d, 0x13c6
lea r8, str.C:UsersdimitOdin_srcgbgb.h
xor edx, edx
lea rcx, str.Panic
call fcn.140017a30
int3
lea rcx, [rsp + 0xb0]
call fcn.140239f50
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.14001dcd0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14001e239
mov eax, 2
jmp 0x14001e3af
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.140239f50
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.140239ef0
nop
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x14001e32e
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 0x14001e2fc
cmp dword [rsp + 0x4c], 5
je 0x14001e31a
cmp dword [rsp + 0x4c], 0x50
je 0x14001e306
cmp dword [rsp + 0x4c], 0xb7
je 0x14001e310
jmp 0x14001e324
mov eax, 4
jmp 0x14001e3af
mov eax, 3
jmp 0x14001e3af
mov eax, 3
jmp 0x14001e3af
mov eax, 5
jmp 0x14001e3af
mov eax, 1
jmp 0x14001e3af
mov eax, dword [rsp + 0x100]
and eax, 4
test eax, eax
je 0x14001e384
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 0x14001e384
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x14001e3af
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
lea rax, [0x1402944a0]
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