Function at 0x4147e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43441c
mov eax, dword fs:[0]
push eax
sub esp, 0x840
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 - 0x840], 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 - 0x830], dx
push 0x206
push 0
lea eax, [ebp - 0x82e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x628], cx
push 0x206
push 0
lea edx, [ebp - 0x626]
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 - 0x830]
push edx
push 1
push 0xffffffffffffffff
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4148c7
call fcn.00412470
mov ecx, eax
call fcn.004124f0
push eax
lea eax, [ebp - 0x830]
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 0x414901
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 0
push 0
push 0x104
lea edx, [ebp - 0x628]
push edx
call fcn.0040ba00
mov ecx, eax
call fcn.00424ca0
push 1
lea ecx, [ebp - 0x838]
call fcn.00406860
lea eax, [ebp - 0x838]
push eax
mov ecx, dword [ebp - 0x840]
add ecx, 0x54
call fcn.0040f3a0
jmp 0x414955
push 0
lea ecx, [ebp - 0x848]
push ecx
lea ecx, [ebp - 0x838]
call fcn.0040f420
lea edx, [ebp - 0x84c]
push edx
mov ecx, dword [ebp - 0x840]
add ecx, 0x54
call fcn.0040f3d0
push eax
lea ecx, [ebp - 0x838]
call fcn.004054a0
movzx eax, al
test eax, eax
je 0x414a8c
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 - 0x840]
call fcn.004059f0
push eax
push 0x43e7f8
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 - 0x420]
push ecx
push 0x43e810
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 - 0x218]
push edx
push 0x43e830
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 - 0x628]
push eax
push 0x43e850
lea ecx, [ebp - 0x834]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
call fcn.0040ba00
lea ecx, [ebp - 0x834]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
mov ecx, eax
call fcn.00424d60
mov byte [ebp - 0x839], al
movzx ecx, byte [ebp - 0x839]
test ecx, ecx
je 0x414a4c
mov edx, dword [ebp - 0x834]
push edx
push str.CUninstalltools::RemoveConfigDir__DeleteFolder_succeed:_path___s_
call dword [sym.imp.iImportLib.dll_ISAFE_WriteProgramLogNoMask]
add esp, 8
jmp 0x414a74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x844], eax
mov eax, dword [ebp - 0x844]
push eax
mov ecx, dword [ebp - 0x834]
push ecx
push str.CUninstalltools::RemoveConfigDir__DeleteFolder_failed:_path___s__err___d_
call dword [sym.imp.iImportLib.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x834]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
jmp 0x414941
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