Function at 0x579d50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ecx + eax*4 + 0x1c]
lea edx, [ecx + eax*4 + 0x1c]
xor ebx, ebx
push edi
test esi, esi
mov dword [ebp - 4], edx
jne 0x579f07
mov esi, dword [ecx]
cmp eax, 0xa
mov dword [ebp - 0x30], str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
mov dword [ebp - 0x2c], str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_DESC
mov dword [ebp - 0x28], str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov dword [ebp - 0x24], str.INSERT_INTO__Q._q_content_VALUES__s_
mov dword [ebp - 0x20], str.REPLACE_INTO__Q._q_content_VALUES__s_
mov dword [ebp - 0x1c], str.DELETE_FROM__Q._q_content_WHERE_id_
mov dword [ebp - 0x18], str.REPLACE_INTO__Q._q_docsize_VALUES_____
mov dword [ebp - 0x14], str.DELETE_FROM__Q._q_docsize_WHERE_id_
mov dword [ebp - 0x10], str.SELECT_sz_FROM__Q._q_docsize_WHERE_id_
mov dword [ebp - 0xc], str.REPLACE_INTO__Q._q_config_VALUES_____
mov dword [ebp - 8], str.SELECT__s_FROM__s_AS_T
ja case.0x579dd4.4
xor ecx, ecx
mov cl, byte [eax + 0x579f38]
jmp dword [ecx*4 + 0x579f24]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x34]
push edx
push eax
push str.SELECT__s_FROM__s_AS_T
jmp 0x579e8c
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x34]
mov eax, dword [ebp + eax*4 - 0x30]
push ecx
push ecx
push ecx
mov ecx, dword [esi + 0x24]
push ecx
push edx
push eax
call fcn.004e3af0
add esp, 0x18
jmp 0x579e94
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x34]
push ecx
push edx
push eax
push str.SELECT__s_FROM__s_T_WHERE_T._Q_
call fcn.004e3af0
add esp, 0x10
jmp 0x579e94
mov edi, dword [esi + 0xc]
inc edi
lea eax, [edi + edi + 1]
cdq
push edx
push eax
call fcn.004e1d50
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x579e9a
xor ecx, ecx
test edi, edi
jle 0x579e57
mov ecx, edi
mov dl, 0x2c
mov byte [eax], 0x3f
mov byte [eax + 1], dl
add eax, 2
dec edi
jne 0x579e4b
mov eax, dword [ebp + 0xc]
mov byte [ebx + ecx*2 - 1], 0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ebx
push ecx
mov ecx, dword [ebp + eax*4 - 0x30]
push edx
push ecx
call fcn.004e3af0
push ebx
mov edi, eax
call fcn.004e1dc0
add esp, 0x14
jmp 0x579e96
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
mov edx, dword [ebp + eax*4 - 0x30]
push ecx
push edx
call fcn.004e3af0
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x579ea1
mov ebx, 7
jmp 0x579f07
mov eax, dword [ebp + 0xc]
mov ecx, 1
cmp eax, 2
jle 0x579eb3
mov ecx, 5
mov eax, dword [ebp + 8]
push 0
mov eax, dword [eax]
mov edx, dword [eax + 0x40]
inc edx
mov dword [eax + 0x40], edx
mov edx, dword [ebp - 4]
mov eax, dword [esi]
push edx
push ecx
push 0xffffffffffffffff
push edi
push eax
call fcn.00517bc0
mov ecx, dword [ebp + 8]
mov ebx, eax
push edi
mov eax, dword [ecx]
dec dword [eax + 0x40]
call fcn.004e1dc0
add esp, 0x1c
test ebx, ebx
je 0x579f07
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x579f07
mov edx, dword [esi]
push edx
call fcn.00549820
push eax
push 0x708b18
call fcn.004e3af0
add esp, 0xc
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
mov dword [ecx], eax
call fcn.004f56c0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret