Function at 0x1400601d8
Capabilities:
Check if file exists

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0xff0]
mov eax, 0x10f0
call fcn.14011ad20
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x1118], rbx
mov qword [rsp + 0x1120], rsi
mov qword [rsp + 0x1128], rdi
mov rax, qword [0x1401d3050]
xor rax, rsp
mov qword [rbp + 0xfe0], rax
mov rdi, rcx
mov rax, qword [rcx]
mov edx, 0x7e
xor r9d, r9d
lea r8d, [rdx - 0x7a]
mov rax, qword [rax + 0xe0]
call qword [case.0x140007d11.0]
cmp eax, 0xffffffff
je 0x14006046f
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x140007d11.0]
mov rcx, rax
mov r8d, 0x824
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov esi, eax
xor r15d, r15d
test eax, eax
jne 0x140060388
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14006046f
nop
mov rcx, qword [rdi]
mov rbx, qword [rcx + 0x150]
mov rax, qword [rcx + 0x30]
mov rcx, rdi
call qword [case.0x140007d11.0]
mov edx, eax
mov rcx, rdi
mov rax, rbx
call qword [case.0x140007d11.0]
mov r14, rax
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x30]
mov rcx, rdi
call qword [case.0x140007d11.0]
movsxd rdx, eax
lea r8d, [rsi + 0x5c]
test eax, eax
js 0x1400602fd
test r14, r14
je 0x1400602fd
lea rax, [r14 + rdx*2]
mov ecx, edx
dec edx
lea rax, [rax - 2]
test ecx, ecx
je 0x1400602ee
cmp word [rax], r8w
jne 0x1400602dc
movsxd rax, edx
lea rbx, [r14 + rax*2]
test edx, edx
cmovs rbx, r15
jmp 0x140060300
mov rbx, r15
test rbx, rbx
je 0x140060374
mov word [rbx], r15w
mov r8d, 0x824
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov esi, eax
mov eax, 0x5c
mov word [rbx], ax
lea eax, [rsi - 1]
cmp eax, 0x823
ja 0x140060374
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x30]
call qword [case.0x140007d11.0]
mov rcx, rbx
sub rcx, r14
sar rcx, 1
sub eax, ecx
lea r14d, [rax + rsi]
cmp r14d, 0x824
ja 0x140060371
inc eax
movsxd r8, eax
add r8, r8
lea rcx, [rbp - 0x70]
lea rcx, [rcx + rsi*2]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
nop
mov esi, r14d
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x158]
call qword [case.0x140007d11.0]
nop
lea eax, [rsi - 1]
cmp eax, 0x823
ja 0x14006046f
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x140007d11.0]
nop
lea rcx, [rbp - 0x70]
cmp rcx, rax
jne 0x1400603b5
mov eax, r15d
jmp 0x1400603cf
test rax, rax
jne 0x1400603c1
mov eax, 1
jmp 0x1400603cf
mov rdx, rax
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
nop
test eax, eax
je 0x14006046f
lea rbx, [0x14012d360]
mov qword [rsp + 0x40], rbx
lea rax, str.After
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
mov word [rsp + 0x58], r15w
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x140007d11.0]
mov qword [rsp + 0x60], rbx
lea rcx, str.Before
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
mov word [rsp + 0x78], r15w
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
call fcn.140060690
cmp esi, 0x104
ja 0x14006046f
mov rax, qword [rdi]
mov r8d, esi
lea rdx, [rbp - 0x70]
mov rcx, rdi
mov rax, qword [rax + 0x50]
call qword [case.0x140007d11.0]
neg eax
sbb eax, eax
not eax
and eax, 0x8007000e
jmp 0x140060474
mov eax, 1
mov rcx, qword [rbp + 0xfe0]
xor rcx, rsp
call fcn.140118d00
lea r11, [rsp + 0x10f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret