Function at 0x4c2680
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x513040]
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 0x4c2718
push 0
push 0x28
mov ecx, ebx
call fcn.0042f570
mov esi, eax
add esp, 8
test esi, esi
je 0x4c26f3
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x503a9c]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x503aac]
movq qword [esi + 0x20], xmm0
mov edx, dword [edi]
test edx, edx
je 0x4c2700
mov ecx, ebx
call fcn.0042f0e0
mov dword [edi], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xbc], 1
jle 0x4c276b
push 0
push 0x2b
mov ecx, ebx
call fcn.0042f570
mov esi, eax
add esp, 8
test esi, esi
je 0x4c26f3
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x503ac4]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x503ad4]
movq qword [esi + 0x20], xmm0
mov ax, word [0x503adc]
mov word [esi + 0x28], ax
mov al, byte [0x503ade]
mov byte [esi + 0x2a], al
jmp 0x4c26f3
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x64], eax
test esi, esi
je 0x4c2810
movzx ecx, word [esi + 0x10]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x509c50], 3
je 0x4c27bd
push 0
push 0x12
mov ecx, ebx
call fcn.0042f570
mov esi, eax
add esp, 8
test esi, esi
je 0x4c26f3
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [esi], xmm0
mov cx, word [0x503af0]
mov word [esi + 0x10], cx
jmp 0x4c26f3
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x4c27e2
cmp byte [esi + 0x12], 1
jne 0x4c27e2
mov ecx, dword [ebx + 0x3c]
mov edx, dword [esi + 8]
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x4c2815
test cl, 1
je 0x4c27f7
mov ecx, dword [ebx + 0x3c]
xor edx, edx
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x4c2815
mov dl, 1
mov ecx, esi
call fcn.00457440
mov ecx, dword [ebx + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x4c2815
mov edx, 0x4fb681
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 0x4c289e
cmp byte [eax + 0x10], 0
mov dword [ebp - 0xc], 0
je 0x4c28a5
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.004c2480
mov edi, eax
add esp, 0x10
mov eax, dword [ebp - 0x64]
mov dword [ebx + 0x3c], eax
test edi, edi
jne 0x4c2f1d
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 0x4c299a
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 0x4c2980
lea edx, [ebp - 0x18]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x4c291b
cmp dword [ebp - 0x14], eax
jl 0x4c2980
jg 0x4c291b
cmp dword [ebp - 0x18], eax
jbe 0x4c2980
push 0
push 0x1b
mov ecx, ebx
mov edi, 1
call fcn.0042f570
mov edx, eax
add esp, 8
mov dword [ebp - 0x50], edx
test edx, edx
je 0x4c2961
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x503b1c]
movq qword [edx + 0x10], xmm0
mov cx, word [0x503b24]
mov word [edx + 0x18], cx
mov al, byte [0x503b26]
mov byte [edx + 0x1a], al
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
test ecx, ecx
je 0x4c2979
mov edx, ecx
mov ecx, ebx
call fcn.0042f0e0
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x50]
mov dword [eax], edx
jmp 0x4c2f1d
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 0x4c29b0
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4c29b0
mov ecx, esi
call fcn.00447640
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 0x4c29dc
add dword [esi + 0xc], 0xffffffff
jne 0x4c29dc
mov ecx, esi
call fcn.00447620
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.0044a440
xor edx, edx
mov ecx, esi
call fcn.0044a4e0
mov edx, eax
mov ecx, edi
call fcn.0044a4e0
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0x54], eax
je 0x4c2a28
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4c2a28
mov ecx, edi
call fcn.00447640
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x14]
or edx, 0x20
mov ecx, dword [ecx]
call fcn.0043fda0
cmp byte [edi + 9], 0
je 0x4c2a4b
add dword [edi + 0xc], 0xffffffff
jne 0x4c2a4b
mov ecx, edi
call fcn.00447620
mov edx, dword [ebp - 0x58]
mov ecx, ebx
push str.BEGIN
call fcn.004c22a0
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4c2f1a
mov ecx, dword [ebp - 0x68]
xor edx, edx
test ecx, ecx
mov eax, 2
cmove edx, eax
cmp byte [esi + 9], 0
jne 0x4c2a90
mov al, byte [esi + 8]
test al, al
je 0x4c2a90
cmp al, 1
jne 0x4c2b0d
test ecx, ecx
jne 0x4c2aaa
push 0
mov ecx, esi
call fcn.0044ab40
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4c2f1a
mov ecx, dword [ebp - 0x68]
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x4c2abc
test ecx, ecx
jne 0x4c2abc
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.0044a5d0
add esp, 8
test eax, eax
jne 0x4c2f13
cmp dword [ebp - 0xc], eax
jne 0x4c2af7
mov edx, dword [ebx + 0x64]
mov ecx, edi
push eax
push dword [ebp - 0x64]
call fcn.0044a5d0
add esp, 8
test eax, eax
jne 0x4c2f13
cmp byte [ebx + 0x57], 0
jne 0x4c2f13
mov al, byte [ebx + 0x5a]
test al, al
js 0x4c2b3a
movsx edx, al
jmp 0x4c2b84
test ecx, ecx
jne 0x4c2aaa
mov eax, dword [esi]
mov edx, dword [eax + 0x1f8]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
cmp edx, dword [ecx + 0x68]
jle 0x4c2b33
cmp byte [ecx + 6], 0
je 0x4c2b33
call fcn.004427d0
jmp 0x4c2a9c
xor eax, eax
jmp 0x4c2a9c
cmp byte [esi + 9], 0
je 0x4c2b50
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4c2b50
mov ecx, esi
call fcn.00447640
mov ecx, dword [esi + 4]
cmp byte [ecx + 0x11], 0
jne 0x4c2b62
mov dword [ebp - 0xc], 0
jmp 0x4c2b6e
xor eax, eax
cmp byte [ecx + 0x12], al
setne al
inc eax
mov dword [ebp - 0xc], eax
cmp byte [esi + 9], 0
je 0x4c2b81
add dword [esi + 0xc], 0xffffffff
jne 0x4c2b81
mov ecx, esi
call fcn.00447620
mov edx, dword [ebp - 0xc]
mov ecx, edi
call fcn.0044a710
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.004c2480
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4c2f1a
push dword [ebp - 0x5c]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [ebp - 0x58]
push ebx
call fcn.004c2480
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4c2f1a
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.004c2480
and dword [ebx + 0x18], 0xfffffffb
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jne 0x4c2f1a
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.004c2480
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4c2f1a
mov dword [ebp - 0x5c], eax
nop
cmp byte [esi + 9], 0
movzx ecx, byte [eax + 0x504e2c]
mov eax, dword [esi + 4]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
je 0x4c2c4c
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4c2c4c
mov ecx, esi
call fcn.00447640
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
cmp ecx, 0xf
jne 0x4c2c5b
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
add eax, dword [esi + 0x14]
jmp 0x4c2c67
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 0x4c2c7d
add dword [esi + 0xc], 0xffffffff
jne 0x4c2c7d
mov ecx, esi
call fcn.00447620
mov ecx, dword [ebp - 0x5c]
movzx eax, byte [ecx + 0x504e2d]
add eax, dword [ebp - 0x50]
movzx edx, byte [ecx + 0x504e2c]
mov ecx, edi
push eax
call fcn.00453760
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4c2f1a
mov eax, dword [ebp - 0x5c]
add eax, 2
mov dword [ebp - 0x5c], eax
cmp eax, 0xa
jl 0x4c2c20
cmp dword [ebp - 0x68], 0
jne 0x4c2e0b
cmp byte [esi + 9], 0
je 0x4c2cd9
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4c2cd9
mov ecx, esi
call fcn.00447640
cmp byte [edi + 9], 0
je 0x4c2cef
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4c2cef
mov ecx, edi
call fcn.00447640
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 0x4c2d44
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.004f6f90
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 0x4c2ddb
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.00455280
lea eax, [ebp - 0x48]
push eax
call fcn.004559d0
add esp, 0xc
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4c2da5
mov eax, dword [esi + 4]
mov ecx, 0xfffd
and word [eax + 0x18], cx
jmp 0x4c2ddb
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xc], 0
jne 0x4c2ddb
inc dword [ecx + 0x6c]
mov eax, dword [ecx + 0x60]
test eax, eax
je 0x4c2dce
nop dword [eax]
mov dword [eax + 0x10], 1
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x4c2dc0
mov ecx, dword [ecx + 0xe4]
xor edx, edx
call fcn.0043c210
cmp byte [edi + 9], 0
je 0x4c2dee
add dword [edi + 0xc], 0xffffffff
jne 0x4c2dee
mov ecx, edi
call fcn.00447620
cmp byte [esi + 9], 0
je 0x4c2e01
add dword [esi + 0xc], 0xffffffff
jne 0x4c2e01
mov ecx, esi
call fcn.00447620
cmp dword [ebp - 0x4c], 0
jne 0x4c2f1a
cmp byte [edi + 9], 0
je 0x4c2e21
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4c2e21
mov ecx, edi
call fcn.00447640
xor edx, edx
mov ecx, edi
call fcn.0044ba80
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4c2e3d
xor edx, edx
mov ecx, edi
call fcn.0044bc70
mov dword [ebp - 0x4c], eax
cmp byte [edi + 9], 0
je 0x4c2e50
add dword [edi + 0xc], 0xffffffff
jne 0x4c2e50
mov ecx, edi
call fcn.00447620
cmp dword [ebp - 0x4c], 0
jne 0x4c2f1a
cmp dword [ebp - 0x68], 0
jne 0x4c2f1a
cmp byte [edi + 9], 0
je 0x4c2e7a
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4c2e7a
mov ecx, edi
call fcn.00447640
mov ecx, dword [edi + 4]
cmp byte [ecx + 0x11], 0
jne 0x4c2e8c
mov dword [ebp - 0x50], 0
jmp 0x4c2e98
xor eax, eax
cmp byte [ecx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x50], eax
cmp byte [edi + 9], 0
je 0x4c2eab
add dword [edi + 0xc], 0xffffffff
jne 0x4c2eab
mov ecx, edi
call fcn.00447620
mov edx, dword [ebp - 0x50]
mov ecx, esi
call fcn.0044a710
cmp byte [edi + 9], 0
je 0x4c2ecb
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4c2ecb
mov ecx, edi
call fcn.00447640
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 0x4c2ef7
add dword [edi + 0xc], 0xffffffff
jne 0x4c2ef7
mov ecx, edi
call fcn.00447620
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.0044a5d0
add esp, 8
mov edi, eax
jmp 0x4c2f1d
mov edi, 7
jmp 0x4c2f1d
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.0044a5d0
mov esi, dword [ebp - 0x70]
add esp, 8
mov byte [ebx + 0x55], 1
test esi, esi
je 0x4c2f8c
mov ecx, dword [esi + 4]
call fcn.0044a230
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, ebx
call fcn.004859e0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f5edb
mov esp, ebp
pop ebp
ret