Function at 0x140098f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x800
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x848], rbx
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_2037], rax
mov rbp, r8
movzx r13d, dx
mov rsi, rcx
call fcn.140024a70
mov rbx, rax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x38]
movzx ecx, r13w
call fcn.140098240
mov r12d, eax
mov word [rsp + 0x1f0], 0
xor edx, edx
mov r8d, Ordinal_512
lea rcx, [rsp + 0x1f2]
call sub.ntdll.dll_memset
lea rdi, [rsp + 0x1f0]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
xor edx, edx
nop
movzx eax, word [rsi + rdx]
mov word [rdi + rdx - 2], ax
add rdx, 2
test ax, ax
jne 0x140098fe0
test r12d, r12d
je 0x140099046
lea rdi, [rsp + 0x1f0]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
sub rdi, 2
lea rsi, str.Wow6432NodeMicrosoftWindowsCurrentVersionUninstallAomei_Partition_Assistant_is1
mov ecx, 0x56
rep movsw word [rdi], word [rsi]
mov rax, qword [rbx]
mov byte [rsp + 0x20], 0
mov r9b, 1
lea r8, [rsp + 0x1f0]
mov rdx, 0xffffffff80000002
mov rcx, rbx
call qword [rax + 8]
test al, al
jne 0x140099095
xor eax, eax
jmp 0x140099381
lea rdi, [rsp + 0x1f0]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
sub rdi, 2
lea rsi, str.MicrosoftWindowsCurrentVersionUninstallAomei_Partition_Assistant_is1
mov ecx, 0x4a
rep movsw word [rdi], word [rsi]
mov rax, qword [rbx]
mov byte [rsp + 0x20], 0
mov r9b, 1
lea r8, [rsp + 0x1f0]
mov rdx, 0xffffffff80000002
mov rcx, rbx
call qword [rax + 8]
test al, al
jne 0x140099095
xor eax, eax
jmp 0x140099381
mov word [rsp + Ordinal_1015], 0
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
lea rcx, [rsp + 0x3f2]
call sub.ntdll.dll_memset
mov dword [rsp + 0x30], 0x400
mov rax, qword [rbx]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x3f0]
lea rdx, str.UninstallString
mov rcx, rbx
call qword [rax + 0x90]
test al, al
jne 0x1400990f2
mov rax, qword [rbx]
mov dl, 1
mov rcx, rbx
call qword [rax + 0x10]
xor eax, eax
jmp 0x140099381
mov byte [rsp + 0x40], 0
xor eax, eax
mov qword [rsp + 0x41], rax
mov qword [rsp + 0x49], rax
mov qword [rsp + 0x51], rax
mov dword [rsp + 0x30], 0x19
mov rax, qword [rbx]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [0x1402e9048]
mov rcx, rbx
call qword [rax + 0x80]
mov rax, qword [rbx]
mov dl, 1
mov rcx, rbx
call qword [rax + 0x10]
lea rdx, [rsp + 0x3f0]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const____ptr64____ptr64]
nop
mov r8, qword [sym.imp.MSVCP80.dll_unsigned_long_long_unsigned___int64__const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov r8, qword [r8]
lea rdx, [0x1403b5bbc]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP80.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_last_of_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
cmp rax, 0xffffffffffffffff
jne 0x140099189
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor eax, eax
jmp 0x140099381
lea r9, [rax + 1]
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64]
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
lea r8, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae r8, qword [rsp + 0xa8]
lea rdx, [0x1403b5c74]
mov rcx, rbp
call fcn.140002b60
mov word [rbp], r13w
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14009936e
call fcn.140028250
mov rdi, rax
xor eax, eax
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rax
cmp byte [rsp + 0x40], al
je 0x140099266
mov dword [rsp + 0xc8], 1
mov rcx, qword [rsp + 0x41]
mov qword [rsp + 0xd0], rcx
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x49]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
jmp 0x140099285
mov dword [rsp + 0xc8], eax
mov rax, qword [rsp + 0x41]
mov qword [rsp + 0xd0], rax
mov eax, dword [rsp + 0x49]
mov dword [rsp + 0xd8], eax
mov word [rsp + 0xf0], 0
xor edx, edx
mov r8d, 0xfe
lea rcx, [rsp + 0xf2]
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xc8]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [rcx + 0x18]
mov qword [rdx + 0x18], rax
mov rax, qword [rdi]
mov r9d, 0x100
lea r8, [rsp + 0xf0]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [rax + 0xb0]
test al, al
je 0x14009935c
mov word [rsp + 0xc8], 0
xor eax, eax
mov qword [rsp + 0xca], rax
mov dword [rsp + 0xd2], eax
mov word [rsp + 0xd6], ax
mov rax, qword [rdi]
mov r9d, 0x10
lea r8, [rsp + 0xc8]
lea rdx, [rsp + 0xf0]
mov rcx, rdi
call qword [rax + 0x90]
test al, al
je 0x14009935c
movzx ecx, word [rsp + 0xc8]
mov word [rbp], cx
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov eax, 1
jmp 0x140099381
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor eax, eax
jmp 0x140099381
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov eax, 1
mov rcx, qword [rsp + 0x7f0]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x848]
add rsp, 0x800
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret