Function at 0x4143a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43445c
mov eax, dword fs:[0]
push eax
sub esp, 0x430
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 - 0x430], ecx
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call sub.MSVCR110.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 1
lea ecx, [ebp - 0x428]
call fcn.00406860
lea ecx, [ebp - 0x428]
push ecx
mov ecx, dword [ebp - 0x430]
add ecx, 0x3c
call fcn.0040f3a0
jmp 0x41444f
push 0
lea edx, [ebp - 0x438]
push edx
lea ecx, [ebp - 0x428]
call fcn.0040f420
lea eax, [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x430]
add ecx, 0x3c
call fcn.0040f3d0
push eax
lea ecx, [ebp - 0x428]
call fcn.004054a0
movzx ecx, al
test ecx, ecx
je 0x41458c
lea ecx, [ebp - 0x428]
call fcn.0040f400
mov ecx, eax
call fcn.004059f0
push eax
lea ecx, [ebp - 0x424]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x430]
call fcn.004059f0
push eax
push 0x43e580
lea ecx, [ebp - 0x424]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
lea edx, [ebp - 0x420]
push edx
push str.__SMPROGRAMS_
lea ecx, [ebp - 0x424]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
call fcn.00412470
mov ecx, eax
call fcn.004124f0
push eax
push str.__PRODUCT_NAME_
lea ecx, [ebp - 0x424]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
lea eax, [ebp - 0x218]
push eax
push str.__SYSDIR_
lea ecx, [ebp - 0x424]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
call fcn.0040ba00
lea ecx, [ebp - 0x424]
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 - 0x429], al
movzx ecx, byte [ebp - 0x429]
test ecx, ecx
je 0x41454c
mov edx, dword [ebp - 0x424]
push edx
push str.CUninstalltools::RemoveDirFromVector__DeleteFolder_succeed:_path___s_
call dword [sym.imp.iImportLib.dll_ISAFE_WriteProgramLogNoMask]
add esp, 8
jmp 0x414574
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x434]
push eax
mov ecx, dword [ebp - 0x424]
push ecx
push str.CUninstalltools::RemoveDirFromVector__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 - 0x424]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
jmp 0x41443b
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