Function at 0x56bbc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x20], 0
cmp byte [esi + 0x51], 0
jne 0x56bc7b
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x56bc3b
cmp dword [esi + 0x200], 0
je 0x56bbfa
push ecx
push esi
call fcn.00535fb0
add esp, 8
jmp 0x56bc3b
cmp ecx, dword [esi + 0x154]
jae 0x56bc32
cmp ecx, dword [esi + 0x14c]
jb 0x56bc1a
mov eax, dword [esi + 0x148]
mov dword [ecx], eax
mov dword [esi + 0x148], ecx
jmp 0x56bc3b
cmp ecx, dword [esi + 0x150]
jb 0x56bc32
mov eax, dword [esi + 0x140]
mov dword [ecx], eax
mov dword [esi + 0x140], ecx
jmp 0x56bc3b
push ecx
call fcn.0050dbb0
add esp, 4
push 0
push 0x28
push esi
call fcn.00550eb0
add esp, 0xc
test eax, eax
je 0x56bc6e
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x673f34]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [0x673f44]
movq qword [eax + 0x20], xmm0
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xb4], 1
jle 0x56bd3b
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x56bce7
cmp dword [esi + 0x200], 0
je 0x56bca6
push ecx
push esi
call fcn.00535fb0
add esp, 8
jmp 0x56bce7
cmp ecx, dword [esi + 0x154]
jae 0x56bcde
cmp ecx, dword [esi + 0x14c]
jb 0x56bcc6
mov eax, dword [esi + 0x148]
mov dword [ecx], eax
mov dword [esi + 0x148], ecx
jmp 0x56bce7
cmp ecx, dword [esi + 0x150]
jb 0x56bcde
mov eax, dword [esi + 0x140]
mov dword [ecx], eax
mov dword [esi + 0x140], ecx
jmp 0x56bce7
push ecx
call fcn.0050dbb0
add esp, 4
push 0
push 0x2b
push esi
call fcn.00550eb0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x56bd2e
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x673f5c]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x673f6c]
movq qword [ecx + 0x20], xmm0
mov ax, word [0x673f74]
mov word [ecx + 0x28], ax
mov al, byte [0x673f76]
mov byte [ecx + 0x2a], al
mov dword [edi], ecx
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [esi + 0x3c]
mov dword [ebp - 0x10], ebx
test edx, edx
je 0x56be49
movzx ecx, word [edx + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x66b1d8], 3
je 0x56bdf6
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x56bdc2
cmp dword [esi + 0x200], 0
je 0x56bd81
push ecx
push esi
call fcn.00535fb0
add esp, 8
jmp 0x56bdc2
cmp ecx, dword [esi + 0x154]
jae 0x56bdb9
cmp ecx, dword [esi + 0x14c]
jb 0x56bda1
mov eax, dword [esi + 0x148]
mov dword [ecx], eax
mov dword [esi + 0x148], ecx
jmp 0x56bdc2
cmp ecx, dword [esi + 0x150]
jb 0x56bdb9
mov eax, dword [esi + 0x140]
mov dword [ecx], eax
mov dword [esi + 0x140], ecx
jmp 0x56bdc2
push ecx
call fcn.0050dbb0
add esp, 4
push 0
push 0x12
push esi
call fcn.00550eb0
add esp, 0xc
test eax, eax
je 0x56bde8
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [eax], xmm0
mov cx, word [0x673f88]
mov word [eax + 0x10], cx
pop ebx
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x56be1a
cmp byte [edx + 0xa], 1
jne 0x56be1a
mov edx, dword [edx + 0x10]
mov eax, ebx
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x56be4e
test cl, 1
je 0x56be2e
mov eax, ebx
xor edx, edx
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x56be4e
push 1
push edx
call fcn.00591290
mov edx, eax
add esp, 8
mov eax, dword [esi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x56be4e
mov edx, 0x68e2d6
mov ebx, dword [esi + 0x24]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edi, dword [esi + 0x68]
mov dword [ebp - 0x1c], ebx
mov bl, byte [esi + 0x5a]
mov byte [ebp - 2], bl
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
and ebx, 0xfffffffe
mov dword [esi + 0x24], ebx
or eax, 6
mov ebx, dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x28], ecx
and ecx, 0xefffafff
shl ebx, 4
or ecx, 0x201
mov dword [esi + 0x20], ecx
mov byte [esi + 0x5a], 0
mov dword [ebp - 0x2c], edi
mov edi, dword [esi + 0x6c]
mov ecx, dword [ebx + eax]
mov dword [ebp - 0x30], edi
mov edi, dword [ebx + eax + 4]
push edx
push str.ATTACH__Q_AS_vacuum_db
push dword [ebp + 8]
mov eax, dword [edi + 4]
push esi
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0xc], ecx
mov eax, dword [eax]
mov al, byte [eax + 0xc]
mov byte [ebp - 1], al
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
call fcn.005298f0
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x3c], eax
test ebx, ebx
jne 0x56c23e
mov eax, dword [ebp - 0x18]
shl eax, 4
add eax, dword [esi + 0x10]
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x20], eax
mov ebx, dword [eax + 4]
mov dword [ebp - 8], ebx
je 0x56bfe6
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [ebp - 0x14], xmm0
cmp dword [eax], 0
je 0x56bfe2
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00563700
add esp, 8
test eax, eax
jne 0x56bf37
cmp dword [ebp - 0x10], eax
jl 0x56bfe2
jg 0x56bf37
cmp dword [ebp - 0x14], eax
jbe 0x56bfe2
mov eax, dword [ebp + 8]
mov ebx, 1
mov ecx, dword [eax]
test ecx, ecx
je 0x56bf9b
cmp dword [esi + 0x200], 0
je 0x56bf5a
push ecx
push esi
call fcn.00535fb0
add esp, 8
jmp 0x56bf9b
cmp ecx, dword [esi + 0x154]
jae 0x56bf92
cmp ecx, dword [esi + 0x14c]
jb 0x56bf7a
mov eax, dword [esi + 0x148]
mov dword [ecx], eax
mov dword [esi + 0x148], ecx
jmp 0x56bf9b
cmp ecx, dword [esi + 0x150]
jb 0x56bf92
mov eax, dword [esi + 0x140]
mov dword [ecx], eax
mov dword [esi + 0x140], ecx
jmp 0x56bf9b
push ecx
call fcn.0050dbb0
add esp, 4
push 0
push 0x1b
push esi
call fcn.00550eb0
mov edx, eax
add esp, 0xc
test edx, edx
je 0x56bfd8
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x673fb4]
movq qword [edx + 0x10], xmm0
mov cx, word [0x673fbc]
mov word [edx + 0x18], cx
mov al, byte [0x673fbe]
mov byte [edx + 0x1a], al
mov eax, dword [ebp + 8]
mov dword [eax], edx
jmp 0x56c23e
or dword [esi + 0x18], 8
push edi
call fcn.0054a660
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [edx + ecx + 0xc]
push dword [ecx + 0x50]
push ebx
call fcn.0054c460
push 0
push edi
call fcn.0054c6b0
push eax
push ebx
call fcn.0054c6b0
push 0x21
push ebx
call fcn.0054c5d0
push str.BEGIN
push dword [ebp + 8]
push esi
call fcn.005296b0
mov ebx, eax
add esp, 0x30
test ebx, ebx
jne 0x56c23e
cmp dword [ebp + 0x14], eax
mov ecx, 2
push eax
cmove eax, ecx
push eax
push edi
call fcn.00549660
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x56c23e
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
cmp byte [eax + 5], 5
jne 0x56c065
mov dword [esi + 0x60], ebx
mov ecx, dword [edi + 4]
mov ebx, dword [ebp - 8]
push 0
push dword [ebp - 0x10]
push dword [ecx + 0x24]
push ebx
call fcn.0054c4f0
add esp, 0x10
test eax, eax
jne 0x56c239
cmp byte [ebp - 1], al
jne 0x56c09e
push eax
push dword [ebp - 0x10]
push dword [esi + 0x60]
push ebx
call fcn.0054c4f0
add esp, 0x10
test eax, eax
jne 0x56c239
cmp byte [esi + 0x53], 0
jne 0x56c239
mov al, byte [esi + 0x56]
test al, al
js 0x56c0b4
movsx eax, al
jmp 0x56c0bd
push edi
call fcn.0054a5b0
add esp, 4
push eax
push ebx
call fcn.0054c3e0
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp + 8]
mov byte [esi + 0xa8], al
push esi
call fcn.005298f0
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x56c23e
push dword [ebp - 0xc]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [ebp + 8]
push esi
call fcn.005298f0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x56c23e
push dword [ebp - 0xc]
mov byte [esi + 0xa8], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [ebp + 8]
push esi
call fcn.005298f0
and dword [esi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x56c23e
push dword [ebp - 0xc]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp + 8]
push esi
call fcn.005298f0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x56c23e
mov dword [ebp - 0xc], eax
mov cl, byte [edi + 9]
movzx ebx, byte [eax + 0x66b2c0]
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], eax
test cl, cl
je 0x56c17e
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x56c17e
push edi
call fcn.005210a0
mov cl, byte [edi + 9]
add esp, 4
mov eax, dword [ebp - 0x18]
cmp ebx, 0xf
jne 0x56c18d
mov eax, dword [eax]
mov ebx, dword [eax + 0x64]
add ebx, dword [edi + 0x14]
jmp 0x56c199
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + ebx*4 + 0x24]
bswap ebx
test cl, cl
je 0x56c1ac
add dword [edi + 0xc], 0xffffffff
jne 0x56c1ac
push edi
call fcn.0058ece0
add esp, 4
mov ecx, dword [ebp - 0xc]
movzx eax, byte [ecx + 0x66b2c1]
add eax, ebx
push eax
movzx eax, byte [ecx + 0x66b2c0]
push eax
push dword [ebp - 8]
call fcn.0054ccd0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x56c23e
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
cmp eax, 0xa
jl 0x56c152
cmp dword [ebp + 0x14], ebx
jne 0x56c1fb
push dword [ebp - 8]
push edi
call fcn.00549dd0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x56c23e
push dword [ebp - 8]
call fcn.00549bf0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x56c23e
cmp dword [ebp + 0x14], eax
jne 0x56c23e
mov ebx, dword [ebp - 8]
push ebx
call fcn.0054a5b0
push eax
push edi
call fcn.0054c3e0
mov eax, dword [ebx + 4]
push 1
push dword [ebp - 0x10]
push dword [eax + 0x24]
push edi
call fcn.0054c4f0
add esp, 0x1c
mov ebx, eax
jmp 0x56c23e
mov ebx, 7
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x2c]
push 1
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 0x30]
push 0
mov dword [esi + 0x6c], eax
mov al, byte [ebp - 2]
push 0xffffffffffffffff
push edi
mov byte [esi + 0xa8], 0
mov byte [esi + 0x5a], al
call fcn.0054c4f0
mov edi, dword [ebp - 0x20]
add esp, 0x10
mov byte [esi + 0x51], 1
test edi, edi
je 0x56c29c
push dword [edi + 4]
call fcn.00549a40
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
push esi
call fcn.0056aab0
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret