Function at 0x4d12a0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x549834
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 1
jl 0x4d146b
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4d146b
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d12e0
sub eax, edx
sar eax, 1
je 0x4d146b
mov eax, dword [0x5c6ed0]
push str.SELECT_COUNT____FROM_metaNodes_WHERE_ucid_
push eax
lea ecx, [esp + 0x38]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CCommand::constructor_class_wtw::db::CConnection___wchar_t_const__]
mov dword [esp + 0x4c], 0
mov eax, dword [ebx]
mov edi, dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CCommand::bind_int__wchar_t_const___int_]
or ebp, 0xffffffff
push ebp
push eax
push 1
lea ecx, [esp + 0x3c]
call edi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x34]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CCommand::executeAndRead_int__]
cmp dword [esp + 0x18], 1
jge 0x4d1350
mov dword [esp + 0x4c], ebp
lea ecx, [esp + 0x30]
call dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
jmp 0x4d146b
mov dword [esp + 0x4c], ebp
mov ebp, dword [sym.imp.libWTW.module_public_virtual:_void___thiscall_wtw::db::CCommand::destructor_void_]
lea ecx, [esp + 0x30]
call ebp
mov edx, dword [esi + 0xc]
push edx
lea ecx, [esp + 0x1c]
call dword [0x55a504]
mov dword [esp + 0x4c], 1
mov eax, dword [esi + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004e8280
mov byte [esp + 0x4c], 3
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, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x4d1459
lea eax, [esp + 0x14]
call fcn.004cf9e0
test al, al
je 0x4d1459
mov ecx, dword [0x5c6ed0]
push str.INSERT_OR_REPLACE_INTO_metaComponents_VALUES_____________
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.libWTW.module_public:_void___thiscall_wtw::db::CCommand::constructor_class_wtw::db::CConnection___wchar_t_const__]
mov byte [esp + 0x4c], 4
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
push 1
lea ecx, [esp + 0x28]
call edi
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
push 2
lea ecx, [esp + 0x28]
call edi
mov eax, dword [esi + 8]
push 0xffffffffffffffff
push eax
push 3
lea ecx, [esp + 0x28]
call edi
lea ecx, [esp + 0x54]
push ecx
push 4
lea ecx, [esp + 0x24]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CCommand::bind_int__int_const__]
lea ecx, [esp + 0x1c]
call dword [sym.imp.libWTW.module_public:_long_int___thiscall_wtw::db::CCommand::executeNoRead_void_]
mov edx, dword [esp + 0x54]
push edx
push ebx
call fcn.004d11b0
mov byte [esp + 0x4c], 3
lea ecx, [esp + 0x1c]
call ebp
mov dword [esp + 0x4c], 0xffffffff
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 eax, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x40
ret 4
mov dword [esp + 0x4c], 0xffffffff
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]
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x40
ret 4