Function at 0x553e60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov dword [ebp - 0xa0], str.DELETE_FROM__Q._q_content_WHERE_rowid___
mov dword [ebp - 0x9c], str.SELECT_NOT_EXISTS_SELECT_docid_FROM__Q._q_content_WHERE_rowid___
mov dword [ebp - 0x98], str.DELETE_FROM__Q._q_content
mov dword [ebp - 0x94], str.DELETE_FROM__Q._q_segments
mov dword [ebp - 0x90], str.DELETE_FROM__Q._q_segdir
mov dword [ebp - 0x8c], str.DELETE_FROM__Q._q_docsize
mov dword [ebp - 0x88], str.DELETE_FROM__Q._q_stat
mov dword [ebp - 0x84], str.SELECT__s_WHERE_rowid_
mov dword [ebp - 0x80], str.SELECT__SELECT_max_idx__FROM__Q._q_segdir_WHERE_level______1
mov dword [ebp - 0x7c], str.REPLACE_INTO__Q._q_segments_blockid__block__VALUES______
mov dword [ebp - 0x78], str.SELECT_coalesce__SELECT_max_blockid__FROM__Q._q_segments___1__1_
mov dword [ebp - 0x74], str.REPLACE_INTO__Q._q_segdir_VALUES_____________
mov dword [ebp - 0x70], str.SELECT_idx__start_block__leaves_end_block__end_block__root_FROM__Q._q_segdir_WHERE_level____ORDER_BY_idx_ASC
mov dword [ebp - 0x6c], 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 - 0x68], str.SELECT_count___FROM__Q._q_segdir_WHERE_level___
mov dword [ebp - 0x64], str.SELECT_max_level__FROM__Q._q_segdir_WHERE_level_BETWEEN___AND__
mov dword [ebp - 0x60], str.DELETE_FROM__Q._q_segdir_WHERE_level___
mov dword [ebp - 0x5c], str.DELETE_FROM__Q._q_segments_WHERE_blockid_BETWEEN___AND__
mov dword [ebp - 0x58], str.INSERT_INTO__Q._q_content_VALUES__s_
mov dword [ebp - 0x54], str.DELETE_FROM__Q._q_docsize_WHERE_docid___
mov dword [ebp - 0x50], str.REPLACE_INTO__Q._q_docsize_VALUES_____
mov dword [ebp - 0x4c], str.SELECT_size_FROM__Q._q_docsize_WHERE_docid_
mov dword [ebp - 0x48], str.SELECT_value_FROM__Q._q_stat_WHERE_id_
mov dword [ebp - 0x44], str.REPLACE_INTO__Q._q_stat_VALUES_____
mov dword [ebp - 0x40], 0x5f85ac
mov dword [ebp - 0x3c], 0x5f85ae
mov dword [ebp - 0x38], str.DELETE_FROM__Q._q_segdir_WHERE_level_BETWEEN___AND__
mov dword [ebp - 0x34], str.SELECT_DISTINCT_level____1024_____FROM__Q._q_segdir
mov dword [ebp - 0x30], str.SELECT_level_FROM__Q._q_segdir_GROUP_BY_level_HAVING_count______ORDER_BY__level____1024__ASC_LIMIT_1
mov dword [ebp - 0x2c], str.SELECT_2__total_1__leaves_end_block___start_block____FROM__Q._q_segdir_WHERE_level____AND_idx____
mov dword [ebp - 0x28], str.DELETE_FROM__Q._q_segdir_WHERE_level____AND_idx___
mov dword [ebp - 0x24], str.UPDATE__Q._q_segdir_SET_idx____WHERE_level__AND_idx_
mov dword [ebp - 0x20], str.SELECT_idx__start_block__leaves_end_block__end_block__root_FROM__Q._q_segdir_WHERE_level____AND_idx___
mov dword [ebp - 0x1c], str.UPDATE__Q._q_segdir_SET_start_block_____root___WHERE_level____AND_idx___
mov dword [ebp - 0x18], str.SELECT_1_FROM__Q._q_segments_WHERE_blockid__AND_block_IS_NULL
mov dword [ebp - 0x14], str.SELECT_idx_FROM__Q._q_segdir_WHERE_level__ORDER_BY_1_ASC
mov dword [ebp - 0x10], str.SELECT_max__level____1024___FROM__Q._q_segdir
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x34]
mov dword [ebp - 0xa4], edx
cmp dword [ebp - 0xa4], 0
jne 0x554088
cmp dword [ebp + 0xc], 0x12
jne 0x553fe1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xcc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + eax*4 - 0xa0]
push ecx
call fcn.00513550
add esp, 0x10
mov dword [ebp - 0xa8], eax
jmp 0x554033
cmp dword [ebp + 0xc], 7
jne 0x55400c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + ecx*4 - 0xa0]
push edx
call fcn.00513550
add esp, 8
mov dword [ebp - 0xa8], eax
jmp 0x554033
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + ecx*4 - 0xa0]
push edx
call fcn.00513550
add esp, 0xc
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
jne 0x554045
mov dword [ebp - 4], 7
jmp 0x554088
push 0
lea eax, [ebp - 0xa4]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call fcn.00553a80
add esp, 0x14
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xa8]
push ecx
call fcn.004fee60
add esp, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xa4]
mov dword [eax + edx*4 + 0x34], ecx
cmp dword [ebp + 0x14], 0
je 0x5540fd
mov edx, dword [ebp - 0xa4]
push edx
call fcn.004f3a50
add esp, 4
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 0
jmp 0x5540be
mov eax, dword [ebp - 0xac]
add eax, 1
mov dword [ebp - 0xac], eax
cmp dword [ebp - 4], 0
jne 0x5540fd
mov ecx, dword [ebp - 0xac]
cmp ecx, dword [ebp - 0xb0]
jge 0x5540fd
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 0xac]
add edx, 1
push edx
mov eax, dword [ebp - 0xa4]
push eax
call fcn.0053e5e0
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x5540af
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0xa4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret