Function at 0x10041520
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x101d2014]
mov esi, edx
mov edi, ecx
xor eax, ebp
mov dword [esp + 0x40], eax
cmp byte [edx + 0x4f], 0
je 0x10041577
cmp dword [esi + 0xb0], 2
jl 0x100415c5
mov edx, dword [edi]
test edx, edx
je 0x10041557
mov ecx, esi
call fcn.10019c40
mov ecx, esi
mov edx, 0x2b
push 0
call fcn.10019ed0
add esp, 4
mov esi, eax
test eax, eax
je 0x100415ab
push 0x2b
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x100415a2
mov edx, dword [edi]
test edx, edx
je 0x10041584
mov ecx, esi
call fcn.10019c40
mov ecx, esi
mov edx, 0x28
push 0
call fcn.10019ed0
add esp, 4
mov esi, eax
test eax, eax
je 0x100415ab
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi], esi
xor edi, edi
inc edi
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.10192ef0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x3c]
test ecx, ecx
je 0x10041612
movzx ebx, word [ecx + 8]
mov eax, ebx
and eax, 0x3f
cmp byte [eax + 0x10194480], 3
je 0x10041ac4
mov edx, dword [edi]
test edx, edx
je 0x100415f2
mov ecx, esi
call fcn.10019c40
mov ecx, esi
mov edx, 0x12
push 0
call fcn.10019ed0
add esp, 4
mov esi, eax
test eax, eax
je 0x100415ab
push 0x12
push str.non_text_filename
jmp 0x100415a2
mov dword [esp], edx
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0x101c3b42
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x64]
mov edi, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, eax
mov dword [esp + 0x28], eax
mov al, byte [esi + 0x58]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edx
or ecx, 6
mov byte [esp + 0x13], al
mov eax, dword [esi + 0x68]
mov dword [esi + 0x18], ecx
mov ecx, edi
mov edi, dword [ebp + 8]
and ecx, 0xfffffffe
mov dword [esi + 0x24], ecx
mov ecx, edx
and ecx, 0xefffadfe
or ecx, 0x201
shl edi, 4
mov dword [esp + 0x24], eax
mov dword [esi + 0x20], ecx
mov byte [esi + 0x58], 0
mov dword [esp + 0x20], edi
mov ecx, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov eax, dword [ecx + edi + 4]
mov edx, dword [eax + 4]
mov dword [esp + 8], eax
mov edx, dword [edx]
mov al, byte [edx + 0xc]
mov byte [esp + 0x12], al
mov eax, dword [ecx + edi]
mov dword [esp + 0x14], eax
push dword [esp + 4]
push str.ATTACH__Q_AS_vacuum_db
push dword [esp + 0x14]
push esi
call fcn.1004d3f0
add esp, 0x10
mov ecx, dword [esp]
mov edi, eax
test edi, edi
mov dword [esi + 0x3c], ecx
jne 0x10041a5a
mov eax, dword [esi + 0x10]
mov dword [esp + 0x1c], ebx
shl ebx, 4
cmp dword [ebp + 0xc], 0
lea edx, [eax + ebx]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 4], edx
mov dword [esp], eax
jne 0x10041b0d
mov ebx, dword [esp + 8]
cmp byte [ebx + 9], 0
jne 0x10041b2e
xor eax, eax
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 0x24]
movzx edi, byte [ecx + 0x16]
sub edx, dword [ecx + 0x28]
test al, al
je 0x10041718
dec dword [ebx + 0xc]
jne 0x10041718
mov ecx, ebx
mov ebx, edx
call fcn.10028200
mov edx, ebx
mov ebx, dword [esp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x20]
cmp edx, edi
cmovl edx, edi
mov edi, dword [esp]
mov dword [esp + 0x18], edx
mov eax, dword [eax + ecx + 0xc]
mov ecx, edi
mov edx, dword [eax + 0x50]
call fcn.1001ecc0
mov ecx, ebx
xor edx, edx
call fcn.1004d460
mov ecx, edi
mov edx, eax
call fcn.1004d460
mov ecx, edi
mov edx, 0x21
call fcn.1004d510
mov edx, dword [esp + 0xc]
mov ecx, esi
push str.BEGIN
call fcn.1004d610
add esp, 4
test eax, eax
jne 0x10041a52
xor edx, edx
cmp dword [ebp + 0xc], 0
mov ecx, ebx
sete dl
add edx, edx
push 0
call fcn.10007960
add esp, 4
test eax, eax
jne 0x10041a52
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
cmp byte [ecx + 5], 5
jne 0x100417a6
mov dword [esi + 0x5c], 0
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x24]
mov ecx, dword [esp]
push 0
push dword [esp + 0x1c]
call fcn.10018970
add esp, 8
mov edi, 7
test eax, eax
jne 0x10041a54
cmp byte [esp + 0x12], 0
jne 0x100417ea
mov edx, dword [esi + 0x5c]
mov ecx, dword [esp]
push 0
push dword [esp + 0x1c]
call fcn.10018970
add esp, 8
test eax, eax
jne 0x10041a54
cmp byte [esi + 0x51], 0
jne 0x10041a54
movzx ebx, byte [esi + 0x54]
test bl, bl
js 0x10041bb8
mov ecx, dword [esp]
mov edx, ebx
call fcn.1004d770
mov eax, dword [esp + 0x1c]
mov byte [esi + 0xa4], al
push dword [esp + 0x14]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov ebx, dword [esp + 0x14]
push ebx
push esi
call fcn.1004d3f0
add esp, 0x10
test eax, eax
jne 0x10041a52
push dword [esp + 0x14]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push ebx
push esi
call fcn.1004d3f0
add esp, 0x10
test eax, eax
jne 0x10041a52
mov byte [esi + 0xa4], 0
push dword [esp + 0x14]
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
push ebx
push esi
call fcn.1004d3f0
add esp, 0x10
and byte [esi + 0x18], 0xfb
test eax, eax
jne 0x10041a52
push dword [esp + 0x14]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push ebx
push esi
call fcn.1004d3f0
add esp, 0x10
test eax, eax
jne 0x10041a52
mov ecx, dword [esp + 8]
xor edi, edi
lea ebx, [esp + 0x38]
inc edi
mov edx, edi
push ebx
call fcn.1003b020
add esp, 4
mov eax, dword [ebx]
mov ebx, dword [esp]
mov edx, edi
inc eax
mov ecx, ebx
push eax
call fcn.10008550
add esp, 4
mov edi, eax
test eax, eax
jne 0x10041a54
mov ecx, dword [esp + 8]
lea eax, [esp + 0x38]
mov edx, 3
push eax
call fcn.1003b020
add esp, 4
mov ecx, ebx
mov edx, 3
push dword [esp + 0x38]
call fcn.10008550
add esp, 4
mov edi, eax
test eax, eax
jne 0x10041a54
mov ecx, dword [esp + 8]
lea eax, [esp + 0x38]
mov edx, 5
push eax
call fcn.1003b020
add esp, 4
mov ecx, ebx
mov edx, 5
push dword [esp + 0x38]
call fcn.10008550
add esp, 4
mov edi, eax
test eax, eax
jne 0x10041a54
mov ecx, dword [esp + 8]
lea eax, [esp + 0x38]
mov edx, 6
push eax
call fcn.1003b020
add esp, 4
mov ecx, ebx
mov edx, 6
push dword [esp + 0x38]
call fcn.10008550
add esp, 4
mov edi, eax
test eax, eax
jne 0x10041a54
mov ecx, dword [esp + 8]
lea eax, [esp + 0x38]
mov edx, 8
push eax
call fcn.1003b020
add esp, 4
mov ecx, ebx
mov edx, 8
push dword [esp + 0x38]
call fcn.10008550
add esp, 4
mov edi, eax
test eax, eax
jne 0x10041a54
cmp dword [ebp + 0xc], 0
jne 0x100419a9
mov ecx, dword [esp + 8]
mov edx, ebx
call fcn.1004d7e0
mov edi, eax
test eax, eax
jne 0x10041a54
cmp dword [ebp + 0xc], 0
mov ecx, ebx
setne byte [esp + 0xc]
call fcn.1004a0a0
mov edi, eax
xor eax, eax
test edi, edi
setne al
add eax, eax
test edi, edi
jne 0x10041a2c
cmp byte [esp + 0xc], 0
jne 0x10041a2c
mov eax, dword [esp]
cmp byte [eax + 9], 0
je 0x100419ec
mov eax, dword [esp]
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x100419ec
mov ecx, dword [esp]
call fcn.10028170
mov eax, dword [esp]
xor ebx, ebx
mov eax, dword [eax + 4]
cmp byte [eax + 0x11], 0
je 0x10041a06
cmp byte [eax + 0x12], 1
mov ebx, 2
sbb ebx, 0
mov eax, dword [esp]
cmp byte [eax + 9], 0
je 0x10041a1f
mov eax, dword [esp]
dec dword [eax + 0xc]
jne 0x10041a1f
mov ecx, dword [esp]
call fcn.10028200
mov ecx, dword [esp + 8]
mov edx, ebx
call fcn.1004d770
xor eax, eax
test eax, eax
setne al
or al, byte [esp + 0xc]
jne 0x10041a54
mov eax, dword [esp]
mov ecx, dword [esp + 8]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x24]
push 1
push dword [esp + 0x1c]
call fcn.10018970
add esp, 8
mov edi, eax
mov ebx, dword [esp + 4]
jmp 0x10041a5c
xor ebx, ebx
mov eax, dword [esp + 0x28]
mov byte [esi + 0xa4], 0
mov ecx, dword [esp + 8]
xor edx, edx
dec edx
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x68], eax
mov al, byte [esp + 0x13]
mov byte [esi + 0x58], al
push 1
push 0
call fcn.10018970
add esp, 8
test ebx, ebx
mov byte [esi + 0x4f], 1
je 0x10041ab8
mov ecx, dword [ebx + 4]
call fcn.1002e860
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
mov ecx, esi
call fcn.10008620
jmp 0x100415b0
mov dword [esp], edx
mov eax, 0x202
mov edx, ebx
and edx, eax
cmp edx, eax
jne 0x10041ae2
cmp byte [ecx + 0xa], 1
jne 0x10041ae2
mov eax, dword [ecx + 0x10]
mov edx, dword [esp]
jmp 0x10041af7
mov edx, dword [esp]
xor eax, eax
test bl, 1
jne 0x10041af7
xor edx, edx
inc edx
call fcn.1002fce0
mov edx, dword [esi + 0x3c]
and edx, 0xfffffff8
mov dword [esp + 4], eax
mov dword [esp + 0xc], edi
or edx, 6
mov dword [esi + 0x3c], edx
jmp 0x10041621
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov edi, dword [eax + 0x3c]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov eax, dword [edi]
test eax, eax
jne 0x10041b4c
or byte [esi + 0x18], 8
jmp 0x100416e3
inc dword [ebx + 0xc]
mov al, 1
cmp byte [ebx + 0xa], 0
jne 0x100416f3
mov ecx, ebx
call fcn.10028170
mov al, byte [ebx + 9]
jmp 0x100416f3
mov ecx, dword [eax + 0x18]
call dword [section..00cfg]
lea eax, [esp + 0x38]
push eax
push edi
call ecx
add esp, 8
test eax, eax
jne 0x10041b72
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x38], 1
sbb eax, 0
jl 0x10041b25
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
test edx, edx
je 0x10041b83
mov ecx, esi
call fcn.10019c40
mov ecx, esi
mov edx, 0x1b
push 0
call fcn.10019ed0
add esp, 4
mov edi, eax
test eax, eax
je 0x10041baa
push 0x1b
push str.output_file_already_exists
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0xc]
mov dword [eax], edi
xor edi, edi
inc edi
jmp 0x10041a54
mov edi, dword [esp + 8]
cmp byte [edi + 9], 0
je 0x10041bd2
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x10041bd2
mov ecx, edi
call fcn.10028170
mov eax, dword [edi + 4]
xor ebx, ebx
cmp byte [eax + 0x11], 0
je 0x10041be9
cmp byte [eax + 0x12], 1
mov ebx, 2
sbb ebx, 0
cmp byte [edi + 9], 0
je 0x10041800
dec dword [edi + 0xc]
jne 0x10041800
mov ecx, edi
call fcn.10028200
jmp 0x10041800