Function at 0x14002f8c0
Capabilities:
Check if file exists
Delete directory
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xa70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0xa60], rax
mov esi, edx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
cmp edx, 1
jne 0x14002f926
cmp qword [rcx + 0x20], 0
jne 0x14002f926
mov rcx, qword [rcx + 0x510]
test rcx, rcx
je 0x14002f91c
lea rdx, str._t_Unable_to_Restore_Vista_CP_Profiles___m_pCPGuidInterfacePointer_is_NULL_
call fcn.140025be0
mov eax, 0x43297
jmp 0x14002fcaf
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x260]
call sub.VCRUNTIME140.dll_memset
nop
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x14002f976
mov edx, 1
call fcn.140025ed0
lea rdx, str._t_CProfileConverter::RestoreVistaProfiles___started_
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
mov edx, 1
mov rcx, qword [rbx + 0x510]
call fcn.140025ed0
xor edx, edx
mov r8d, Ordinal_265
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, Ordinal_265
lea rcx, [rsp + 0x150]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x40]
mov edx, esi
mov rcx, rbx
call fcn.14002b920
test al, al
je 0x14002fc5b
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov edi, eax
test eax, eax
jne 0x14002fabf
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x14002f9e1
lea rdx, str._t_CProfileConverter::RestoreVistaProfiles___try_the_legacy_path_
call fcn.140025be0
xor edx, edx
mov r8d, Ordinal_265
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x150]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
or r9, 0xffffffffffffffff
lea r8, [0x140067a10]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcat_s]
lea rdx, str.IntelWirelessWLANProfiles.sav
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov edi, eax
test eax, eax
jne 0x14002fabf
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8023
xor ecx, ecx
call qword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
js 0x14002fabf
lea r8, [rsp + 0x150]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
or r9, 0xffffffffffffffff
lea r8, [0x140067a10]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcat_s]
lea rdx, str.IntelWirelessWLANProfiles
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov edi, eax
mov rcx, qword [rbx + 0x510]
test edi, edi
je 0x14002fc43
test rcx, rcx
je 0x14002fb0e
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, str._t_CProfileConverter::RestoreVistaProfiles____s_exist_
or r8, 0xffffffffffffffff
mov edx, 0x800
lea rcx, [rsp + 0x260]
call fcn.140008c50
lea rdx, [rsp + 0x260]
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
mov r8d, esi
xor edx, edx
mov rcx, rbx
call fcn.14002df70
cmp eax, 0x43297
jne 0x14002fbf6
mov r8d, esi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14002f7d0
mov edi, eax
mov rcx, qword [rbx + 0x510]
test eax, eax
js 0x14002fba9
test rcx, rcx
je 0x14002fb83
mov edx, 1
call fcn.140025ed0
lea r9, str._tProfile_restore_complete.
or r8, 0xffffffffffffffff
mov edx, 0x800
lea rcx, [rsp + 0x260]
call fcn.140008c50
lea rdx, [rsp + 0x260]
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
lea r8, str..xml
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14002ea20
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, 0x43297
jmp 0x14002fbe9
test rcx, rcx
je 0x14002fbe9
mov edx, 1
call fcn.140025ed0
lea r9, str._tProfile_restore_failed.
or r8, 0xffffffffffffffff
mov edx, 0x800
lea rcx, [rsp + 0x260]
call fcn.140008c50
lea rdx, [rsp + 0x260]
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
mov rcx, rbx
call fcn.14002bbd0
jmp 0x14002fca7
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x14002fca2
mov edx, 1
call fcn.140025ed0
lea r9, str._tUnable_to_open_the_profile_manager.
or r8, 0xffffffffffffffff
mov edx, 0x800
lea rcx, [rsp + 0x260]
call fcn.140008c50
lea rdx, [rsp + 0x260]
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
jmp 0x14002fca2
test rcx, rcx
je 0x14002fca2
mov edx, 1
call fcn.140025ed0
lea r9, str._tUnable_to_find_WLANProfile.sav.
jmp 0x14002fc17
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x14002fca2
mov edx, 1
call fcn.140025ed0
lea r9, str._tUnable_to_find_the_Program_Data_directory
or r8, 0xffffffffffffffff
mov edx, 0x800
lea rcx, [rsp + 0x260]
call fcn.140008c50
lea rdx, [rsp + 0x260]
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
mov edi, 0x80043298
jmp 0x14002fcad
mov eax, edi
mov rcx, qword [rsp + 0xa60]
xor rcx, rsp
call fcn.140059ef0
lea r11, [rsp + 0xa70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret