Function at 0x49f740
Capabilities:
Delete file
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x54d76e
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x18]
call dword [0x55a6c4]
mov dword [esp + 0xbc], 0
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax]
mov ebx, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
push ecx
lea edx, [esp + 0x1c]
push str.SELECT_addon_id__name__class_FROM_addon_index_WHERE_guid_s
push edx
call ebx
mov edi, dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::CString::constructor_void_]
add esp, 0xc
lea ecx, [esp + 0x80]
call edi
mov byte [esp + 0xbc], 1
lea ecx, [esp + 0x58]
call edi
mov byte [esp + 0xbc], 2
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0xc4]
add edi, 4
push eax
push edi
lea ecx, [esp + 0x74]
mov dword [esp + 0x70], edi
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CCommand::constructor_class_wtw::db::CConnection___wchar_t_const__]
mov byte [esp + 0xbc], 3
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x70]
call dword [sym.imp.libWTW.module_public:_class_wtw::db::CReader___thiscall_wtw::db::CCommand::executeReader_void_]
mov byte [esp + 0xbc], 4
lea ecx, [esp + 0x34]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::read_void_]
test eax, eax
je 0x49f919
test esi, esi
jne 0x49f8b4
push str.wtwExtensions
lea ecx, [esp + 0x20]
call dword [0x55a504]
mov byte [esp + 0xbc], 5
push str.wtwExtensions
lea ecx, [esp + 0x24]
call dword [0x55a504]
mov byte [esp + 0xbc], 6
mov eax, dword [0x5c6f7c]
push 0x10
push str.Error
push 0x417
lea edx, [esp + 0x28]
push edx
call fcn.00504820
push eax
push str.You_are_uninstalling_non_existent_extension__interesting
push 0x416
lea eax, [esp + 0x30]
push eax
mov eax, dword [0x5c6f7c]
call fcn.00504820
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esp + 0xbc], 5
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0xbc], 4
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0xbc], 3
lea ecx, [esp + 0x34]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CReader::destructor_void_]
mov byte [esp + 0xbc], 2
lea ecx, [esp + 0x6c]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
mov byte [esp + 0xbc], 1
mov esi, dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::CString::destructor_void_]
lea ecx, [esp + 0x58]
call esi
mov byte [esp + 0xbc], 0
lea ecx, [esp + 0x80]
call esi
mov dword [esp + 0xbc], 0xffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
jmp 0x49fed6
push 0x55ae9c
lea ecx, [esp + 0x48]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::CString::constructor_wchar_t_const__]
mov byte [esp + 0xbc], 7
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x84]
push edx
push str.name
lea ecx, [esp + 0x40]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_wchar_t_const___class_wtw::CString___class_wtw::CString_const__]
mov byte [esp + 0xbc], 4
mov ebp, dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::CString::destructor_void_]
lea ecx, [esp + 0x44]
call ebp
push 0x55ae9c
lea ecx, [esp + 0x48]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::CString::constructor_wchar_t_const__]
mov byte [esp + 0xbc], 8
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x5c]
push ecx
push str.class
lea ecx, [esp + 0x40]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_wchar_t_const___class_wtw::CString___class_wtw::CString_const__]
mov byte [esp + 0xbc], 4
lea ecx, [esp + 0x44]
call ebp
push 0
push 0
lea edx, [esp + 0x34]
push edx
push str.addon_id
lea ecx, [esp + 0x44]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_wchar_t_const___long_long___int64____long_long___int64__]
test esi, esi
jne 0x49fc69
lea ecx, [esp + 0x20]
call dword [0x55a6c4]
mov byte [esp + 0xbc], 9
push str.wtwExtensions
lea ecx, [esp + 0x20]
call dword [0x55a504]
mov byte [esp + 0xbc], 0xa
lea ecx, [esp + 0x80]
call dword [sym.imp.libWTW.module_public:_wchar_t_const____thiscall_wtw::CString::c_str_void_const]
push eax
push 0x57ee8c
push 0x418
lea eax, [esp + 0x28]
push eax
mov eax, dword [0x5c6f7c]
call fcn.00504820
push eax
lea ecx, [esp + 0x28]
push ecx
call ebx
add esp, 0xc
mov byte [esp + 0xbc], 9
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push str.wtwExtensions
lea ecx, [esp + 0x20]
call dword [0x55a504]
mov byte [esp + 0xbc], 0xb
mov eax, dword [0x5c6f7c]
mov esi, dword [esp + 0x20]
push 0x24
push str.Confirm
push 0x41b
lea edx, [esp + 0x28]
push edx
call fcn.00504820
push eax
mov eax, dword [esp + 0xd4]
mov ecx, dword [eax + 0x20]
push esi
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
push ecx
call esi
cmp eax, 6
setne byte [esp + 0x27]
mov byte [esp + 0xbc], 9
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp byte [esp + 0x27], 0
je 0x49faf1
mov byte [esp + 0xbc], 4
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0xbc], 3
lea ecx, [esp + 0x34]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CReader::destructor_void_]
mov byte [esp + 0xbc], 2
lea ecx, [esp + 0x6c]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
mov byte [esp + 0xbc], 1
lea ecx, [esp + 0x58]
call ebp
mov byte [esp + 0xbc], 0
lea ecx, [esp + 0x80]
call ebp
jmp 0x49f8fd
push str.plugin
lea ecx, [esp + 0x5c]
call dword [sym.imp.libWTW.module_public:_bool___thiscall_wtw::CString::operator_wchar_t_const__]
test al, al
je 0x49fc57
mov edx, dword [esp + 0xc8]
push edx
call fcn.004df440
test eax, eax
jne 0x49fc57
push str.wtwExtensions
lea ecx, [esp + 0x2c]
call dword [0x55a504]
mov byte [esp + 0xbc], 0xc
push str.wtwExtensions
lea ecx, [esp + 0x20]
call dword [0x55a504]
mov byte [esp + 0xbc], 0xd
push 0x40
push str.Restart_required
push 0x41a
lea eax, [esp + 0x34]
push eax
mov eax, dword [0x5c6f7c]
call fcn.00504820
push eax
mov eax, dword [0x5c6f7c]
push str.Plugin_will_be_removed_at_next_program_restart
push 0x419
lea ecx, [esp + 0x2c]
push ecx
call fcn.00504820
mov edx, dword [esp + 0xd4]
push eax
mov eax, dword [edx + 0x20]
push eax
call esi
mov byte [esp + 0xbc], 0xc
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0xbc], 9
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
push str.INSERT_INTO_addon_remove_VALUES________
push ecx
call ebx
mov edx, dword [esp + 0x20]
add esp, 8
push edx
push edi
lea ecx, [esp + 0x4c]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CCommand::constructor_class_wtw::db::CConnection___wchar_t_const__]
mov byte [esp + 0xbc], 0xe
lea eax, [esp + 0x2c]
push eax
push 1
lea ecx, [esp + 0x4c]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CCommand::bind_int__long_long___int64__const__]
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx]
push 0xffffffffffffffff
push eax
push 2
lea ecx, [esp + 0x50]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CCommand::bind_int__wchar_t_const___int_]
lea ecx, [esp + 0x44]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CCommand::executeNoRead_void_]
mov byte [esp + 0xbc], 9
mov esi, dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
lea ecx, [esp + 0x44]
call esi
mov byte [esp + 0xbc], 4
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0xbc], 3
lea ecx, [esp + 0x34]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CReader::destructor_void_]
mov byte [esp + 0xbc], 2
lea ecx, [esp + 0x6c]
call esi
jmp 0x49fe9d
mov byte [esp + 0xbc], 4
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0xbc], 3
lea ecx, [esp + 0x34]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CReader::destructor_void_]
mov byte [esp + 0xbc], 2
lea ecx, [esp + 0x6c]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
push str.plugin
lea ecx, [esp + 0x5c]
call dword [sym.imp.libWTW.module_public:_bool___thiscall_wtw::CString::operator_wchar_t_const__]
test al, al
je 0x49fcd3
mov edx, dword [esp + 0xc8]
push edx
call fcn.004df440
mov esi, eax
test esi, esi
je 0x49fcd3
push 5
mov ecx, esi
call fcn.004de700
mov eax, 5
call fcn.004de860
mov eax, dword [esp + 0xc8]
push eax
call fcn.004df350
push 1
push edi
lea ecx, [esp + 0x98]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CTransaction::constructor_class_wtw::db::CConnection___int_]
mov byte [esp + 0xbc], 0xf
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0x20]
push str.SELECT__FROM_addon_files_WHERE_addon_id_lld
push eax
call ebx
mov ecx, dword [esp + 0x28]
add esp, 0x10
push ecx
push edi
lea ecx, [esp + 0xa4]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CCommand::constructor_class_wtw::db::CConnection___wchar_t_const__]
mov byte [esp + 0xbc], 0x10
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0xa0]
call dword [sym.imp.libWTW.module_public:_class_wtw::db::CReader___thiscall_wtw::db::CCommand::executeReader_void_]
mov byte [esp + 0xbc], 0x11
lea ecx, [esp + 0x34]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::read_void_]
test eax, eax
jne 0x49fe0a
mov bl, 0x12
lea ecx, [esp + 0x44]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::CString::constructor_void_]
mov byte [esp + 0xbc], bl
push 0x55ae9c
lea ecx, [esp + 0x70]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::CString::constructor_wchar_t_const__]
mov byte [esp + 0xbc], 0x13
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x48]
push ecx
push str.path
lea ecx, [esp + 0x40]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::getResult_wchar_t_const___class_wtw::CString___class_wtw::CString_const__]
mov byte [esp + 0xbc], bl
lea ecx, [esp + 0x6c]
call ebp
mov esi, dword [0x5c7000]
lea ecx, [esp + 0x44]
add esi, 0x30
call dword [sym.imp.libWTW.module_public:_wchar_t_const____thiscall_wtw::CString::operator_wchar_t_const__void_const]
lea edx, [esp + 0x28]
push esi
push edx
mov edi, eax
call fcn.0040f2b0
add esp, 8
mov byte [esp + 0xbc], 0x14
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0xbc], bl
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0xbc], 0x11
lea ecx, [esp + 0x44]
call ebp
lea ecx, [esp + 0x34]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CReader::read_void_]
test eax, eax
je 0x49fd4d
mov ebx, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov edi, dword [esp + 0x68]
mov byte [esp + 0xbc], 0x10
lea ecx, [esp + 0x34]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CReader::destructor_void_]
mov byte [esp + 0xbc], 0xf
lea ecx, [esp + 0x9c]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x20]
push str.DELETE_FROM_addon_files_WHERE_addon_id_lld
push edx
call ebx
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CConnection::executeNoRead_wchar_t_const__]
add esp, 0x10
push eax
mov ecx, edi
call esi
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0x20]
push str.DELETE_FROM_addon_index_WHERE_addon_id_lld
push eax
call ebx
mov ecx, dword [esp + 0x28]
add esp, 0x10
push ecx
mov ecx, edi
call esi
lea ecx, [esp + 0x90]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CTransaction::commit_void_]
mov byte [esp + 0xbc], 2
lea ecx, [esp + 0x90]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CTransaction::destructor_void_]
mov byte [esp + 0xbc], 1
lea ecx, [esp + 0x58]
call ebp
mov byte [esp + 0xbc], 0
lea ecx, [esp + 0x80]
call ebp
mov dword [esp + 0xbc], 0xffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 1
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 0xc