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

Disassembly:
sub esp, 0xe60
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xb60]
mov ebp, 0x80043298
rep stosd dword es:[edi], eax
lea eax, [esp + 0xb60]
mov dword [esp + 0x14], 0x104
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x404026
push 1
call fcn.00403a90
mov ecx, dword [esi + 8]
push str._t_CProfileConverter::Convert___started_
call fcn.004037f0
mov ecx, dword [esi + 8]
push 1
call fcn.00403a90
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xd68]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xd6c]
push ecx
mov ecx, esi
call fcn.00405f60
test al, al
jne 0x404085
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x404076
push str._t_FAILED__Unable_to_obtain_the_sub_folder_name__The_conversion_process_STOPPED_
call fcn.004037f0
mov ecx, dword [esi + 8]
push str._t_CProfileConverter::Convert___ended_
call fcn.004037f0
mov ecx, dword [esi + 8]
push 1
call fcn.00403a90
pop edi
pop esi
mov eax, 0x80043298
pop ebp
add esp, 0xe60
ret
lea edx, [esp + 0x14]
lea eax, [esp + 0xc64]
push edx
push eax
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
test eax, eax
jne 0x4040ab
pop edi
pop esi
mov eax, 0x80043298
pop ebp
add esp, 0xe60
ret
lea ecx, [esp + 0xc64]
push 0x104
lea edx, [esp + 0x260]
push ecx
push edx
call fcn.00409255
add esp, 0xc
lea eax, [esp + 0x25c]
push 0x41d8f8
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x25c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x404144
mov eax, dword [esi + 8]
test eax, eax
je 0x404135
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x368]
push str._tInvalid_File_Handle_from_FindFirstFile__s_._GetLastError___reports__d
push ecx
call fcn.00409203
mov ecx, dword [esi + 8]
add esp, 0x10
lea edx, [esp + 0x360]
push edx
call fcn.004037f0
pop edi
pop esi
mov eax, 0x80043298
pop ebp
add esp, 0xe60
ret
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ebx
mov ecx, dword [esi + 8]
xor bl, bl
test ecx, ecx
mov dword [esp + 0x10], 0
je 0x404190
push 1
call fcn.00403a90
lea eax, [esp + 0x14c]
lea ecx, [esp + 0x364]
push eax
push str._t__START__User:__s_
push ecx
call fcn.00409203
mov ecx, dword [esi + 8]
add esp, 0xc
lea edx, [esp + 0x364]
push edx
call fcn.004037f0
lea eax, [esp + 0x14c]
push 0x41d8f4
push eax
call fcn.00409361
add esp, 8
test eax, eax
je 0x404572
lea ecx, [esp + 0x14c]
push 0x41d8f0
push ecx
call fcn.00409361
add esp, 8
test eax, eax
je 0x404572
cmp dword [esp + 0x120], 0x10
jne 0x404572
lea edx, [esp + 0xc68]
push 0x104
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00409255
add esp, 0xc
lea ecx, [esp + 0x14c]
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov eax, dword [str.WLANProfiles.sav]
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov al, byte [esi + 0x2e]
test al, al
je 0x4042f3
mov eax, dword [esi + 8]
test eax, eax
je 0x404271
lea edx, [esp + 0x364]
push str._t1615852_m_bAdminNameDifferent__TRUE
push edx
call fcn.00409203
add esp, 8
lea eax, [esi + 0x12f]
lea ecx, [esp + 0x14c]
lea edx, [esp + 0x364]
push eax
push ecx
push str._t1615852___s_____s__
push edx
call fcn.00409203
mov ecx, dword [esi + 8]
add esp, 0x10
lea eax, [esp + 0x364]
push eax
call fcn.004037f0
lea ecx, [esp + 0x14c]
lea edx, [esi + 0x12f]
push ecx
push edx
call fcn.00409361
mov ecx, dword [esi + 8]
add esp, 8
test eax, eax
jne 0x4042c3
test ecx, ecx
je 0x4042bf
push 1
call fcn.00403a90
lea eax, [esp + 0x364]
push str._t1615852_Admin_folder_found
push eax
call fcn.00409203
add esp, 8
lea ecx, [esp + 0x364]
push ecx
mov ecx, dword [esi + 8]
call fcn.004037f0
mov bl, 1
jmp 0x4042f3
test ecx, ecx
je 0x4042f3
push 1
call fcn.00403a90
lea edx, [esp + 0x364]
push str._t1615852__tcscmp_returned___0
push edx
call fcn.00409203
mov ecx, dword [esi + 8]
add esp, 8
lea eax, [esp + 0x364]
push eax
call fcn.004037f0
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40453a
mov eax, dword [esi + 8]
test eax, eax
je 0x40433f
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14c]
push edx
push eax
lea ecx, [esp + 0x36c]
push str._tConverting_profiles_of_user___s__in_folder__s
push ecx
call fcn.00409203
mov ecx, dword [esi + 8]
add esp, 0x10
lea edx, [esp + 0x364]
push edx
call fcn.004037f0
lea eax, [esi + 0xc]
lea ecx, [esi + 0x2f]
test bl, bl
push eax
jne 0x404351
lea ecx, [esp + 0x150]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00404630
mov ebp, eax
cmp ebp, 0x43297
je 0x404381
mov ecx, esi
call fcn.00405ef0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x120]
push eax
push ecx
jmp 0x4045ef
lea edx, [esp + 0x10]
lea eax, [esi + 0x2f]
test bl, bl
push edx
jne 0x404394
lea eax, [esp + 0x150]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.00403b60
mov ebp, eax
cmp ebp, 0x43297
jne 0x404507
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x36c]
push str._tSuccessfully_converted__d_profiles_in_folder__s
push ecx
call fcn.00409203
mov ecx, dword [esi + 8]
add esp, 0x10
lea edx, [esp + 0x364]
push edx
call fcn.004037f0
mov eax, dword [esi + 8]
test eax, eax
je 0x40440f
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x364]
push eax
push str._tConverting_the_preferred_list_in_folder__s
push ecx
call fcn.00409203
mov ecx, dword [esi + 8]
add esp, 0xc
lea edx, [esp + 0x364]
push edx
call fcn.004037f0
lea eax, [esp + 0x14c]
lea ecx, [esp + 0xb64]
push eax
push ecx
call fcn.00409410
add esp, 8
test eax, eax
je 0x404441
lea edx, [esp + 0x14c]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, esi
call fcn.00405670
jmp 0x4044b8
test bl, bl
je 0x404450
lea ecx, [esi + 0x2f]
lea edx, [esp + 0x1c]
push ecx
push edx
jmp 0x40445d
lea eax, [esp + 0x14c]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.004051c0
mov eax, dword [esi + 8]
test eax, eax
je 0x404495
lea edx, [esp + 0x1c]
lea eax, [esp + 0x364]
push edx
push str._tConverting_the_last_applied_profile_in_folder__s
push eax
call fcn.00409203
add esp, 0xc
lea ecx, [esp + 0x364]
push ecx
mov ecx, dword [esi + 8]
call fcn.004037f0
test bl, bl
je 0x4044a4
lea edx, [esi + 0x2f]
lea eax, [esp + 0x1c]
push edx
push eax
jmp 0x4044b1
lea ecx, [esp + 0x14c]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.004049e0
mov ebp, eax
cmp ebp, 0x43297
jne 0x404531
mov eax, dword [esi + 8]
test eax, eax
je 0x4044f3
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x364]
push eax
push str._tRemoving_the_profiles_folder__s
push ecx
call fcn.00409203
mov ecx, dword [esi + 8]
add esp, 0xc
lea edx, [esp + 0x364]
push edx
call fcn.004037f0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, esi
call fcn.00405ef0
jmp 0x404572
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x364]
push ecx
push str._t_FAILED__Failed_to_convert_profiles_in_folder__s
push edx
call fcn.00409203
mov ecx, dword [esi + 8]
add esp, 0xc
lea eax, [esp + 0x364]
push eax
call fcn.004037f0
mov ecx, esi
call fcn.00405ef0
jmp 0x404572
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x404572
push 1
call fcn.00403a90
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x364]
push ecx
push str._tProfile_folder___s__does_not_exist._No_profile_conversion_will_be_performed.
push edx
call fcn.00409203
mov ecx, dword [esi + 8]
add esp, 0xc
lea eax, [esp + 0x364]
push eax
call fcn.004037f0
mov eax, dword [esi + 8]
test eax, eax
je 0x4045e2
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14c]
push ecx
push edx
lea eax, [esp + 0x36c]
push str._t_d_profile_s__in_folder___s__is_are_converted.
push eax
call fcn.00409203
add esp, 0x10
lea ecx, [esp + 0x364]
push ecx
mov ecx, dword [esi + 8]
call fcn.004037f0
lea edx, [esp + 0x14c]
lea eax, [esp + 0x364]
push edx
push str._t__END__User:__s_
push eax
call fcn.00409203
add esp, 0xc
lea ecx, [esp + 0x364]
push ecx
mov ecx, dword [esi + 8]
call fcn.004037f0
mov ecx, dword [esi + 8]
push 1
call fcn.00403a90
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x120]
push edx
push eax
call edi
test eax, eax
jne 0x40414b
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esi + 8]
pop ebx
test ecx, ecx
je 0x404616
push str._t_CProfileConverter::Convert___completed_
call fcn.004037f0
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0xe60
ret