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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4561b3
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x47f060]
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
mov dword [ebp - 0x24c], ebx
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, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x224]
push str.IDS_GAME_CENTER
push eax
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::OSTRING_TABLE____cdecl_OUI::OSTRING_TABLE::GetStringTable_void_]
mov esi, dword [sym.imp.ouilibx.dll_public:_class_OUI::COString___thiscall_OUI::OSTRING_TABLE::LoadStringW_wchar_t_const__]
mov ecx, eax
call esi
lea eax, [ebp - 0x220]
push str.IDS_ICON_GAME
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::OSTRING_TABLE____cdecl_OUI::OSTRING_TABLE::GetStringTable_void_]
mov ecx, eax
call esi
lea eax, [ebp - 0x228]
push str.IDS_ICON_TOOL
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::OSTRING_TABLE____cdecl_OUI::OSTRING_TABLE::GetStringTable_void_]
mov ecx, eax
call esi
lea eax, [ebp - 0x230]
push str.IDS_ICON_MUSIC
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::OSTRING_TABLE____cdecl_OUI::OSTRING_TABLE::GetStringTable_void_]
mov ecx, eax
call esi
lea eax, [ebp - 0x22c]
push str.IDS_ICON_MOVIE
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::OSTRING_TABLE____cdecl_OUI::OSTRING_TABLE::GetStringTable_void_]
mov ecx, eax
call esi
mov byte [ebp - 4], 4
mov esi, dword [ebx + 0x30]
mov edi, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
cmp esi, dword [ebx + 0x34]
je 0x41b31a
cmp dword [esi + 0x14], 8
jb 0x41b180
mov eax, dword [esi]
jmp 0x41b182
mov eax, esi
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
lea eax, [ebp - 0x218]
push eax
push str.__DESKTOP_
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 5
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
lea ecx, [ebp - 0x224]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
push eax
push str.__GameCenter_
lea ecx, [ebp - 0x21c]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
lea ecx, [ebp - 0x220]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
push eax
push str.__Game_
lea ecx, [ebp - 0x21c]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
lea ecx, [ebp - 0x228]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
push eax
push str.__Tool_
lea ecx, [ebp - 0x21c]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
lea ecx, [ebp - 0x230]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
push eax
push str.__Music_
lea ecx, [ebp - 0x21c]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
lea ecx, [ebp - 0x22c]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
push eax
push str.__Movie_
lea ecx, [ebp - 0x21c]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::GetLength_void_const]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.ouilibx.dll_public:_wchar_t____thiscall_OUI::COString::GetBuffer_int_]
mov edx, eax
cmp word [edx], 0
jne 0x41b287
xor ecx, ecx
jmp 0x41b2a5
mov ecx, edx
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b290
sub ecx, ebx
mov ebx, dword [ebp - 0x24c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.00406c00
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x234], 8
jb 0x41b2e5
push dword [ebp - 0x248]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 4
call edi
add esi, 0x18
cmp esi, dword [ebx + 0x34]
jne 0x41b176
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call edi
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call edi
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call edi
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call edi
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.00452076
mov esp, ebp
pop ebp
ret