Function at 0x4d02f0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x556b64
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa4]
mov eax, esi
call fcn.004a6e70
xor ebx, ebx
mov dword [esp + 0x9c], ebx
mov ecx, dword [0x5c6ed0]
mov edi, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CConnection::executeAndRead_wchar_t_const___int__]
lea eax, [esp + 0x18]
push eax
push str.SELECT_COUNT___FROM_sqlite_master_WHERE_namemetaNodes_
mov dword [esi], vtable.CMetaManager.0
call edi
mov ebp, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CConnection::executeNoRead_wchar_t_const__]
cmp dword [esp + 0x18], ebx
jne 0x4d0378
mov ecx, dword [0x5c6ed0]
push str.CREATE_TABLE_metaNodes____ucid__VARCHAR_64_____name__TEXT____group__TEXT____extra__TEXT___
call ebp
mov ecx, dword [0x5c6ed0]
push str.CREATE_UNIQUE_INDEX_metaNodesUnique_ON_metaNodes___ucid___
call ebp
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [0x5c6ed0]
push str.SELECT_COUNT___FROM_sqlite_master_WHERE_namemetaComponents_
call edi
cmp dword [esp + 0x18], ebx
jne 0x4d03aa
mov ecx, dword [0x5c6ed0]
push str.CREATE_TABLE_metaComponents____ucid__VARCHAR_64_____net__VARCHAR_64_____id__VARCHAR_128_____default__INT___
call ebp
mov ecx, dword [0x5c6ed0]
push str.CREATE_UNIQUE_INDEX_metaComponentsUnique_ON_metaComponents___ucid____net____id___
call ebp
push 0x34
lea edx, [esp + 0x24]
push ebx
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push str.wtwMenu
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0x34
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], 0x4d0140
mov dword [esp + 0x38], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x3c], 0x769
mov dword [esp + 0x28], str.WTW_Contact_CreateMeta
mov dword [esp + 0x2c], str.WTW_Menu_Contact
call dword [0x55a504]
mov byte [esp + 0x9c], 1
push str.Create_metacontact
push 0x41a
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x5c6f7c]
call fcn.00504820
mov dword [esp + 0x2c], eax
mov byte [esp + 0x9c], bl
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 edx, dword [0x5c6f2c]
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.004c7260
push ebx
push esi
push 0x4cffc0
push str.WTW_OnMenuRebuild
call fcn.004ad690
push 0x40
mov dword [esi + 4], eax
lea eax, [esp + 0x58]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push str.wtwOther
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0x40
mov dword [esp + 0x6c], str.E322BB6D_3281_4cfe_9AA9_85D47C9E5BFC
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call dword [0x55a504]
mov byte [esp + 0x9c], 2
mov eax, dword [0x5c6f7c]
push str.Metacontacts_pseudoprotocol
push 0x3e9
lea ecx, [esp + 0x24]
push ecx
call fcn.00504820
mov dword [esp + 0x60], eax
mov byte [esp + 0x9c], bl
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 ebp, str.META
push str.wtwOther
lea ecx, [esp + 0x20]
mov dword [esp + 0x5c], ebp
call dword [0x55a504]
mov byte [esp + 0x9c], 3
mov eax, dword [0x5c6f7c]
push str.__Metacontacts__
push 0x3ea
lea edx, [esp + 0x24]
push edx
call fcn.00504820
mov dword [esp + 0x5c], eax
mov byte [esp + 0x9c], bl
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 ecx, dword [0x5c6f50]
lea eax, [esp + 0x54]
push eax
mov edi, 7
push ecx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x88], 0x4cff50
mov dword [esp + 0x8c], 0x4d24c0
mov dword [esp + 0x90], esi
call fcn.004e84a0
push 0x34
lea edx, [esp + 0x24]
push ebx
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push str.wtwOther
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0x34
mov dword [esp + 0x44], 0x4d2eb0
call dword [0x55a504]
mov byte [esp + 0x9c], 4
push str.Properties
push 0x3eb
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x5c6f7c]
call fcn.00504820
mov dword [esp + 0x2c], eax
mov byte [esp + 0x9c], bl
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 edx, dword [0x5c6f4c]
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], 1
mov dword [esp + 0x2c], str.META_1_Properties
mov dword [esp + 0x3c], 0xfffffc18
call fcn.004e5a30
push ebx
push ebx
push 0x497260
push str.WTW_OnMenuRebuild
call fcn.004ad690
push ebx
push ebx
push 0x497360
push str.WTW_OnMenuCompleted
call fcn.004ad690
lea ecx, [esp + 0x14]
call dword [0x55a6c4]
mov byte [esp + 0x9c], 5
mov edi, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
push str.PFInitChat
lea eax, [esp + 0x18]
push str.META_1__s
push eax
call edi
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push 0x4cfa00
push ecx
push ebx
call fcn.004b3880
push str.PFInitSendMessage
lea edx, [esp + 0x18]
push str.META_1__s
push edx
call edi
add esp, 0xc
push ebx
push ebx
push 0x4cfbd0
mov eax, dword [esp + 0x20]
push eax
push ebx
call fcn.004b3880
push str.PFMessageSend
lea ecx, [esp + 0x18]
push str.META_1__s
push ecx
call edi
mov edx, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push 0x4cfd90
push edx
push ebx
call fcn.004b3880
mov ecx, dword [0x5c6d24]
push ebx
push esi
push 0x4d2910
push str.WTW_MetacontactAdd
call fcn.004b3950
mov ecx, dword [0x5c6d24]
push ebx
push esi
push 0x4d2ab0
push str.WTW_MetacontactCheck
call fcn.004b3950
mov ecx, dword [0x5c6d24]
push ebx
push esi
push 0x4d2b60
push str.WTW_MetacontactGet
call fcn.004b3950
mov eax, dword [esp + 0xa8]
push eax
call fcn.004d0a10
mov byte [esp + 0x9c], bl
lea ecx, [esp + 0x14]
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 dword [esp + 0x9c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8