Function at 0x413710
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4447b8
mov eax, dword fs:[0]
push eax
sub esp, 0xa50
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x30
lea eax, [ebp - 0x420]
push eax
push 1
push 0xffffffffffffffff
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov esi, 0x469ad4
test eax, eax
jne 0x413825
mov eax, dword [0x469aec]
test al, 1
jne 0x413804
or eax, 1
mov dword [0x469aec], eax
mov dword [ebp - 4], 0
call fcn.00432790
push 0x4486b0
call fcn.00441527
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x469ae8], 8
mov eax, esi
cmovae eax, dword [0x469ad4]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x413888
mov eax, dword [0x469aec]
test al, 1
jne 0x41386f
or eax, 1
mov dword [0x469aec], eax
mov dword [ebp - 4], 1
call fcn.00432790
push 0x4486b0
call fcn.00441527
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x469ae8], 8
lea eax, [ebp - 0x218]
cmovae esi, dword [0x469ad4]
push esi
push eax
push eax
call edi
mov eax, dword [0x469f00]
test al, 1
jne 0x4138a6
or eax, 1
push 0x4486c0
mov dword [0x469f00], eax
call fcn.00441527
add esp, 4
sub esp, 8
lea eax, [ebp - 0x830]
push eax
call fcn.00433200
mov esi, dword [ebx + 0x54]
cmp esi, dword [ebx + 0x58]
je 0x413a78
mov edi, dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
cmp dword [esi + 0x14], 8
jb 0x4138d1
mov eax, dword [esi]
jmp 0x4138d3
mov eax, esi
push eax
lea ecx, [ebp - 0xa3c]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
mov dword [ebp - 4], 2
cmp dword [ebx + 0x14], 8
jb 0x4138f1
mov eax, dword [ebx]
jmp 0x4138f3
mov eax, ebx
push eax
push str.__INSTDIR_
lea ecx, [ebp - 0xa3c]
call edi
lea eax, [ebp - 0x628]
push eax
push str.__DEFUALT_USER_
lea ecx, [ebp - 0xa3c]
call edi
lea eax, [ebp - 0x218]
push eax
push str.__CURRENT_USER_
lea ecx, [ebp - 0xa3c]
call edi
lea eax, [ebp - 0x830]
push eax
push str.__DESKTEMP_
lea ecx, [ebp - 0xa3c]
call edi
mov eax, dword [0x469f00]
test al, 1
jne 0x41395b
or eax, 1
push 0x4486c0
mov dword [0x469f00], eax
call fcn.00441527
add esp, 4
lea ecx, [ebp - 0xa3c]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
mov edi, eax
xorps xmm0, xmm0
movq qword [ebp - 0xa4c], xmm0
mov eax, 0x614
mov word [ebp - 0xa4c], ax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa38], ax
lea eax, [ebp - 0xa36]
movq qword [ebp - 0xa5c], xmm0
mov dword [ebp - 0xa44], 0
mov word [ebp - 0xa40], 0
push eax
movq qword [ebp - 0xa54], xmm0
mov dword [ebp - 0xa46], 0
mov dword [ebp - 0xa5c], 0
mov dword [ebp - 0xa42], 0
call sub.MSVCR110.dll_memset
push edi
push 0x458b44
lea eax, [ebp - 0xa38]
push 0x208
push eax
call fcn.00401b90
lea eax, [ebp - 0xa38]
add esp, 0x1c
mov dword [ebp - 0xa54], eax
lea eax, [ebp - 0xa5c]
push eax
mov dword [ebp - 0xa58], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
test al, al
je 0x413a38
push dword [ebp - 0xa3c]
push str.CUninstalltools::RemoveConfigDir__DeleteFolder_succeed:_path___s_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 8
jmp 0x413a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xa3c]
push str.CUninstalltools::RemoveConfigDir__DeleteFolder_failed:_path___s__err___d_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0xc
lea ecx, [ebp - 0xa3c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
mov edi, dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
add esi, 0x18
cmp esi, dword [ebx + 0x58]
jne 0x4138c7
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret