Function at 0x4e2a30
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5410a7
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
cmp dword [0x5c7004], 0
mov edi, dword [0x5c7000]
mov dword [esp + 0x30], edi
je 0x4e2b00
push 0x55ae9c
lea ecx, [esp + 0x1c]
call dword [0x55a504]
mov dword [esp + 0x40], 0
push str.Loading_profiles...
lea ecx, [esp + 0x20]
call dword [0x55a504]
mov byte [esp + 0x40], 1
push str.PRFL
lea ecx, [esp + 0x24]
call dword [0x55a504]
mov byte [esp + 0x40], 2
mov esi, dword [0x5c7004]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, 5
lea ebx, [esp + 0x24]
call fcn.00433ab0
mov byte [esp + 0x40], 1
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x40], 0
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
or ebp, 0xffffffff
mov dword [esp + 0x40], ebp
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x4e2b03
or ebp, 0xffffffff
lea eax, [edi + 0x18]
call fcn.004e4c90
mov edx, dword [edi + 4]
mov ecx, dword [edx - 0xc]
lea eax, [edi + 4]
mov esi, 3
cmp ecx, esi
jle 0x4e2b26
push 2
push eax
push edi
call fcn.004e2e90
mov ecx, dword [edi + 8]
cmp dword [ecx - 0xc], esi
lea eax, [edi + 8]
jle 0x4e2b3a
push 1
push eax
push edi
call fcn.004e2e90
mov edx, dword [edi + 0xc]
mov ecx, dword [edx - 0xc]
cmp ecx, esi
lea eax, [edi + 0xc]
jle 0x4e2b50
push 4
push eax
push edi
call fcn.004e2e90
push str.noExtProfiles
lea ecx, [esp + 0x24]
call dword [0x55a504]
mov dword [esp + 0x40], esi
push 0
lea eax, [esp + 0x24]
push eax
push 0x5c733c
call fcn.0051bb70
test eax, eax
sete bl
mov dword [esp + 0x40], ebp
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
test bl, bl
je 0x4e2ddd
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp dword [0x5c7004], 0
mov dword [esp + 0x2c], eax
je 0x4e2c2d
push 0x55ae9c
lea ecx, [esp + 0x1c]
call dword [0x55a504]
mov dword [esp + 0x40], 4
push str._tScannig_all_drives...
lea ecx, [esp + 0x20]
call dword [0x55a504]
mov byte [esp + 0x40], 5
push str.PRFL
lea ecx, [esp + 0x24]
call dword [0x55a504]
mov byte [esp + 0x40], 6
mov esi, dword [0x5c7004]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, 5
lea ebx, [esp + 0x24]
call fcn.00433ab0
mov byte [esp + 0x40], 5
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x40], 4
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x40], ebp
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ebp, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov edi, 2
jmp 0x4e2c40
mov ecx, edi
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x2c]
test ecx, eax
je 0x4e2dd0
lea ecx, [esp + 0x1c]
call dword [0x55a6c4]
mov dword [esp + 0x40], 7
lea ecx, [esp + 0x18]
call dword [0x55a6c4]
mov byte [esp + 0x40], 8
lea edx, [edi + 0x41]
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
push 0x563828
lea ecx, [esp + 0x20]
call dword [0x55a294]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
cmp esi, 3
je 0x4e2cb3
cmp esi, 2
je 0x4e2cb3
cmp esi, 4
jne 0x4e2daf
mov ecx, dword [esp + 0x1c]
push str.wtw_profiles
push ecx
lea edx, [esp + 0x20]
push str._s_s_
push edx
call ebp
add esp, 0x10
push 0x56152c
push 0x561530
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::MakeLower]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e2daf
lea ecx, [esp + 0x20]
call dword [0x55a6c4]
mov byte [esp + 0x40], 9
mov ecx, dword [esp + 0x18]
push esi
push ecx
lea edx, [esp + 0x28]
push str._tExtra_path:__s__Type:__d_
push edx
call ebp
add esp, 0x10
cmp dword [0x5c7004], 0
je 0x4e2d8f
push 0x55ae9c
lea ecx, [esp + 0x2c]
call dword [0x55a504]
mov byte [esp + 0x40], 0xa
push str.PRFL
lea ecx, [esp + 0x28]
call dword [0x55a504]
mov byte [esp + 0x40], 0xb
mov esi, dword [0x5c7004]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, 5
lea ebx, [esp + 0x28]
call fcn.00433ab0
mov byte [esp + 0x40], 0xa
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x40], 9
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x30]
push 8
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.004e2e90
mov byte [esp + 0x40], 8
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x40], 7
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
inc edi
cmp edi, 0x20
jl 0x4e2c40
or ebp, 0xffffffff
cmp dword [0x5c7004], 0
je 0x4e2e71
push 0x55ae9c
lea ecx, [esp + 0x24]
call dword [0x55a504]
mov dword [esp + 0x40], 0xc
push str.Loading_completed
lea ecx, [esp + 0x28]
call dword [0x55a504]
mov byte [esp + 0x40], 0xd
push str.PRFL
lea ecx, [esp + 0x2c]
call dword [0x55a504]
mov byte [esp + 0x40], 0xe
mov esi, dword [0x5c7004]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, 5
lea ebx, [esp + 0x2c]
call fcn.00433ab0
mov byte [esp + 0x40], 0xd
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x40], 0xc
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x40], ebp
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret