Function at 0x414ab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43431c
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x455070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x844], ecx
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x628], dx
push 0x206
push 0
lea eax, [ebp - 0x626]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x830], cx
push 0x206
push 0
lea edx, [ebp - 0x82e]
push edx
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
lea edx, [ebp - 0x628]
push edx
push 1
push 0xffffffffffffffff
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x414b97
call fcn.00412470
mov ecx, eax
call fcn.004124f0
push eax
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x218]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x414bd1
call fcn.00412470
mov ecx, eax
call fcn.004124f0
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 1
lea ecx, [ebp - 0x838]
call fcn.00406860
lea edx, [ebp - 0x838]
push edx
mov ecx, dword [ebp - 0x844]
add ecx, 0x60
call fcn.0040f3a0
jmp 0x414c09
push 0
lea eax, [ebp - 0x854]
push eax
lea ecx, [ebp - 0x838]
call fcn.0040f420
lea ecx, [ebp - 0x850]
push ecx
mov ecx, dword [ebp - 0x844]
add ecx, 0x60
call fcn.0040f3d0
push eax
lea ecx, [ebp - 0x838]
call fcn.004054a0
movzx edx, al
test edx, edx
je 0x414dad
lea ecx, [ebp - 0x838]
call fcn.0040f400
mov ecx, eax
call fcn.004059f0
push eax
lea ecx, [ebp - 0x834]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x844]
call fcn.004059f0
push eax
push str.__INSTDIR_
lea ecx, [ebp - 0x834]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
lea eax, [ebp - 0x420]
push eax
push str.__DEFUALT_USER_
lea ecx, [ebp - 0x834]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
lea ecx, [ebp - 0x218]
push ecx
push str.__CURRENT_USER_
lea ecx, [ebp - 0x834]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
lea edx, [ebp - 0x830]
push edx
push str.__DESKTEMP_
lea ecx, [ebp - 0x834]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
lea ecx, [ebp - 0x834]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::GetLength_void_const]
push eax
lea ecx, [ebp - 0x834]
call dword [sym.imp.ouilibx.dll_public:_wchar_t____thiscall_OUI::COString::GetBuffer_int_]
mov dword [ebp - 0x83c], eax
push 0x43e74c
mov eax, dword [ebp - 0x83c]
push eax
call fcn.0040f620
add esp, 8
test eax, eax
jne 0x414d5c
mov ecx, dword [ebp - 0x83c]
push ecx
call fcn.00411320
mov ecx, eax
call fcn.004252c0
mov byte [ebp - 0x83d], al
movzx edx, byte [ebp - 0x83d]
test edx, edx
je 0x414d32
mov eax, dword [ebp - 0x83c]
push eax
push str.CUninstalltools::DeleteConfigFile__ForceRemoveFile_succeed:_path___s_
call dword [sym.imp.iImportLib.dll_ISAFE_WriteProgramLogNoMask]
add esp, 8
jmp 0x414d5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x84c], eax
mov ecx, dword [ebp - 0x84c]
push ecx
mov edx, dword [ebp - 0x83c]
push edx
push str.CUninstalltools::DeleteConfigFile__ForceRemoveFile_failed:_path___s__err___d_
call dword [sym.imp.iImportLib.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0xc
jmp 0x414d95
mov eax, dword [ebp - 0x83c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x848], eax
mov ecx, dword [ebp - 0x83c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edx, dword [ebp - 0x848]
push edx
mov eax, dword [ebp - 0x83c]
push eax
mov ecx, dword [ebp - 0x844]
call fcn.00413990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x834]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
jmp 0x414bf5
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004314a6
mov esp, ebp
pop ebp
ret