Function at 0x14011d8a8
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0xfe8]
mov eax, 0x10d0
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rbp + 0xfc0], 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.0x14004a846.0]
cmp eax, 0xffffffff
je 0x14011db41
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x14004a846.0]
mov rcx, rax
mov r8d, 0x824
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov esi, eax
xor r15d, r15d
test eax, eax
jne 0x14011da41
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14011db41
mov rcx, qword [rdi]
mov rbx, qword [rcx + 0x150]
mov rax, qword [rcx + 0x30]
mov rcx, rdi
call qword [case.0x14004a846.0]
mov edx, eax
mov rcx, rdi
mov rax, rbx
call qword [case.0x14004a846.0]
mov r14, rax
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x30]
mov rcx, rdi
call qword [case.0x14004a846.0]
movsxd rdx, eax
lea r8d, [rsi + 0x5c]
test eax, eax
js 0x14011d9b6
test r14, r14
je 0x14011d9b6
lea rax, [r14 + rdx*2]
mov ecx, edx
dec edx
lea rax, [rax - 2]
test ecx, ecx
je 0x14011d9a7
cmp word [rax], r8w
jne 0x14011d995
movsxd rax, edx
lea rbx, [r14 + rax*2]
test edx, edx
cmovs rbx, r15
jmp 0x14011d9b9
mov rbx, r15
test rbx, rbx
je 0x14011da2e
mov word [rbx], r15w
mov r8d, 0x824
lea rdx, [rsp + 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 0x14011da2e
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x30]
call qword [case.0x14004a846.0]
mov rcx, rbx
sub rcx, r14
sar rcx, 1
sub eax, ecx
lea r14d, [rax + rsi]
cmp r14d, 0x824
ja 0x14011da2b
inc eax
movsxd r8, eax
add r8, r8
lea rcx, [rsp + 0x70]
lea rcx, [rcx + rsi*2]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov esi, r14d
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x158]
call qword [case.0x14004a846.0]
lea eax, [rsi - 1]
cmp eax, 0x823
ja 0x14011db41
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x14004a846.0]
nop
lea rcx, [rsp + 0x70]
cmp rcx, rax
jne 0x14011da6f
mov eax, r15d
jmp 0x14011da8a
test rax, rax
jne 0x14011da7b
mov eax, 1
jmp 0x14011da8a
mov rdx, rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
nop
test eax, eax
je 0x14011db41
lea rbx, [0x140279320]
mov qword [rsp + 0x30], rbx
lea rax, str.After
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], r15w
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x14004a846.0]
mov qword [rsp + 0x50], rbx
lea rcx, str.Before
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], r15w
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, str.Converted_something_to_long_name_
mov edx, 0x8b
mov ecx, 0x7c7180
lea r8d, [rdx - 0x7c]
call fcn.1400bba10
cmp esi, 0x104
ja 0x14011db41
mov rax, qword [rdi]
mov r8d, esi
lea rdx, [rsp + 0x70]
mov rcx, rdi
mov rax, qword [rax + 0x50]
call qword [case.0x14004a846.0]
neg eax
sbb eax, eax
not eax
and eax, 0x8007000e
jmp 0x14011db46
mov eax, 1
mov rcx, qword [rbp + 0xfc0]
xor rcx, rsp
call fcn.14024c6d0
lea r11, [rsp + 0x10d0]
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