Function at 0x140011f90
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.0x140011fe5.3
mov eax, dword [rsp + 0x48]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x12278]
add rax, rcx
jmp rax
mov dword [rsp + 0x44], 0x80000000
mov dword [rsp + 0x40], 3
jmp 0x140012091
mov dword [rsp + 0x44], 0x40000000
mov dword [rsp + 0x40], 2
jmp 0x140012091
mov dword [rsp + 0x44], 0x40000000
mov dword [rsp + 0x40], 4
jmp 0x140012091
mov dword [rsp + 0x44], 0xc0000000
mov dword [rsp + 0x40], 3
jmp 0x140012091
mov dword [rsp + 0x44], 0xc0000000
mov dword [rsp + 0x40], 2
jmp 0x140012091
mov dword [rsp + 0x44], 0xc0000000
mov dword [rsp + 0x40], 4
jmp 0x140012091
lea rax, str.Invalid_file_mode
mov qword [rsp + 0x20], rax
mov r9d, 0x1366
lea r8, str.c:devtoolsOdin_srcgbgb.h
xor edx, edx
lea rcx, str.Panic
call fcn.14000ba00
int3
lea rcx, [rsp + 0xb0]
call fcn.14021ec50
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.140011b90
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x1400120f9
mov eax, 2
jmp 0x14001226e
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.14021ec50
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.14021ebf0
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x1400121ed
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 0x1400121bb
cmp dword [rsp + 0x4c], 5
je 0x1400121d9
cmp dword [rsp + 0x4c], 0x50
je 0x1400121c5
cmp dword [rsp + 0x4c], 0xb7
je 0x1400121cf
jmp 0x1400121e3
mov eax, 4
jmp 0x14001226e
mov eax, 3
jmp 0x14001226e
mov eax, 3
jmp 0x14001226e
mov eax, 5
jmp 0x14001226e
mov eax, 1
jmp 0x14001226e
mov eax, dword [rsp + 0x100]
and eax, 4
test eax, eax
je 0x140012243
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 0x140012243
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x14001226e
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
lea rax, [0x140278858]
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