Function at 0x1400b0c74
Capabilities:
Check if file exists

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0xff0]
mov eax, 0x10f0
call fcn.14012c7f0
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 [0x1401cd010]
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.0x1400ee2b6.0]
cmp eax, 0xffffffff
je 0x1400b0f2a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x1400ee2b6.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 0x1400b0e28
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400b0f2a
mov rcx, qword [rdi]
mov rbx, qword [rcx + 0x150]
mov rax, qword [rcx + 0x30]
mov rcx, rdi
call qword [case.0x1400ee2b6.0]
mov edx, eax
mov rcx, rdi
mov rax, rbx
call qword [case.0x1400ee2b6.0]
mov r14, rax
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x30]
mov rcx, rdi
call qword [case.0x1400ee2b6.0]
movsxd rdx, eax
lea r8d, [rsi + 0x5c]
test eax, eax
js 0x1400b0d94
test r14, r14
je 0x1400b0d94
lea rax, [r14 + rdx*2]
mov ecx, edx
dec edx
lea rax, [rax - 2]
test ecx, ecx
je 0x1400b0d85
cmp word [rax], r8w
jne 0x1400b0d73
movsxd rax, edx
lea rbx, [r14 + rax*2]
test edx, edx
cmovs rbx, r15
jmp 0x1400b0d97
mov rbx, r15
test rbx, rbx
je 0x1400b0e14
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 0x1400b0e14
nop word [rax + rax]
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x30]
call qword [case.0x1400ee2b6.0]
mov rcx, rbx
sub rcx, r14
sar rcx, 1
sub eax, ecx
lea r14d, [rax + rsi]
cmp r14d, 0x824
ja 0x1400b0e11
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.0x1400ee2b6.0]
nop
lea eax, [rsi - 1]
cmp eax, 0x823
ja 0x1400b0f2a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x1400ee2b6.0]
nop
lea rcx, [rbp - 0x70]
cmp rcx, rax
jne 0x1400b0e55
mov eax, r15d
jmp 0x1400b0e70
test rax, rax
jne 0x1400b0e61
mov eax, 1
jmp 0x1400b0e70
mov rdx, rax
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
nop
nop
test eax, eax
je 0x1400b0f2a
lea rbx, [0x14013c2d8]
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.0x1400ee2b6.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.1400119d0
cmp esi, 0x104
ja 0x1400b0f2a
mov rax, qword [rdi]
mov r8d, esi
lea rdx, [rbp - 0x70]
mov rcx, rdi
mov rax, qword [rax + 0x50]
call qword [case.0x1400ee2b6.0]
neg eax
sbb eax, eax
not eax
and eax, 0x8007000e
jmp 0x1400b0f2f
mov eax, 1
mov rcx, qword [rbp + 0xfe0]
xor rcx, rsp
call fcn.14012aa20
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