Function at 0x1401eb540
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov qword [rax - 0x78], 0xfffffffffffffffe
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rdi, r8
mov r13, rdx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x48], r9
mov rsi, qword [rsp + 0x120]
mov qword [rsp + 0x28], rsi
and dword [rsp + 0x30], 0
mov rcx, rdx
call fcn.14016f9ac
mov dword [rsp + 0x30], 1
mov rdx, qword [r13 + 0x10]
mov rax, qword [rsi + 0x10]
sub rax, qword [rsi]
sar rax, 5
cmp rdx, rax
jbe 0x1401eb5d7
movabs rax, 0x7ffffffffffffff
cmp rdx, rax
jbe 0x1401eb5cf
call fcn.14004d010
int3
mov rcx, rsi
call fcn.140089f54
mov rdi, qword [rdi + 8]
mov rbx, qword [rdi]
mov qword [rsp + 0x60], rdi
lea rdx, str.process
lea r8, str.file
mov qword [rsp + 0x38], rbx
cmp rbx, rdi
je 0x1401eb7c8
lea r14, [rbx + 0x10]
lea r10, [r14 + 0x20]
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x1401eb614
mov rax, qword [r14]
cmp qword [r14 + 0x10], 4
jne 0x1401eb675
mov r9d, 4
mov rcx, r8
sub rax, r8
movzx edx, word [rax + rcx]
movzx r8d, word [rcx]
cmp dx, r8w
jne 0x1401eb643
add rcx, 2
sub r9, 1
jne 0x1401eb627
xor eax, eax
jmp 0x1401eb64a
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
jne 0x1401eb66e
cmp qword [r10 + 0x18], 8
jb 0x1401eb658
mov r10, qword [r10]
mov rcx, r10
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
test eax, eax
je 0x1401eb7c0
jmp 0x1401eb795
lea rdx, str.process
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x1401eb682
mov rcx, qword [r14]
cmp qword [r14 + 0x10], 7
jne 0x1401eb795
mov r9d, 7
mov rax, rdx
sub rcx, rdx
movzx edx, word [rcx + rax]
movzx r8d, word [rax]
cmp dx, r8w
jne 0x1401eb6b5
add rax, 2
sub r9, 1
jne 0x1401eb699
xor eax, eax
jmp 0x1401eb6bc
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
jne 0x1401eb795
or r9, 0xffffffffffffffff
lea r8d, [rax + 4]
lea rdx, [rsp + 0x98]
mov rcx, r10
call fcn.140054708
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov r15, rax
cmp qword [rsi + 0x18], 8
jb 0x1401eb6f2
mov rsi, qword [rsi]
and dword [rax], 0
mov r8d, 0xa
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_wcstoul]
mov r12d, eax
cmp rsi, qword [rsp + 0x40]
jne 0x1401eb720
lea rcx, str.invalid_stoul_argument
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
cmp dword [r15], 0x22
jne 0x1401eb734
lea rcx, str.stoul_argument_out_of_range
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
nop
lea rcx, [rsp + 0x98]
call fcn.1400492c0
nop
mov r8d, r12d
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x1401eb774
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1401eb7bb
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x1401eb7bb
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rsi, qword [rsp + 0x28]
jmp 0x1401eb795
mov r9b, byte [rsp + 0x20]
mov r8, r14
lea rdx, [rsp + 0x88]
mov rcx, r13
call fcn.1401703ac
lea rdx, [r14 + 0x40]
mov rcx, rsi
call fcn.1400615d0
jmp 0x1401eb7c0
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rbx]
jmp 0x1401eb5e3
mov rax, r13
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14027a710
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret