Function at 0x1400d4154
Capabilities:
Check if file exists

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0xff0]
mov eax, 0x10f0
call fcn.140237280
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 [0x1403bf028]
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.0x140118f85.0]
cmp eax, 0xffffffff
je 0x1400d4408
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x140118f85.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 0x1400d4308
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400d4408
mov rcx, qword [rdi]
mov rbx, qword [rcx + 0x150]
mov rax, qword [rcx + 0x30]
mov rcx, rdi
call qword [case.0x140118f85.0]
mov edx, eax
mov rcx, rdi
mov rax, rbx
call qword [case.0x140118f85.0]
mov r14, rax
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x30]
mov rcx, rdi
call qword [case.0x140118f85.0]
movsxd rdx, eax
lea r8d, [rsi + 0x5c]
test eax, eax
js 0x1400d4274
test r14, r14
je 0x1400d4274
lea rax, [r14 + rdx*2]
mov ecx, edx
dec edx
lea rax, [rax - 2]
test ecx, ecx
je 0x1400d4265
cmp word [rax], r8w
jne 0x1400d4253
movsxd rax, edx
lea rbx, [r14 + rax*2]
test edx, edx
cmovs rbx, r15
jmp 0x1400d4277
mov rbx, r15
test rbx, rbx
je 0x1400d42f4
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 0x1400d42f4
nop word [rax + rax]
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x30]
call qword [case.0x140118f85.0]
mov rcx, rbx
sub rcx, r14
sar rcx, 1
sub eax, ecx
lea r14d, [rax + rsi]
cmp r14d, 0x824
ja 0x1400d42f1
inc eax
movsxd r8, eax
add r8, r8
lea rcx, [rbp - 0x70]
lea rcx, [rcx + rsi*2]
mov rdx, rbx
call fcn.140238940
nop
mov esi, r14d
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x158]
call qword [case.0x140118f85.0]
nop
lea eax, [rsi - 1]
cmp eax, 0x823
ja 0x1400d4408
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x140118f85.0]
nop
lea rcx, [rbp - 0x70]
cmp rcx, rax
jne 0x1400d4335
mov eax, r15d
jmp 0x1400d434e
test rax, rax
jne 0x1400d4341
mov eax, 1
jmp 0x1400d434e
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140263880
nop
test eax, eax
je 0x1400d4408
lea rbx, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
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.0x140118f85.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
lea rax, str.Converted_something_to_long_name_
mov qword [rsp + 0x20], rax
mov edx, 0x8b
mov ecx, 0x7c7180
lea r8d, [rdx - 0x7c]
call fcn.14000ed9c
cmp esi, 0x104
ja 0x1400d4408
mov rax, qword [rdi]
mov r8d, esi
lea rdx, [rbp - 0x70]
mov rcx, rdi
mov rax, qword [rax + 0x50]
call qword [case.0x140118f85.0]
neg eax
sbb eax, eax
not eax
and eax, 0x8007000e
jmp 0x1400d440d
mov eax, 1
mov rcx, qword [rbp + 0xfe0]
xor rcx, rsp
call fcn.1402361b0
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