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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xf00]
mov eax, 0x1000
call fcn.14005a020
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x1040], rbx
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rbp + 0xef0], rax
mov rsi, rdx
mov rbx, rcx
mov edi, 0x43297
mov dword [rsp + 0x30], Ordinal_266
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x6f0]
call sub.VCRUNTIME140.dll_memset
test rsi, rsi
jne 0x1400290b5
mov eax, 0x800432b1
jmp 0x14002987f
lea rdx, str.9.0.0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x140029159
lea rdx, str.10.0.0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x140029159
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x14002914f
mov edx, 1
call fcn.140025ed0
lea rdx, str._t_This_converter_currently_only_supports_the_following_profile_database_versions:
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
lea r8, str.9.0.0
lea rdx, [0x14006d2b4]
mov rcx, qword [rbx + 0x510]
call fcn.140025ad0
lea r8, str.10.0.0
lea rdx, [0x14006d2b4]
mov rcx, qword [rbx + 0x510]
call fcn.140025ad0
mov edx, 1
mov rcx, qword [rbx + 0x510]
call fcn.140025ed0
mov eax, 0x800432b7
jmp 0x14002987f
xor edx, edx
mov r8d, Ordinal_265
lea rcx, [rbp + reloc.mfc140.dll_Ordinal_1504]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + reloc.mfc140.dll_Ordinal_1504]
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
jne 0x14002929d
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x1400291cc
lea edx, [rax + 1]
call fcn.140025ed0
lea rdx, str._t_CProfileConverter::DowngradeDatabases___started_
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
mov edx, 1
mov rcx, qword [rbx + 0x510]
call fcn.140025ed0
lea rdx, str.10.0.0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
jne 0x140029234
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x14002987d
lea edx, [rax + 1]
call fcn.140025ed0
lea rdx, str._tVersion_10.0.0_databases_are_saved_
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
lea rdx, str._t_CProfileConverter::DowngradeDatabases___completed_
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
mov edx, 1
mov rcx, qword [rbx + 0x510]
call fcn.140025ed0
jmp 0x14002987d
xor edx, edx
mov r8d, Ordinal_265
lea rcx, [rbp + 0x2b0]
call sub.VCRUNTIME140.dll_memset
mov r8d, Ordinal_265
lea rdx, [rbp + 0x2b0]
mov rcx, rbx
call fcn.14002dd60
test al, al
jne 0x1400292a7
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x14002929d
lea rdx, str._t_FAILED__Unable_to_obtain_the_sub_folder_name__The_conversion_process_STOPPED_
call fcn.140025be0
lea rdx, str._t_CProfileConverter::DowngradeDatabases___ended_
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
mov edx, 1
mov rcx, qword [rbx + 0x510]
call fcn.140025ed0
mov eax, 0x80043298
jmp 0x14002987f
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x4d0]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
test eax, eax
je 0x14002987d
mov r9d, 0x103
lea r8, [rbp + 0x4d0]
lea edx, [r9 + 1]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
lea rdx, [0x140065290]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14002932f
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x14002987d
lea rdx, str.No_profiles_to_convert_
call fcn.140025be0
jmp 0x14002987d
xor r15d, r15d
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x140029381
mov edx, 1
call fcn.140025ed0
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
lea r9, str._t__START__User:__s_
or r8, 0xffffffffffffffff
mov edx, 0x800
lea rcx, [rbp + 0x6f0]
call fcn.140008c50
lea rdx, [rbp + 0x6f0]
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
lea rdx, [0x140065298]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x14002977a
lea rdx, [0x140065c90]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x14002977a
test byte [rsp + 0x50], 0x10
je 0x140029729
xor edx, edx
mov r8d, Ordinal_265
lea rcx, [rbp + 0x1a0]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x103
lea r8, [rbp + 0x4d0]
lea edx, [r9 + 1]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
lea rdx, [rsp + 0x7c]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, [rbx + 0x55a]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea rdx, str.IntelWirelessWLANProfiles.sav
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, [0x140065468]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
xor edx, edx
mov r8d, Ordinal_265
lea rcx, [rbp + 0x90]
test rax, rax
je 0x140029643
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x1a0]
mov edx, 0x104
lea rcx, [rbp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rdx, str.ITProfil.enc
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x140029547
cmp qword [rbx + 0x510], r15
je 0x1400294f8
lea rax, [rbp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
lea r9, str._tConverting_IT_profiles_of_user___s__in_folder__s
or r8, 0xffffffffffffffff
mov edx, 0x800
lea rcx, [rbp + 0x6f0]
call fcn.140008c50
lea rdx, [rbp + 0x6f0]
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
xor edx, edx
mov r8d, Ordinal_265
lea rcx, [rbp + 0x2b0]
call sub.VCRUNTIME140.dll_memset
mov r9d, Ordinal_265
lea r8, [rbp + 0x2b0]
lea rdx, [rbp + 0x1a0]
mov rcx, rbx
call fcn.14002dc20
test al, al
je 0x140029547
mov r9, rsi
lea r8, [rbp + 0x90]
lea rdx, [rbp + 0x2b0]
mov rcx, rbx
call fcn.14002bc00
mov edi, eax
xor edx, edx
mov r8d, Ordinal_265
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x1a0]
mov edx, 0x104
lea rcx, [rbp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rdx, str.Profiles.enc
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x14002977a
cmp qword [rbx + 0x510], r15
je 0x1400295eb
lea rax, [rbp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
lea r9, str._tConverting_shared_profiles_of_user___s__in_folder__s
or r8, 0xffffffffffffffff
mov edx, 0x800
lea rcx, [rbp + 0x6f0]
call fcn.140008c50
lea rdx, [rbp + 0x6f0]
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
xor edx, edx
mov r8d, Ordinal_265
lea rcx, [rbp + 0x2b0]
call sub.VCRUNTIME140.dll_memset
mov r9d, Ordinal_265
lea r8, [rbp + 0x2b0]
lea rdx, [rbp + 0x1a0]
mov rcx, rbx
call fcn.14002dc20
test al, al
je 0x14002977a
mov r9, rsi
lea r8, [rbp + 0x90]
lea rdx, [rbp + 0x2b0]
mov rcx, rbx
call fcn.14002c5d0
mov edi, eax
jmp 0x14002977a
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x1a0]
mov edx, 0x104
lea rcx, [rbp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rdx, str.Profiles.enc
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x14002977a
cmp qword [rbx + 0x510], r15
je 0x1400296d8
lea rax, [rbp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
lea r9, str._tConverting_user_based_profiles_of_user___s__in_folder__s
or r8, 0xffffffffffffffff
mov edx, 0x800
lea rcx, [rbp + 0x6f0]
call fcn.140008c50
lea rdx, [rbp + 0x6f0]
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
xor edx, edx
mov r8d, Ordinal_265
lea rcx, [rbp + 0x2b0]
call sub.VCRUNTIME140.dll_memset
mov r9d, Ordinal_265
lea r8, [rbp + 0x2b0]
lea rdx, [rbp + 0x1a0]
mov rcx, rbx
call fcn.14002dc20
test al, al
je 0x14002977a
mov r9, rsi
lea r8, [rbp + 0x90]
lea rdx, [rbp + 0x2b0]
mov rcx, rbx
call fcn.14002c9f0
mov edi, eax
jmp 0x14002977a
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x14002977a
mov edx, 1
call fcn.140025ed0
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, str._tProfile_folder___s__does_not_exist._No_profile_conversion_will_be_performed.
or r8, 0xffffffffffffffff
mov edx, 0x800
lea rcx, [rbp + 0x6f0]
call fcn.140008c50
lea rdx, [rbp + 0x6f0]
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
cmp qword [rbx + 0x510], r15
je 0x14002980f
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
lea r9, str._t_d_profile_s__in_folder___s__is_are_converted.
or r8, 0xffffffffffffffff
mov edx, 0x800
lea rcx, [rbp + 0x6f0]
call fcn.140008c50
lea rdx, [rbp + 0x6f0]
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
lea r9, str._t__END__User:__s_
or r8, 0xffffffffffffffff
mov edx, 0x800
lea rcx, [rbp + 0x6f0]
call fcn.140008c50
lea rdx, [rbp + 0x6f0]
mov rcx, qword [rbx + 0x510]
call fcn.140025be0
mov edx, 1
mov rcx, qword [rbx + 0x510]
call fcn.140025ed0
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140029332
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdx, rsi
mov rcx, rbx
call fcn.14002f020
lea rcx, [rsp + 0x38]
call fcn.140016ad4
nop
lea rcx, [rsp + 0x38]
call fcn.140016d84
test eax, eax
je 0x14002985a
mov rcx, rbx
call fcn.14002b520
mov rcx, qword [rbx + 0x510]
test rcx, rcx
je 0x140029873
lea rdx, str._t_CProfileConverter::DowngradeDatabases___completed_
call fcn.140025be0
nop
lea rcx, [rsp + 0x38]
call fcn.140016ba0
mov eax, edi
mov rcx, qword [rbp + 0xef0]
xor rcx, rsp
call fcn.140059ef0
mov rbx, qword [rsp + 0x1040]
add rsp, 0x1000
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret