Function at 0x10127db0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x1030f644]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
lea eax, [edx + 0xe]
push edi
xor edi, edi
mov dword [ebp - 0xc], ecx
lea eax, [esi + eax*4]
mov dword [ebp - 0xb8], str.DELETE_FROM__Q._q_content_WHERE_rowid___
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov dword [ebp - 0xb4], str.SELECT_NOT_EXISTS_SELECT_docid_FROM__Q._q_content_WHERE_rowid___
mov dword [ebp - 0xb0], str.DELETE_FROM__Q._q_content
mov dword [ebp - 0xac], str.DELETE_FROM__Q._q_segments
mov dword [ebp - 0xa8], str.DELETE_FROM__Q._q_segdir
mov dword [ebp - 0xa4], str.DELETE_FROM__Q._q_docsize
mov dword [ebp - 0xa0], str.DELETE_FROM__Q._q_stat
mov dword [ebp - 0x9c], str.SELECT__s_WHERE_rowid_
mov dword [ebp - 0x98], str.SELECT__SELECT_max_idx__FROM__Q._q_segdir_WHERE_level______1
mov dword [ebp - 0x94], str.REPLACE_INTO__Q._q_segments_blockid__block__VALUES______
mov dword [ebp - 0x90], str.SELECT_coalesce__SELECT_max_blockid__FROM__Q._q_segments___1__1_
mov dword [ebp - 0x8c], str.REPLACE_INTO__Q._q_segdir_VALUES_____________
mov dword [ebp - 0x88], str.SELECT_idx__start_block__leaves_end_block__end_block__root_FROM__Q._q_segdir_WHERE_level____ORDER_BY_idx_ASC
mov dword [ebp - 0x84], str.SELECT_idx__start_block__leaves_end_block__end_block__root_FROM__Q._q_segdir_WHERE_level_BETWEEN___AND__ORDER_BY_level_DESC__idx_ASC
mov dword [ebp - 0x80], str.SELECT_count___FROM__Q._q_segdir_WHERE_level___
mov dword [ebp - 0x7c], str.SELECT_max_level__FROM__Q._q_segdir_WHERE_level_BETWEEN___AND__
mov dword [ebp - 0x78], str.DELETE_FROM__Q._q_segdir_WHERE_level___
mov dword [ebp - 0x74], str.DELETE_FROM__Q._q_segments_WHERE_blockid_BETWEEN___AND__
mov dword [ebp - 0x70], str.INSERT_INTO__Q._q_content_VALUES__s_
mov dword [ebp - 0x6c], str.DELETE_FROM__Q._q_docsize_WHERE_docid___
mov dword [ebp - 0x68], str.REPLACE_INTO__Q._q_docsize_VALUES_____
mov dword [ebp - 0x64], str.SELECT_size_FROM__Q._q_docsize_WHERE_docid_
mov dword [ebp - 0x60], str.SELECT_value_FROM__Q._q_stat_WHERE_id_
mov dword [ebp - 0x5c], str.REPLACE_INTO__Q._q_stat_VALUES_____
mov dword [ebp - 0x58], 0x102e39fc
mov dword [ebp - 0x54], 0x102e39fc
mov dword [ebp - 0x50], str.DELETE_FROM__Q._q_segdir_WHERE_level_BETWEEN___AND__
mov dword [ebp - 0x4c], str.SELECT___UNION_SELECT_level____1024_____FROM__Q._q_segdir
mov dword [ebp - 0x48], str.SELECT_level__count___AS_cnt_FROM__Q._q_segdir___GROUP_BY_level_HAVING_cnt____ORDER_BY__level____1024__ASC_LIMIT_1
mov dword [ebp - 0x44], str.SELECT_2__total_1__leaves_end_block___start_block____FROM__Q._q_segdir_WHERE_level____AND_idx____
mov dword [ebp - 0x40], str.DELETE_FROM__Q._q_segdir_WHERE_level____AND_idx___
mov dword [ebp - 0x3c], str.UPDATE__Q._q_segdir_SET_idx____WHERE_level__AND_idx_
mov dword [ebp - 0x38], str.SELECT_idx__start_block__leaves_end_block__end_block__root_FROM__Q._q_segdir_WHERE_level____AND_idx___
mov dword [ebp - 0x34], str.UPDATE__Q._q_segdir_SET_start_block_____root___WHERE_level____AND_idx___
mov dword [ebp - 0x30], str.SELECT_1_FROM__Q._q_segments_WHERE_blockid__AND_block_IS_NULL
mov dword [ebp - 0x2c], str.SELECT_idx_FROM__Q._q_segdir_WHERE_level__ORDER_BY_1_ASC
mov dword [ebp - 0x28], str.SELECT_max__level____1024___FROM__Q._q_segdir
mov dword [ebp - 0x24], str.SELECT_level__idx__end_block_FROM__Q._q_segdir_WHERE_level_BETWEEN___AND___ORDER_BY_level_DESC__idx_ASC
mov dword [ebp - 0x20], str.UPDATE_OR_FAIL__Q._q_segdir_SET_level_1_idx__WHERE_level__AND_idx_
mov dword [ebp - 0x1c], str.UPDATE_OR_FAIL__Q._q_segdir_SET_level__WHERE_level_1
mov dword [ebp - 8], eax
test eax, eax
jne 0x10127fbe
mov eax, dword [ebp + edx*4 - 0xb8]
cmp edx, 0x12
jne 0x10127f51
push dword [esi + 0xe0]
push dword [esi + 0x14]
push dword [esi + 0x10]
push eax
call sym.BasicBusinessConfigCenter.dll_sqlite3_mprintf
add esp, 0x10
jmp 0x10127f7d
cmp edx, 7
jne 0x10127f6e
push dword [esi + 0xdc]
push eax
call sym.BasicBusinessConfigCenter.dll_sqlite3_mprintf
mov ebx, eax
add esp, 8
mov eax, 0x81
jmp 0x10127f84
push dword [esi + 0x14]
push dword [esi + 0x10]
push eax
call sym.BasicBusinessConfigCenter.dll_sqlite3_mprintf
add esp, 0xc
mov ebx, eax
mov eax, 0x85
test ebx, ebx
jne 0x10127f90
mov eax, dword [ebp - 8]
lea edi, [ebx + 7]
jmp 0x10127fbb
push 0
lea ecx, [ebp - 8]
mov edx, ebx
push ecx
mov ecx, dword [esi + 0xc]
push 0
push eax
push 0xffffffffffffffff
call fcn.100f0b70
add esp, 0x14
mov edi, eax
push ebx
call sym.BasicBusinessConfigCenter.dll_sqlite3_free
mov ecx, dword [ebp - 0x14]
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x10127ffe
test eax, eax
je 0x10127fcf
movsx ebx, word [eax + 0x10]
jmp 0x10127fd1
xor ebx, ebx
xor ecx, ecx
test edi, edi
jne 0x10127ffb
cmp ecx, ebx
jge 0x10127ffb
push dword [edx + ecx*4]
lea esi, [ecx + 1]
push esi
push eax
call sym.BasicBusinessConfigCenter.dll_sqlite3_bind_value
mov edi, eax
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, esi
test edi, edi
jne 0x10127ffb
mov edx, dword [ebp - 0x10]
jmp 0x10127fd7
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101afab5
mov esp, ebp
pop ebp
ret