Function at 0x5b236f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5c51004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], edi
lea ecx, [edi + 7]
mov dword [ebp - 0x38], eax
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x40], ecx
cmp dword [eax + edi*4 + 0x1c], ebx
jne 0x5b238bf
mov esi, dword [eax]
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
cmp edi, 0xa
ja case.0x5b2378d.5
movzx eax, byte [edi + 0x5b238fc]
jmp dword [eax*4 + 0x5b238e8]
push dword [esi + 0x24]
push dword [esi + 0x34]
push str.SELECT__s_FROM__s_AS_T
jmp 0x5b2383d
mov eax, dword [esi + 0x28]
push eax
push eax
push eax
push dword [esi + 0x24]
push dword [esi + 0x34]
push dword [ebp + edi*4 - 0x30]
call sym.SQLite.Interop.dll_SI5ea70b9767a9e9ce
add esp, 0x18
jmp 0x5b23845
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x34]
push str.SELECT__s_FROM__s_T_WHERE_T._Q_
call sym.SQLite.Interop.dll_SI5ea70b9767a9e9ce
add esp, 0x10
jmp 0x5b23845
mov ebx, dword [esi + 0xc]
inc ebx
lea eax, [ebx*2 + 1]
cdq
push edx
push eax
call sym.SQLite.Interop.dll_SI85018aaa81082789
mov edi, eax
add esp, 8
test edi, edi
je 0x5b2384b
xor eax, eax
test ebx, ebx
jle 0x5b2380b
nop dword [eax + eax]
mov word [edi + eax*2], 0x2c3f
inc eax
cmp eax, ebx
jl 0x5b23800
mov byte [edi + eax*2 - 1], 0
mov eax, dword [ebp - 0x34]
push edi
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + eax*4 - 0x30]
call sym.SQLite.Interop.dll_SI5ea70b9767a9e9ce
push edi
mov ebx, eax
call sym.SQLite.Interop.dll_SI9edfb98001bcad06
mov edi, dword [ebp - 0x34]
add esp, 0x14
jmp 0x5b23847
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + edi*4 - 0x30]
call sym.SQLite.Interop.dll_SI5ea70b9767a9e9ce
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x5b23852
mov ebx, 7
jmp 0x5b238bf
mov ecx, dword [ebp - 0x38]
mov edx, ebx
push 0
mov eax, dword [ecx]
inc dword [eax + 0x40]
lea eax, [ecx + 0x1c]
mov ecx, dword [esi]
lea eax, [eax + edi*4]
push eax
xor eax, eax
cmp edi, 2
push 0
setg al
lea eax, [eax*4 + 0x81]
push eax
push 0xffffffffffffffff
call fcn.05bb1a30
mov ecx, dword [ebp - 0x38]
add esp, 0x14
mov dword [ebp - 0x34], eax
mov ecx, dword [ecx]
push ebx
dec dword [ecx + 0x40]
call sym.SQLite.Interop.dll_SI9edfb98001bcad06
mov ebx, dword [ebp - 0x34]
add esp, 4
test ebx, ebx
je 0x5b238bf
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x5b238bf
push dword [esi]
call fcn.05b7c3d0
add esp, 4
push eax
push 0x5c38c48
call sym.SQLite.Interop.dll_SI5ea70b9767a9e9ce
add esp, 8
mov dword [edi], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
mov eax, dword [eax]
push eax
mov dword [ecx], eax
call fcn.05bf3e00
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.05b011bc
mov esp, ebp
pop ebp
ret