Function at 0x180009440
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x270
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x18001f090]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, r9
mov r13, r8
mov r12, rdx
mov rdi, rcx
mov rbp, qword [rsp + 0x2d8]
xor r14d, r14d
mov word [rsp + 0x50], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.18000b250
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [r14 + 0x5c]
lea rcx, [rsp + 0x50]
call fcn.18000a994
mov rcx, rax
lea rdx, str.MountCore.dll
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x1800094ef
mov eax, 0x80004005
jmp 0x1800096b4
lea rdx, str.QueryInterface
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x180009517
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x80004005
jmp 0x1800096b4
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x20]
lea rcx, [0x1800197d0]
call rax
test eax, eax
je 0x180009552
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18000953f
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x80004005
jmp 0x1800096b4
mov rax, qword [rdi + 0x68]
mov rcx, qword [rsp + 0x20]
mov r8, qword [rcx]
movzx edx, word [rax]
call qword [r8 + 0x18]
test eax, eax
jne 0x18000958d
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18000957a
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x80004005
jmp 0x1800096b4
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18000959e
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, qword [rdi + 0x68]
cmp word [rdx], 0x5c
jne 0x1800095c2
mov dword [r12], 1
mov dword [rdi + 0x70], 2
jmp 0x180009622
mov word [rsp + 0x38], r14w
xor eax, eax
mov qword [rsp + 0x3a], rax
mov qword [rsp + 0x42], rax
mov word [rsp + 0x4a], ax
lea r8d, [rax + 4]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000961e
mov dword [r12], 1
mov dword [rdi + 0x70], 2
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180009622
mov eax, 0x80004005
jmp 0x1800096b4
mov dword [r12], r14d
mov rax, qword [rdi + 0x68]
movzx ecx, word [rax]
mov word [r13], cx
mov rcx, qword [rdi + 0x48]
mov dword [rsp + 0x20], 1
mov rax, qword [rcx]
call qword [rax + 0x40]
test rax, rax
jne 0x18000964c
mov eax, 0x80070057
jmp 0x1800096b4
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1800096e0
test eax, eax
jne 0x1800096b4
mov eax, dword [rsp + 0x20]
cmp dword [rdi + 0x70], 2
jne 0x180009673
cmp eax, 3
je 0x180009673
mov eax, 0x80004005
jmp 0x1800096b4
sub eax, 3
je 0x1800096a8
sub eax, 1
je 0x180009697
cmp eax, 1
je 0x180009689
mov eax, 1
jmp 0x1800096b4
mov dword [rsi], 7
mov dword [rbp], r14d
xor eax, eax
jmp 0x1800096b4
mov dword [rsi], 2
mov dword [rbp], 1
xor eax, eax
jmp 0x1800096b4
mov dword [rsi], 8
mov dword [rbp], r14d
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18000a170
add rsp, 0x270
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret