Function at 0x4b54a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4fc040]
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 0x4b5538
push 0
push 0x28
mov ecx, ebx
call fcn.00427e60
mov esi, eax
add esp, 8
test esi, esi
je 0x4b5513
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x4ef11c]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x4ef12c]
movq qword [esi + 0x20], xmm0
mov edx, dword [edi]
test edx, edx
je 0x4b5520
mov ecx, ebx
call fcn.004279d0
mov dword [edi], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3214
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xbc], 1
jle 0x4b558b
push 0
push 0x2b
mov ecx, ebx
call fcn.00427e60
mov esi, eax
add esp, 8
test esi, esi
je 0x4b5513
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x4ef144]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x4ef154]
movq qword [esi + 0x20], xmm0
mov ax, word [0x4ef15c]
mov word [esi + 0x28], ax
mov al, byte [0x4ef15e]
mov byte [esi + 0x2a], al
jmp 0x4b5513
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x64], eax
test esi, esi
je 0x4b5630
movzx ecx, word [esi + 0x10]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x4f4f70], 3
je 0x4b55dd
push 0
push 0x12
mov ecx, ebx
call fcn.00427e60
mov esi, eax
add esp, 8
test esi, esi
je 0x4b5513
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [esi], xmm0
mov cx, word [0x4ef170]
mov word [esi + 0x10], cx
jmp 0x4b5513
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x4b5602
cmp byte [esi + 0x12], 1
jne 0x4b5602
mov ecx, dword [ebx + 0x3c]
mov edx, dword [esi + 8]
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x4b5635
test cl, 1
je 0x4b5617
mov ecx, dword [ebx + 0x3c]
xor edx, edx
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x4b5635
mov dl, 1
mov ecx, esi
call fcn.0044e6c0
mov ecx, dword [ebx + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x4b5635
mov edx, 0x4e76a1
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 0x4b56be
cmp byte [eax + 0x10], 0
mov dword [ebp - 0xc], 0
je 0x4b56c5
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.004b52b0
mov edi, eax
add esp, 0x10
mov eax, dword [ebp - 0x64]
mov dword [ebx + 0x3c], eax
test edi, edi
jne 0x4b5d3d
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 0x4b57ba
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 0x4b57a0
lea edx, [ebp - 0x18]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x4b573b
cmp dword [ebp - 0x14], eax
jl 0x4b57a0
jg 0x4b573b
cmp dword [ebp - 0x18], eax
jbe 0x4b57a0
push 0
push 0x1b
mov ecx, ebx
mov edi, 1
call fcn.00427e60
mov edx, eax
add esp, 8
mov dword [ebp - 0x50], edx
test edx, edx
je 0x4b5781
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x4ef19c]
movq qword [edx + 0x10], xmm0
mov cx, word [0x4ef1a4]
mov word [edx + 0x18], cx
mov al, byte [0x4ef1a6]
mov byte [edx + 0x1a], al
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
test ecx, ecx
je 0x4b5799
mov edx, ecx
mov ecx, ebx
call fcn.004279d0
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x50]
mov dword [eax], edx
jmp 0x4b5d3d
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 0x4b57d0
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4b57d0
mov ecx, esi
call fcn.0043e740
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 0x4b57fc
sub dword [esi + 0xc], 1
jne 0x4b57fc
mov ecx, esi
call fcn.0043e720
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.004415e0
xor edx, edx
mov ecx, esi
call fcn.00441680
mov edx, eax
mov ecx, edi
call fcn.00441680
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0x54], eax
je 0x4b5848
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4b5848
mov ecx, edi
call fcn.0043e740
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x14]
or edx, 0x20
mov ecx, dword [ecx]
call fcn.00437eb0
cmp byte [edi + 9], 0
je 0x4b586b
sub dword [edi + 0xc], 1
jne 0x4b586b
mov ecx, edi
call fcn.0043e720
mov edx, dword [ebp - 0x58]
mov ecx, ebx
push str.BEGIN
call fcn.004b50c0
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4b5d3a
mov ecx, dword [ebp - 0x68]
xor edx, edx
test ecx, ecx
mov eax, 2
cmove edx, eax
cmp byte [esi + 9], 0
jne 0x4b58b0
mov al, byte [esi + 8]
test al, al
je 0x4b58b0
cmp al, 1
jne 0x4b592d
test ecx, ecx
jne 0x4b58ca
push 0
mov ecx, esi
call fcn.00441db0
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4b5d3a
mov ecx, dword [ebp - 0x68]
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x4b58dc
test ecx, ecx
jne 0x4b58dc
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.00441770
add esp, 8
test eax, eax
jne 0x4b5d33
cmp dword [ebp - 0xc], eax
jne 0x4b5917
mov edx, dword [ebx + 0x64]
mov ecx, edi
push eax
push dword [ebp - 0x64]
call fcn.00441770
add esp, 8
test eax, eax
jne 0x4b5d33
cmp byte [ebx + 0x57], 0
jne 0x4b5d33
mov al, byte [ebx + 0x5a]
test al, al
js 0x4b595a
movsx edx, al
jmp 0x4b59a4
test ecx, ecx
jne 0x4b58ca
mov eax, dword [esi]
mov edx, dword [eax + 0x1f8]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
cmp edx, dword [ecx + 0x68]
jle 0x4b5953
cmp byte [ecx + 6], 0
je 0x4b5953
call fcn.0043aa10
jmp 0x4b58bc
xor eax, eax
jmp 0x4b58bc
cmp byte [esi + 9], 0
je 0x4b5970
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4b5970
mov ecx, esi
call fcn.0043e740
mov ecx, dword [esi + 4]
cmp byte [ecx + 0x11], 0
jne 0x4b5982
mov dword [ebp - 0xc], 0
jmp 0x4b598e
xor eax, eax
cmp byte [ecx + 0x12], al
setne al
inc eax
mov dword [ebp - 0xc], eax
cmp byte [esi + 9], 0
je 0x4b59a1
sub dword [esi + 0xc], 1
jne 0x4b59a1
mov ecx, esi
call fcn.0043e720
mov edx, dword [ebp - 0xc]
mov ecx, edi
call fcn.004418b0
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.004b52b0
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4b5d3a
push dword [ebp - 0x5c]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [ebp - 0x58]
push ebx
call fcn.004b52b0
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4b5d3a
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.004b52b0
and dword [ebx + 0x18], 0xfffffffb
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jne 0x4b5d3a
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.004b52b0
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4b5d3a
mov dword [ebp - 0x5c], eax
nop
cmp byte [esi + 9], 0
movzx ecx, byte [eax + 0x4f03a8]
mov eax, dword [esi + 4]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
je 0x4b5a6c
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4b5a6c
mov ecx, esi
call fcn.0043e740
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
cmp ecx, 0xf
jne 0x4b5a7b
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
add eax, dword [esi + 0x14]
jmp 0x4b5a87
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 0x4b5a9d
add dword [esi + 0xc], 0xffffffff
jne 0x4b5a9d
mov ecx, esi
call fcn.0043e720
mov ecx, dword [ebp - 0x5c]
movzx eax, byte [ecx + 0x4f03a9]
add eax, dword [ebp - 0x50]
movzx edx, byte [ecx + 0x4f03a8]
mov ecx, edi
push eax
call fcn.0044aba0
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4b5d3a
mov eax, dword [ebp - 0x5c]
add eax, 2
mov dword [ebp - 0x5c], eax
cmp eax, 0xa
jl 0x4b5a40
cmp dword [ebp - 0x68], 0
jne 0x4b5c2b
cmp byte [esi + 9], 0
je 0x4b5af9
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4b5af9
mov ecx, esi
call fcn.0043e740
cmp byte [edi + 9], 0
je 0x4b5b0f
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4b5b0f
mov ecx, edi
call fcn.0043e740
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 0x4b5b64
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.004e4360
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 0x4b5bfb
mov eax, dword [edi]
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
push 0x7fffffff
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.0044c5b0
lea eax, [ebp - 0x48]
push eax
call fcn.0044cc60
add esp, 0xc
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4b5bc5
mov eax, dword [esi + 4]
mov ecx, 0xfffd
and word [eax + 0x18], cx
jmp 0x4b5bfb
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xc], 0
jne 0x4b5bfb
inc dword [ecx + 0x6c]
mov eax, dword [ecx + 0x60]
test eax, eax
je 0x4b5bee
nop dword [eax]
mov dword [eax + 0x10], 1
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x4b5be0
mov ecx, dword [ecx + 0xe4]
xor edx, edx
call fcn.00434450
cmp byte [edi + 9], 0
je 0x4b5c0e
sub dword [edi + 0xc], 1
jne 0x4b5c0e
mov ecx, edi
call fcn.0043e720
cmp byte [esi + 9], 0
je 0x4b5c21
sub dword [esi + 0xc], 1
jne 0x4b5c21
mov ecx, esi
call fcn.0043e720
cmp dword [ebp - 0x4c], 0
jne 0x4b5d3a
cmp byte [edi + 9], 0
je 0x4b5c41
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4b5c41
mov ecx, edi
call fcn.0043e740
xor edx, edx
mov ecx, edi
call fcn.00442df0
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4b5c5d
xor edx, edx
mov ecx, edi
call fcn.00442ff0
mov dword [ebp - 0x4c], eax
cmp byte [edi + 9], 0
je 0x4b5c70
sub dword [edi + 0xc], 1
jne 0x4b5c70
mov ecx, edi
call fcn.0043e720
cmp dword [ebp - 0x4c], 0
jne 0x4b5d3a
cmp dword [ebp - 0x68], 0
jne 0x4b5d3a
cmp byte [edi + 9], 0
je 0x4b5c9a
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4b5c9a
mov ecx, edi
call fcn.0043e740
mov ecx, dword [edi + 4]
cmp byte [ecx + 0x11], 0
jne 0x4b5cac
mov dword [ebp - 0x50], 0
jmp 0x4b5cb8
xor eax, eax
cmp byte [ecx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x50], eax
cmp byte [edi + 9], 0
je 0x4b5ccb
sub dword [edi + 0xc], 1
jne 0x4b5ccb
mov ecx, edi
call fcn.0043e720
mov edx, dword [ebp - 0x50]
mov ecx, esi
call fcn.004418b0
cmp byte [edi + 9], 0
je 0x4b5ceb
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4b5ceb
mov ecx, edi
call fcn.0043e740
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 0x4b5d17
sub dword [edi + 0xc], 1
jne 0x4b5d17
mov ecx, edi
call fcn.0043e720
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.00441770
add esp, 8
mov edi, eax
jmp 0x4b5d3d
mov edi, 7
jmp 0x4b5d3d
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.00441770
mov esi, dword [ebp - 0x70]
add esp, 8
mov byte [ebx + 0x55], 1
test esi, esi
je 0x4b5dac
mov ecx, dword [esi + 4]
call fcn.004413d0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, ebx
call fcn.0047ae90
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3214
mov esp, ebp
pop ebp
ret