Function at 0x14000ea64
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rdx
mov r14, rcx
mov rcx, rdx
call qword [sym.imp.Cmmlib.dll_public:_unsigned_long_long_unsigned___int64____cdecl_Cmm::CStringT_wchar_t_::size_void_const___ptr64]
mov rbx, rax
xor esi, esi
test eax, eax
jne 0x14000eaaf
mov dword [r14 + 0x70], 1
jmp 0x14000ec3b
mov r9d, 1
mov r8, rdi
lea rdx, [rbp - 0x49]
call fcn.14000db2c
nop
lea rdx, [0x140024ee8]
lea rcx, [rbp - 0x49]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
lea rcx, [rbp - 0x49]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000eb08
lea rcx, [r14 + 0x80]
lea rdx, [rbp - 0x49]
call qword [reloc.Cmmlib.dll___4__CStringT__W_Cmm__QEAAAEAV01_AEBV01__Z]
mov dword [r14 + 0x70], 1
jmp 0x14000ec2f
cmp dword [r14 + 0x70], esi
jne 0x14000ec2f
lea rdx, [rbp - 0x49]
mov rcx, r14
call fcn.14000f578
test eax, eax
je 0x14000eb2c
mov esi, 1
jmp 0x14000ec2f
lea eax, [rbx*4 + 5]
mov ebx, eax
mov ecx, eax
call fcn.14001df70
mov r12, rax
lea rdi, [rsp + 0x30]
xor eax, eax
lea ecx, [rax + 0x50]
rep stosb byte [rdi], al
mov rdi, r12
mov ecx, ebx
rep stosb byte [rdi], al
lea rcx, [rbp - 0x49]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64_void_const___ptr64]
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.1400113b4
nop
mov rcx, rax
call qword [sym.imp.Cmmlib.dll_public:_char_const____ptr64___cdecl_Cmm::CStringT_char_::c_str_void_const___ptr64]
mov rdx, rax
lea rcx, [rbp - 0x21]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_char_::constructor_char_const____ptr64____ptr64]
nop
lea rcx, [rbp + 7]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
lea rcx, [rbp - 0x21]
call qword [sym.imp.Cmmlib.dll_public:_unsigned_long_long_unsigned___int64____cdecl_Cmm::CStringT_char_::size_void_const___ptr64]
mov rdi, rax
lea rcx, [rbp - 0x21]
call qword [sym.imp.Cmmlib.dll_public:_char_const____ptr64___cdecl_Cmm::CStringT_char_::c_str_void_const___ptr64]
mov r8, rax
mov r9, rdi
mov edx, ebx
mov rcx, r12
call fcn.14000d7ac
mov qword [rsp + 0x38], r12
lea rcx, [rbp - 0x21]
call qword [sym.imp.Cmmlib.dll_public:_unsigned_long_long_unsigned___int64____cdecl_Cmm::CStringT_char_::size_void_const___ptr64]
inc eax
mov dword [rsp + 0x40], eax
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x14000ec24
add rcx, 8
je 0x14000ec24
mov rax, qword [rcx]
mov r9d, 0x50
lea r8, [rsp + 0x30]
xor edx, edx
mov rax, qword [rax + 0x38]
call qword [0x140021e80]
mov edi, eax
mov rcx, r12
call fcn.14001dc34
test edi, edi
jne 0x14000ec0b
mov dword [r14 + 0x70], esi
cmp dword [rbp - 0x55], 0x64
sete sil
jmp 0x14000ec24
cmp dword [rsp + 0x30], 2
jne 0x14000ec1c
mov dword [r14 + 0x70], 4
jmp 0x14000ec24
mov dword [r14 + 0x70], 9
lea rcx, [rbp - 0x21]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x49]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
mov eax, esi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14001d830
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret