Function at 0x4abbe0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x570400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x58], edi
cmp byte [ebx + 0x55], 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x14], 1
jne 0x4abc78
push 0
push 0x28
mov ecx, ebx
call fcn.004190c0
mov esi, eax
add esp, 8
test esi, esi
je 0x4abc53
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x566434]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x566444]
movq qword [esi + 0x20], xmm0
mov edx, dword [edi]
test edx, edx
je 0x4abc60
mov ecx, ebx
call fcn.00418c30
mov dword [edi], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054507b
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xbc], 1
jle 0x4abccb
push 0
push 0x2b
mov ecx, ebx
call fcn.004190c0
mov esi, eax
add esp, 8
test esi, esi
je 0x4abc53
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x56645c]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x56646c]
movq qword [esi + 0x20], xmm0
mov ax, word [0x566474]
mov word [esi + 0x28], ax
mov al, byte [0x566476]
mov byte [esi + 0x2a], al
jmp 0x4abc53
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x64], eax
test esi, esi
je 0x4abd70
movzx ecx, word [esi + 0x10]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x55efd0], 3
je 0x4abd1d
push 0
push 0x12
mov ecx, ebx
call fcn.004190c0
mov esi, eax
add esp, 8
test esi, esi
je 0x4abc53
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [esi], xmm0
mov cx, word [0x566488]
mov word [esi + 0x10], cx
jmp 0x4abc53
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x4abd42
cmp byte [esi + 0x12], 1
jne 0x4abd42
mov ecx, dword [ebx + 0x3c]
mov edx, dword [esi + 8]
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x4abd75
test cl, 1
je 0x4abd57
mov ecx, dword [ebx + 0x3c]
xor edx, edx
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x4abd75
mov dl, 1
mov ecx, esi
call fcn.004414d0
mov ecx, dword [ebx + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x4abd75
mov edx, 0x5590e3
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x24]
mov dword [ebp - 0x6c], ecx
mov cl, byte [ebx + 0x5e]
mov edi, dword [ebx + 0x68]
mov byte [ebp - 0x5d], cl
mov ecx, dword [ebp - 0x6c]
and ecx, 0xefffafff
mov dword [ebp - 0x74], eax
or ecx, 0x201
mov dword [ebp - 0x78], esi
mov dword [ebx + 0x20], ecx
or eax, 6
mov ecx, dword [ebp - 0x4c]
and esi, 0xfffffffe
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x10]
shl ecx, 4
mov dword [ebx + 0x24], esi
mov byte [ebx + 0x5e], 0
mov dword [ebp - 0x7c], edi
mov esi, dword [eax + ecx]
mov edi, dword [ebx + 0x6c]
mov dword [ebp - 0x5c], esi
mov esi, dword [eax + ecx + 4]
mov dword [ebp - 0x80], edi
mov edi, dword [ebx + 0x70]
mov dword [ebp - 0x84], edi
mov eax, dword [esi + 4]
mov edi, dword [ebx + 0x74]
mov dword [ebp - 0x88], edi
mov edi, dword [ebp - 0x58]
mov eax, dword [eax]
mov dword [ebp - 0x54], ecx
cmp byte [eax + 0xc], 0
jne 0x4abdfe
cmp byte [eax + 0x10], 0
mov dword [ebp - 0xc], 0
je 0x4abe05
mov dword [ebp - 0xc], 1
mov eax, dword [ebx + 0x14]
push edx
push str.ATTACH__Q_AS_vacuum_db
push edi
push ebx
mov dword [ebp - 0x50], eax
call fcn.004ab9e0
mov edi, eax
add esp, 0x10
mov eax, dword [ebp - 0x64]
mov dword [ebx + 0x3c], eax
test edi, edi
jne 0x4ac47d
mov eax, dword [ebp - 0x50]
shl eax, 4
add eax, dword [ebx + 0x10]
cmp dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
mov edi, dword [eax + 4]
je 0x4abefa
mov eax, dword [edi + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [ebp - 0x18], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x4abee0
lea edx, [ebp - 0x18]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x4abe7b
cmp dword [ebp - 0x14], eax
jl 0x4abee0
jg 0x4abe7b
cmp dword [ebp - 0x18], eax
jbe 0x4abee0
push 0
push 0x1b
mov ecx, ebx
mov edi, 1
call fcn.004190c0
mov edx, eax
add esp, 8
mov dword [ebp - 0x50], edx
test edx, edx
je 0x4abec1
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x5664b4]
movq qword [edx + 0x10], xmm0
mov cx, word [0x5664bc]
mov word [edx + 0x18], cx
mov al, byte [0x5664be]
mov byte [edx + 0x1a], al
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
test ecx, ecx
je 0x4abed9
mov edx, ecx
mov ecx, ebx
call fcn.00418c30
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x50]
mov dword [eax], edx
jmp 0x4ac47d
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x54]
or dword [ebx + 0x18], 8
movzx ecx, byte [ecx + eax + 8]
mov eax, dword [ebx + 0x20]
and eax, 0x38
or ecx, eax
mov dword [ebp - 0x14], ecx
cmp byte [esi + 9], 0
je 0x4abf10
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4abf10
mov ecx, esi
call fcn.00430df0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x24]
sub ecx, dword [eax + 0x28]
cmp byte [esi + 9], 0
movzx edx, byte [eax + 0x16]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x64], ecx
je 0x4abf3c
sub dword [esi + 0xc], 1
jne 0x4abf3c
mov ecx, esi
call fcn.00430dd0
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebx + 0x10]
cmp edx, ecx
cmovg ecx, edx
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x4c]
add ecx, ecx
mov edx, dword [eax + ecx*8 + 0xc]
mov ecx, edi
mov edx, dword [edx + 0x50]
call fcn.00433d40
xor edx, edx
mov ecx, esi
call fcn.00433de0
mov edx, eax
mov ecx, edi
call fcn.00433de0
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0x54], eax
je 0x4abf88
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4abf88
mov ecx, edi
call fcn.00430df0
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x14]
or edx, 0x20
mov ecx, dword [ecx]
call fcn.00429620
cmp byte [edi + 9], 0
je 0x4abfab
sub dword [edi + 0xc], 1
jne 0x4abfab
mov ecx, edi
call fcn.00430dd0
mov edx, dword [ebp - 0x58]
mov ecx, ebx
push str.BEGIN
call fcn.004ab7f0
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4ac47a
mov ecx, dword [ebp - 0x68]
xor edx, edx
test ecx, ecx
mov eax, 2
cmove edx, eax
cmp byte [esi + 9], 0
jne 0x4abff0
mov al, byte [esi + 8]
test al, al
je 0x4abff0
cmp al, 1
jne 0x4ac06d
test ecx, ecx
jne 0x4ac00a
push 0
mov ecx, esi
call fcn.00434510
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4ac47a
mov ecx, dword [ebp - 0x68]
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x4ac01c
test ecx, ecx
jne 0x4ac01c
mov dword [ebx + 0x64], ecx
mov eax, dword [esi + 4]
mov ecx, edi
push 0
push dword [ebp - 0x64]
mov edx, dword [eax + 0x24]
call fcn.00433ed0
add esp, 8
test eax, eax
jne 0x4ac473
cmp dword [ebp - 0xc], eax
jne 0x4ac057
mov edx, dword [ebx + 0x64]
mov ecx, edi
push eax
push dword [ebp - 0x64]
call fcn.00433ed0
add esp, 8
test eax, eax
jne 0x4ac473
cmp byte [ebx + 0x57], 0
jne 0x4ac473
mov al, byte [ebx + 0x5a]
test al, al
js 0x4ac09a
movsx edx, al
jmp 0x4ac0e4
test ecx, ecx
jne 0x4ac00a
mov eax, dword [esi]
mov edx, dword [eax + 0x1f8]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
cmp edx, dword [ecx + 0x68]
jle 0x4ac093
cmp byte [ecx + 6], 0
je 0x4ac093
call fcn.0042c020
jmp 0x4abffc
xor eax, eax
jmp 0x4abffc
cmp byte [esi + 9], 0
je 0x4ac0b0
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4ac0b0
mov ecx, esi
call fcn.00430df0
mov ecx, dword [esi + 4]
cmp byte [ecx + 0x11], 0
jne 0x4ac0c2
mov dword [ebp - 0xc], 0
jmp 0x4ac0ce
xor eax, eax
cmp byte [ecx + 0x12], al
setne al
inc eax
mov dword [ebp - 0xc], eax
cmp byte [esi + 9], 0
je 0x4ac0e1
sub dword [esi + 0xc], 1
jne 0x4ac0e1
mov ecx, esi
call fcn.00430dd0
mov edx, dword [ebp - 0xc]
mov ecx, edi
call fcn.00434010
push dword [ebp - 0x5c]
mov eax, dword [ebp - 0x50]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 0x58]
mov byte [ebx + 0xb0], al
push ebx
call fcn.004ab9e0
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4ac47a
push dword [ebp - 0x5c]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [ebp - 0x58]
push ebx
call fcn.004ab9e0
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4ac47a
push dword [ebp - 0x5c]
mov byte [ebx + 0xb0], 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 - 0x58]
push ebx
call fcn.004ab9e0
and dword [ebx + 0x18], 0xfffffffb
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jne 0x4ac47a
push dword [ebp - 0x5c]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp - 0x58]
push ebx
call fcn.004ab9e0
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4ac47a
mov dword [ebp - 0x5c], eax
nop
cmp byte [esi + 9], 0
movzx ecx, byte [eax + 0x55a2d4]
mov eax, dword [esi + 4]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
je 0x4ac1ac
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4ac1ac
mov ecx, esi
call fcn.00430df0
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
cmp ecx, 0xf
jne 0x4ac1bb
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
add eax, dword [esi + 0x14]
jmp 0x4ac1c7
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + ecx*4 + 0x24]
bswap eax
cmp byte [esi + 9], 0
mov dword [ebp - 0x50], eax
je 0x4ac1dd
add dword [esi + 0xc], 0xffffffff
jne 0x4ac1dd
mov ecx, esi
call fcn.00430dd0
mov ecx, dword [ebp - 0x5c]
movzx eax, byte [ecx + 0x55a2d5]
add eax, dword [ebp - 0x50]
movzx edx, byte [ecx + 0x55a2d4]
mov ecx, edi
push eax
call fcn.0043d8c0
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4ac47a
mov eax, dword [ebp - 0x5c]
add eax, 2
mov dword [ebp - 0x5c], eax
cmp eax, 0xa
jl 0x4ac180
cmp dword [ebp - 0x68], 0
jne 0x4ac36b
cmp byte [esi + 9], 0
je 0x4ac239
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4ac239
mov ecx, esi
call fcn.00430df0
cmp byte [edi + 9], 0
je 0x4ac24f
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4ac24f
mov ecx, edi
call fcn.00430df0
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x54], eax
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x4ac2a4
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x24]
cdq
push edx
push eax
push 0
push ecx
call fcn.00545b10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x50]
push 0xb
push dword [ebp - 0x54]
mov dword [ebp - 0xc], edx
mov eax, dword [eax + 0x28]
call eax
xor ecx, ecx
add esp, 0xc
cmp eax, 0xc
cmovne ecx, eax
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jne 0x4ac33b
mov eax, dword [edi]
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
push bind
push eax
mov dword [ebp - 0x48], 0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], 1
call fcn.0043f3e0
lea eax, [ebp - 0x48]
push eax
call fcn.0043fad0
add esp, 0xc
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4ac305
mov eax, dword [esi + 4]
mov ecx, 0xfffd
and word [eax + 0x18], cx
jmp 0x4ac33b
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xc], 0
jne 0x4ac33b
inc dword [ecx + 0x6c]
mov eax, dword [ecx + 0x60]
test eax, eax
je 0x4ac32e
nop dword [eax]
mov dword [eax + 0x10], 1
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x4ac320
mov ecx, dword [ecx + 0xe4]
xor edx, edx
call fcn.00425c70
cmp byte [edi + 9], 0
je 0x4ac34e
sub dword [edi + 0xc], 1
jne 0x4ac34e
mov ecx, edi
call fcn.00430dd0
cmp byte [esi + 9], 0
je 0x4ac361
sub dword [esi + 0xc], 1
jne 0x4ac361
mov ecx, esi
call fcn.00430dd0
cmp dword [ebp - 0x4c], 0
jne 0x4ac47a
cmp byte [edi + 9], 0
je 0x4ac381
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4ac381
mov ecx, edi
call fcn.00430df0
xor edx, edx
mov ecx, edi
call fcn.004355e0
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4ac39d
xor edx, edx
mov ecx, edi
call fcn.004357e0
mov dword [ebp - 0x4c], eax
cmp byte [edi + 9], 0
je 0x4ac3b0
sub dword [edi + 0xc], 1
jne 0x4ac3b0
mov ecx, edi
call fcn.00430dd0
cmp dword [ebp - 0x4c], 0
jne 0x4ac47a
cmp dword [ebp - 0x68], 0
jne 0x4ac47a
cmp byte [edi + 9], 0
je 0x4ac3da
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4ac3da
mov ecx, edi
call fcn.00430df0
mov ecx, dword [edi + 4]
cmp byte [ecx + 0x11], 0
jne 0x4ac3ec
mov dword [ebp - 0x50], 0
jmp 0x4ac3f8
xor eax, eax
cmp byte [ecx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x50], eax
cmp byte [edi + 9], 0
je 0x4ac40b
sub dword [edi + 0xc], 1
jne 0x4ac40b
mov ecx, edi
call fcn.00430dd0
mov edx, dword [ebp - 0x50]
mov ecx, esi
call fcn.00434010
cmp byte [edi + 9], 0
je 0x4ac42b
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4ac42b
mov ecx, edi
call fcn.00430df0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x24]
sub ecx, dword [eax + 0x28]
cmp byte [edi + 9], 0
movzx edx, byte [eax + 0x16]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
je 0x4ac457
sub dword [edi + 0xc], 1
jne 0x4ac457
mov ecx, edi
call fcn.00430dd0
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov eax, dword [edi + 4]
cmp edx, ecx
push 1
cmovg ecx, edx
push ecx
mov edx, dword [eax + 0x24]
mov ecx, esi
call fcn.00433ed0
add esp, 8
mov edi, eax
jmp 0x4ac47d
mov edi, 7
jmp 0x4ac47d
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x74]
or edx, 0xffffffff
mov dword [ebx + 0x18], eax
mov ecx, esi
mov eax, dword [ebp - 0x6c]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x78]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebx + 0x68], eax
mov eax, dword [ebp - 0x80]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebx + 0x70], eax
mov eax, dword [ebp - 0x88]
mov dword [ebx + 0x74], eax
mov al, byte [ebp - 0x5d]
push 1
push 0
mov byte [ebx + 0xb0], 0
mov byte [ebx + 0x5e], al
call fcn.00433ed0
mov esi, dword [ebp - 0x70]
add esp, 8
mov byte [ebx + 0x55], 1
test esi, esi
je 0x4ac4ec
mov ecx, dword [esi + 4]
call fcn.00433b30
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, ebx
call fcn.0046efa0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054507b
mov esp, ebp
pop ebp
ret