Function at 0x14002ae90
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Get common file path

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0xde0]
sub rsp, 0xee0
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rbp + 0xdd0], rax
mov rbx, rcx
mov dword [rsp + 0x34], Ordinal_266
lea rcx, [rbp + 0x3b0]
xor edx, edx
mov r8d, Ordinal_265
mov esi, 0x80043298
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x3b0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x8023
xor ecx, ecx
call qword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x14002af31
mov edx, 1
call fcn.140025ed0
mov rcx, qword [rbx + 0x510]
lea rdx, str._t_CProfileConverter::ConvertWinProfiles___started_
call fcn.140025be0
mov rcx, qword [rbx + 0x510]
mov edx, 1
call fcn.140025ed0
xor edx, edx
lea rcx, [rbp + 0xcc0]
mov r8d, Ordinal_265
call sub.VCRUNTIME140.dll_memset
mov r8d, Ordinal_265
lea rdx, [rbp + 0xcc0]
mov rcx, rbx
call fcn.14002dd60
test al, al
jne 0x14002afa3
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x14002b4f8
lea rdx, str._t_FAILED__Unable_to_obtain_the_sub_folder_name__The_conversion_process_STOPPED_
call fcn.140025be0
mov rcx, qword [rbx + 0x510]
lea rdx, str._t_CProfileConverter::ConvertWinProfiles___ended_
call fcn.140025be0
mov rcx, qword [rbx + 0x510]
mov edx, 1
call fcn.140025ed0
jmp 0x14002b4f8
lea rdx, [rsp + 0x34]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
test eax, eax
je 0x14002b4f8
mov r9d, 0x103
mov qword [rsp + 0xf10], r14
lea r8, [rbp + 0x2a0]
lea rcx, [rbp + 0x190]
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
lea rdx, [0x140065290]
lea rcx, [rbp + 0x190]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14002b064
cmp qword [rbx + 0x510], 0
je 0x14002b4f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str._tInvalid_File_Handle_from_FindFirstFile__s_._GetLastError___reports__d
lea rax, [rbp + 0x190]
mov edx, 0x800
or r8, r14
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x4c0]
call fcn.140008c50
mov rcx, qword [rbx + 0x510]
lea rdx, [rbp + 0x4c0]
jmp 0x14002b4eb
mov qword [rsp + 0xf08], rdi
mov qword [rsp + 0xf18], r15
mov r15d, 0x43297
nop word [rax + rax]
mov rcx, qword [rbx + 0x510]
xor edi, edi
mov dword [rsp + 0x30], edi
test rcx, rcx
je 0x14002b0d3
lea edx, [rdi + 1]
call fcn.140025ed0
lea rax, [rsp + 0x6c]
or r8, 0xffffffffffffffff
lea r9, str._t__START__User:__s_
mov qword [rsp + 0x20], rax
mov edx, 0x800
lea rcx, [rbp + 0x4c0]
call fcn.140008c50
mov rcx, qword [rbx + 0x510]
lea rdx, [rbp + 0x4c0]
call fcn.140025be0
lea rdx, [0x140065298]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x14002b414
lea rdx, [0x140065c90]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x14002b414
test byte [rsp + 0x40], 0x10
je 0x14002b414
mov r9d, 0x103
lea r8, [rbp + 0x2a0]
lea rcx, [rbp + 0x80]
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
lea rdx, [rsp + 0x6c]
lea rcx, [rbp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, str.WLANProfiles.sav
lea rcx, [rbp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rbp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov rcx, qword [rbx + 0x510]
test eax, eax
je 0x14002b3ca
test rcx, rcx
je 0x14002b1bc
lea rax, [rbp + 0x80]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x28], rax
lea r9, str._tConverting_profiles_of_user___s__in_folder__s
lea rax, [rsp + 0x6c]
mov edx, 0x800
lea rcx, [rbp + 0x4c0]
mov qword [rsp + 0x20], rax
call fcn.140008c50
mov rcx, qword [rbx + 0x510]
lea rdx, [rbp + 0x4c0]
call fcn.140025be0
lea r9, [rbx + 0x518]
mov rcx, rbx
lea r8, [rsp + 0x6c]
lea rdx, [rbp + 0x80]
call fcn.14002e380
mov rcx, rbx
cmp eax, r15d
je 0x14002b1e9
call fcn.14002bb10
jmp 0x14002b4a9
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x6c]
lea rdx, [rbp + 0x80]
call fcn.14002a8f0
mov edi, dword [rsp + 0x30]
lea rcx, [rbp + 0x4c0]
cmp eax, r15d
mov edx, 0x800
lea rax, [rbp + 0x80]
jne 0x14002b393
mov qword [rsp + 0x28], rax
lea r9, str._tSuccessfully_converted__d_profiles_in_folder__s
test edi, edi
mov dword [rsp + 0x20], edi
cmovg esi, r15d
or r8, 0xffffffffffffffff
call fcn.140008c50
mov rax, qword [rbx + 0x510]
test rax, rax
je 0x14002b2a0
lea rdx, [rbp + 0x4c0]
mov rcx, rax
call fcn.140025be0
mov rax, qword [rbx + 0x510]
test rax, rax
je 0x14002b2a0
lea rax, [rbp + 0x80]
or r8, 0xffffffffffffffff
lea r9, str._tConverting_the_preferred_list_in_folder__s
mov qword [rsp + 0x20], rax
mov edx, 0x800
lea rcx, [rbp + 0x4c0]
call fcn.140008c50
mov rcx, qword [rbx + 0x510]
lea rdx, [rbp + 0x4c0]
call fcn.140025be0
lea rdx, [rsp + 0x6c]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
lea r8, [rsp + 0x6c]
mov rcx, rbx
lea rdx, [rbp + 0x80]
test rax, rax
je 0x14002b2cd
call fcn.140028830
jmp 0x14002b32b
call fcn.140029e10
cmp qword [rbx + 0x510], 0
je 0x14002b317
lea rax, [rbp + 0x80]
or r8, 0xffffffffffffffff
lea r9, str._tConverting_the_last_applied_profile_in_folder__s
mov qword [rsp + 0x20], rax
mov edx, 0x800
lea rcx, [rbp + 0x4c0]
call fcn.140008c50
mov rcx, qword [rbx + 0x510]
lea rdx, [rbp + 0x4c0]
call fcn.140025be0
lea r8, [rsp + 0x6c]
mov rcx, rbx
lea rdx, [rbp + 0x80]
call fcn.140029a90
cmp eax, r15d
jne 0x14002b3c0
cmp qword [rbx + 0x510], 0
je 0x14002b379
lea rax, [rbp + 0x80]
or r8, 0xffffffffffffffff
lea r9, str._tRemoving_the_profiles_folder__s
mov qword [rsp + 0x20], rax
mov edx, 0x800
lea rcx, [rbp + 0x4c0]
call fcn.140008c50
mov rcx, qword [rbx + 0x510]
lea rdx, [rbp + 0x4c0]
call fcn.140025be0
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rcx, rbx
call fcn.14002bb10
jmp 0x14002b414
lea r9, str._t_FAILED__Failed_to_convert_profiles_in_folder__s
mov qword [rsp + 0x20], rax
or r8, 0xffffffffffffffff
call fcn.140008c50
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x14002b3c0
lea rdx, [rbp + 0x4c0]
call fcn.140025be0
mov rcx, rbx
call fcn.14002bb10
jmp 0x14002b414
test rcx, rcx
je 0x14002b414
mov edx, 1
call fcn.140025ed0
lea rax, [rbp + 0x80]
or r8, 0xffffffffffffffff
lea r9, str._tProfile_folder___s__does_not_exist._No_profile_conversion_will_be_performed.
mov qword [rsp + 0x20], rax
mov edx, 0x800
lea rcx, [rbp + 0x4c0]
call fcn.140008c50
mov rcx, qword [rbx + 0x510]
lea rdx, [rbp + 0x4c0]
call fcn.140025be0
cmp qword [rbx + 0x510], 0
je 0x14002b4a9
lea rax, [rsp + 0x6c]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x28], rax
lea r9, str._t_d_profile_s__in_folder___s__is_are_converted.
mov edx, 0x800
mov dword [rsp + 0x20], edi
lea rcx, [rbp + 0x4c0]
call fcn.140008c50
mov rcx, qword [rbx + 0x510]
lea rdx, [rbp + 0x4c0]
call fcn.140025be0
lea rax, [rsp + 0x6c]
or r8, 0xffffffffffffffff
lea r9, str._t__END__User:__s_
mov qword [rsp + 0x20], rax
mov edx, 0x800
lea rcx, [rbp + 0x4c0]
call fcn.140008c50
mov rcx, qword [rbx + 0x510]
lea rdx, [rbp + 0x4c0]
call fcn.140025be0
mov rcx, qword [rbx + 0x510]
mov edx, 1
call fcn.140025ed0
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14002b080
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbx + 0x510]
mov r15, qword [rsp + 0xf18]
mov rdi, qword [rsp + 0xf08]
test rcx, rcx
je 0x14002b4f0
lea rdx, str._t_CProfileConverter::ConvertWinProfiles___completed_
call fcn.140025be0
mov r14, qword [rsp + 0xf10]
mov eax, esi
mov rcx, qword [rbp + 0xdd0]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0xee0
pop rsi
pop rbx
pop rbp
ret