Function at 0x14003d194
Capabilities:
Check if file exists

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0xff0]
mov eax, 0x10f0
call fcn.1400425e0
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 [0x14005d010]
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.0x14004127e.0]
cmp eax, 0xffffffff
je 0x14003d42f
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x14004127e.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 0x14003d348
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14003d42f
nop
mov rcx, qword [rdi]
mov rbx, qword [rcx + 0x150]
mov rax, qword [rcx + 0x30]
mov rcx, rdi
call qword [case.0x14004127e.0]
mov edx, eax
mov rcx, rdi
mov rax, rbx
call qword [case.0x14004127e.0]
mov r14, rax
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x30]
mov rcx, rdi
call qword [case.0x14004127e.0]
movsxd rdx, eax
lea r8d, [rsi + 0x5c]
test eax, eax
js 0x14003d2bd
test r14, r14
je 0x14003d2bd
lea rax, [r14 + rdx*2]
mov ecx, edx
dec edx
lea rax, [rax - 2]
test ecx, ecx
je 0x14003d2ae
cmp word [rax], r8w
jne 0x14003d29c
movsxd rax, edx
lea rbx, [r14 + rax*2]
test edx, edx
cmovs rbx, r15
jmp 0x14003d2c0
mov rbx, r15
test rbx, rbx
je 0x14003d334
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 0x14003d334
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x30]
call qword [case.0x14004127e.0]
mov rcx, rbx
sub rcx, r14
sar rcx, 1
sub eax, ecx
lea r14d, [rax + rsi]
cmp r14d, 0x824
ja 0x14003d331
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.0x14004127e.0]
nop
lea eax, [rsi - 1]
cmp eax, 0x823
ja 0x14003d42f
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x14004127e.0]
nop
lea rcx, [rbp - 0x70]
cmp rcx, rax
jne 0x14003d375
mov eax, r15d
jmp 0x14003d38f
test rax, rax
jne 0x14003d381
mov eax, 1
jmp 0x14003d38f
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 0x14003d42f
lea rbx, [0x140046bb0]
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.0x14004127e.0]
mov qword [rsp + 0x60], rbx
lea rcx, [0x14004cc08]
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.14003d650
cmp esi, 0x104
ja 0x14003d42f
mov rax, qword [rdi]
mov r8d, esi
lea rdx, [rbp - 0x70]
mov rcx, rdi
mov rax, qword [rax + 0x50]
call qword [case.0x14004127e.0]
neg eax
sbb eax, eax
not eax
and eax, 0x8007000e
jmp 0x14003d434
mov eax, 1
mov rcx, qword [rbp + 0xfe0]
xor rcx, rsp
call fcn.1400407e0
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