Function at 0x52ee40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x743698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x404
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov dword [ebp - 0x10], ecx
jne 0x52eea1
push 0x40f
push 0x7afcec
push str.pVirGm
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x52eede
push 0x410
push 0x7afcec
push str.pInfo
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi], 0
je 0x52eef8
mov eax, dword [edi + 0xc]
test eax, eax
je 0x52eef8
mov eax, dword [edi + 0x10]
test eax, eax
je 0x52eef8
mov eax, dword [edi + 8]
test eax, eax
jne 0x52ef31
push 0x413
push 0x7afcec
push str.pInfo__idCN___ID_NONE__pInfo__idFrom___ID_NONE__pInfo__idTarget___ID_NONE__pInfo__nData___0
push str.IF_NOT
push 0x793720
call fcn.00401080
add esp, 0x14
mov eax, 9
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx + 0x10]
push eax
push ebx
call fcn.005304d0
mov esi, eax
cmp esi, 1
je 0x52ef78
push 0x419
push 0x7afcec
push str.nResult__ERR_OK
push str.IF_NOT
push 0x793720
call fcn.00401080
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x410]
push ecx
push 0x79a1ac
push str.SELECT_name_FROM__s_WHERE_id_u_LIMIT_1
push edx
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x10
lea edx, [ebp - 0x410]
mov eax, dword [ecx]
push 1
push edx
call dword [eax]
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
mov dword [ebp - 4], 0
je 0x52f0b9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
test eax, eax
je 0x52f0b9
mov edx, dword [esi]
push 0x10
push 0
mov ecx, esi
call dword [edx + 0x48]
push eax
lea eax, [edi + 0x14]
push eax
call fcn.0040cc10
xor eax, eax
add esp, 0xc
mov ax, word [edi + 4]
dec eax
cmp eax, 3
ja case.default.0x52eff3
jmp dword [eax*4 + 0x52f0e4]
mov ecx, dword [ebp - 0x10]
push edi
push ebx
call fcn.0052f100
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
mov dword [ebp - 4], 0xffffffff
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
push edi
push ebx
call fcn.0052f520
jmp 0x52f06e
mov ecx, dword [ebp - 0x10]
push edi
push ebx
call fcn.0052fa50
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
mov dword [ebp - 4], 0xffffffff
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
push edi
push ebx
call fcn.0052ff00
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [eax + 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [edx + 4]
pop edi
pop esi
mov eax, 9
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
test esi, esi
mov dword [ebp - 4], 0xffffffff
je 0x52f0cb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 3
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8