Function at 0x404e60
Capabilities:
Get common file path
Get session user name
Set current directory

Disassembly:
sub esp, 0xaa0
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x404e8e
push 1
call fcn.00403a90
mov ecx, dword [ebp + 8]
push str._t_CProfileConverter::Initialize___started_
call fcn.004037f0
mov ecx, dword [ebp + 8]
push 1
call fcn.00403a90
mov eax, dword [ebp + 4]
test eax, eax
je 0x404e9f
mov al, 1
pop ebp
add esp, 0xaa0
ret
mov edx, dword [str.BinDir]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [str.SOFTWAREIntelWireless]
push ecx
push edx
push eax
push 0x80000002
mov dword [esp + 0x1c], 0x104
call fcn.00403630
add esp, 0x14
test al, al
mov eax, dword [ebp + 8]
jne 0x404f07
test eax, eax
je 0x404f7d
mov ecx, dword [str.BinDir]
mov edx, dword [str.SOFTWAREIntelWireless]
push ecx
push edx
lea eax, [esp + 0x2ac]
push str._t_FAILED__Failed_to_data_of_registry_value:_HKEY_LOCAL_MACHINE_s_s
push eax
call fcn.00409203
add esp, 0x10
lea ecx, [esp + 0x2a4]
push ecx
jmp 0x404f6d
test eax, eax
je 0x404f35
lea edx, [esp + 0xc]
lea eax, [esp + 0x2a4]
push edx
push str._tChange_the_current_directory_to:__s
push eax
call fcn.00409203
add esp, 0xc
lea ecx, [esp + 0x2a4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004037f0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x404f87
mov eax, dword [ebp + 8]
test eax, eax
je 0x404f7d
lea eax, [esp + 0xc]
lea ecx, [esp + 0x2a4]
push eax
push str._t_FAILED__Failed_to_set_current_directory_to__s
push ecx
call fcn.00409203
add esp, 0xc
lea edx, [esp + 0x2a4]
push edx
mov ecx, dword [ebp + 8]
call fcn.004037f0
mov ecx, dword [ebp + 8]
call fcn.004039d0
xor al, al
pop ebp
add esp, 0xaa0
ret
lea eax, [esp + 0xc]
push str.PfMgrApi.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov eax, dword [ebp + 8]
test eax, eax
je 0x404fc8
lea ecx, [esp + 0xc]
lea edx, [esp + 0x2a4]
push ecx
push str._tLoading_the_dynamic_link_library:__s
push edx
call fcn.00409203
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [esp + 0x2a4]
push eax
call fcn.004037f0
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp + 4], eax
test eax, eax
mov eax, dword [ebp + 8]
jne 0x405019
test eax, eax
je 0x405015
lea edx, [esp + 0x14]
lea eax, [esp + 0x2ac]
push edx
push str._t_FAILED__Failed_to_load_the_dynamic_link_library:__s
push eax
call fcn.00409203
add esp, 0xc
lea ecx, [esp + 0x2ac]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004037f0
mov ecx, dword [ebp + 8]
call fcn.004039d0
xor bl, bl
jmp 0x405049
test eax, eax
je 0x405047
lea edx, [esp + 0x14]
lea eax, [esp + 0x2ac]
push edx
push str._tSuccessfully_loaded_the_dynamic_link_library:__s
push eax
call fcn.00409203
add esp, 0xc
lea ecx, [esp + 0x2ac]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004037f0
mov bl, 1
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x405064
push str._t_CProfileConverter::Initialize___completed_
call fcn.004037f0
mov ecx, dword [ebp + 8]
push 1
call fcn.00403a90
lea ecx, [esp + 0x218]
mov byte [ebp + 0x2e], 0
call fcn.00405fe0
push 0x100
lea ecx, [esp + 0x21c]
call fcn.00406010
test eax, eax
je 0x4051b1
lea edx, [esp + 0xc]
lea esi, [ebp + 0x2f]
push edx
push esi
mov dword [esp + 0x14], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [esp + 0x118]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
jl 0x4051b1
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4050ed
push str.1615852_:_PROFILE_PATH_
call fcn.004037f0
lea ecx, [esp + 0x118]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004037f0
mov ecx, dword [ebp + 8]
push 1
call fcn.00403a90
lea edx, [esp + 0x118]
push 0x5c
push edx
call fcn.004092ef
add esp, 8
test eax, eax
je 0x4051b1
mov byte [eax], 0
push edi
lea eax, [esp + 0x11c]
push 0x5c
push eax
call fcn.004092ef
mov ecx, dword [ebp + 8]
mov edi, eax
add esp, 8
inc edi
test ecx, ecx
je 0x405164
push str.1615852_:_TEMP_
call fcn.004037f0
mov ecx, dword [ebp + 8]
push edi
call fcn.004037f0
mov ecx, dword [ebp + 8]
push 1
call fcn.00403a90
mov ecx, dword [ebp + 8]
push str.1615852_:_ADMIN_NAME_
call fcn.004037f0
mov ecx, dword [ebp + 8]
push esi
call fcn.004037f0
mov ecx, dword [ebp + 8]
push 1
call fcn.00403a90
push esi
push edi
call fcn.00409361
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [ebp + 0x12f]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov byte [ebp + 0x2e], 1
test ecx, ecx
pop edi
je 0x4051b1
push str.1615852_:_LOGIN_NAME_DIFF_
call fcn.004037f0
mov ecx, dword [ebp + 8]
push 1
call fcn.00403a90
mov al, bl
pop esi
pop ebx
pop ebp
add esp, 0xaa0
ret