Function at 0x48eac0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x64], 0
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x60], ebx
cmp byte [ebx + 0x47], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x58], edi
jne 0x48ebd3
mov esi, dword [edi]
test esi, esi
je 0x48eb87
cmp dword [ebx + 0x1d0], 0
je 0x48eb0f
mov edx, esi
mov ecx, ebx
call fcn.0040ffa0
jmp 0x48eb87
cmp esi, dword [ebx + 0x128]
jb 0x48eb2f
cmp esi, dword [ebx + 0x12c]
jae 0x48eb2f
mov eax, dword [ebx + 0x124]
mov dword [esi], eax
mov dword [ebx + 0x124], esi
jmp 0x48eb87
cmp dword [0x4d9a98], 0
je 0x48eb7d
mov eax, dword [0x4defd8]
test eax, eax
je 0x48eb4b
push eax
call dword [0x4d9af4]
add esp, 4
push esi
call dword [0x4d9ad0]
sub dword [0x4dede0], eax
add esp, 4
dec dword [0x4dee04]
push esi
call dword [0x4d9ac8]
mov eax, dword [0x4defd8]
add esp, 4
test eax, eax
je 0x48eb87
push eax
call dword [0x4d9afc]
jmp 0x48eb84
push esi
call dword [0x4d9ac8]
add esp, 4
push 0
push 0x28
mov ecx, ebx
call fcn.00410430
add esp, 8
test eax, eax
je 0x48ebbb
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x4d5f4c]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [0x4d5f5c]
movq qword [eax + 0x20], xmm0
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xa0], 1
jle 0x48ecd6
mov esi, dword [edi]
test esi, esi
je 0x48ec76
cmp dword [ebx + 0x1d0], 0
je 0x48ebfe
mov edx, esi
mov ecx, ebx
call fcn.0040ffa0
jmp 0x48ec76
cmp esi, dword [ebx + 0x128]
jb 0x48ec1e
cmp esi, dword [ebx + 0x12c]
jae 0x48ec1e
mov eax, dword [ebx + 0x124]
mov dword [esi], eax
mov dword [ebx + 0x124], esi
jmp 0x48ec76
cmp dword [0x4d9a98], 0
je 0x48ec6c
mov eax, dword [0x4defd8]
test eax, eax
je 0x48ec3a
push eax
call dword [0x4d9af4]
add esp, 4
push esi
call dword [0x4d9ad0]
sub dword [0x4dede0], eax
add esp, 4
dec dword [0x4dee04]
push esi
call dword [0x4d9ac8]
mov eax, dword [0x4defd8]
add esp, 4
test eax, eax
je 0x48ec76
push eax
call dword [0x4d9afc]
jmp 0x48ec73
push esi
call dword [0x4d9ac8]
add esp, 4
push 0
push 0x2b
mov ecx, ebx
call fcn.00410430
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x48ecbe
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x4d5f74]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x4d5f84]
movq qword [ecx + 0x20], xmm0
mov ax, word [0x4d5f8c]
mov word [ecx + 0x28], ax
mov al, byte [0x4d5f8e]
mov byte [ecx + 0x2a], al
mov dword [edi], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x1c]
movzx edx, word [ebx + 0x18]
or dword [ebx + 0x18], 6
mov dword [ebp - 0x6c], eax
and eax, 0xffffaf7f
or eax, 0x201
mov dword [ebp - 0x68], edx
mov edx, dword [ebx + 0x5c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x70], edx
mov edx, dword [ebx + 0x60]
shl ecx, 4
mov dword [ebp - 0x74], edx
mov dl, byte [ebx + 0x50]
mov byte [ebx + 0x50], 0
mov esi, dword [eax + ecx + 4]
mov byte [ebp - 0x4e], dl
mov edx, dword [eax + ecx]
mov dword [ebp - 0x54], ecx
mov ecx, ebx
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], edx
mov edx, edi
push str.ATTACHAS_vacuum_db
mov eax, dword [eax]
mov al, byte [eax + 0xc]
mov byte [ebp - 0x4d], al
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x4c], eax
call fcn.0048e710
mov ecx, eax
add esp, 4
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48f237
mov eax, dword [ebp - 0x4c]
shl eax, 4
add eax, dword [ebx + 0x10]
mov dword [ebp - 0x64], eax
mov edi, dword [eax + 4]
cmp byte [edi + 9], cl
je 0x48ed6f
inc dword [edi + 0xc]
cmp byte [edi + 0xa], cl
jne 0x48ed6f
mov ecx, edi
call fcn.00424710
xor edx, edx
mov ecx, edi
call fcn.00428bc0
test eax, eax
jne 0x48ed85
xor edx, edx
mov ecx, edi
call fcn.00428db0
cmp byte [edi + 9], 0
je 0x48ed98
sub dword [edi + 0xc], 1
jne 0x48ed98
mov ecx, edi
call fcn.004246f0
cmp byte [esi + 9], 0
je 0x48edae
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x48edae
mov ecx, esi
call fcn.00424710
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x24]
cmp byte [esi + 9], 0
mov dword [ebp - 0x5c], ecx
je 0x48edcd
sub dword [esi + 0xc], 1
jne 0x48edcd
mov ecx, esi
call fcn.004246f0
mov eax, dword [ebx + 0x10]
mov ecx, edi
mov edx, dword [ebp - 0x54]
mov edx, dword [edx + eax + 0xc]
mov edx, dword [edx + 0x50]
call fcn.00427350
xor edx, edx
mov ecx, esi
call fcn.004273d0
mov edx, eax
mov ecx, edi
call fcn.004273d0
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0x54], eax
je 0x48ee12
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x48ee12
mov ecx, edi
call fcn.00424710
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
mov dword [eax + 7], 1
and byte [eax + 0x14], 0xfe
mov byte [eax + 0xb], 0
cmp byte [edi + 9], 0
je 0x48ee36
sub dword [edi + 0xc], 1
jne 0x48ee36
mov ecx, edi
call fcn.004246f0
mov edx, dword [ebp - 0x58]
mov ecx, ebx
push str.BEGIN
call fcn.0048e710
mov ecx, eax
add esp, 4
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48f237
lea edx, [eax + 2]
mov ecx, esi
call fcn.00427b90
mov ecx, eax
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48f237
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x48ee7a
mov dword [ebx + 0x54], ecx
mov eax, dword [esi + 4]
mov ecx, edi
push 0
push dword [ebp - 0x5c]
mov edx, dword [eax + 0x20]
call fcn.00427580
add esp, 8
test eax, eax
jne 0x48f230
cmp byte [ebp - 0x4d], al
jne 0x48eeb5
mov edx, dword [ebx + 0x54]
mov ecx, edi
push eax
push dword [ebp - 0x5c]
call fcn.00427580
add esp, 8
test eax, eax
jne 0x48f230
cmp byte [ebx + 0x49], 0
jne 0x48f230
mov al, byte [ebx + 0x4c]
test al, al
js 0x48eecb
movsx edx, al
jmp 0x48ef15
cmp byte [esi + 9], 0
je 0x48eee1
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x48eee1
mov ecx, esi
call fcn.00424710
mov ecx, dword [esi + 4]
cmp byte [ecx + 0x11], 0
jne 0x48eef3
mov dword [ebp - 0x48], 0
jmp 0x48eeff
xor eax, eax
cmp byte [ecx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x48], eax
cmp byte [esi + 9], 0
je 0x48ef12
sub dword [esi + 0xc], 1
jne 0x48ef12
mov ecx, esi
call fcn.004246f0
mov edx, dword [ebp - 0x48]
mov ecx, edi
call fcn.004276a0
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x4c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 0x58]
mov byte [ebx + 0x9c], al
push ebx
call fcn.0048e8a0
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48f237
push dword [ebp - 0x10]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
push dword [ebp - 0x58]
push ebx
call fcn.0048e8a0
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48f237
push dword [ebp - 0x10]
mov byte [ebx + 0x9c], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [ebp - 0x58]
push ebx
call fcn.0048e8a0
and dword [ebx + 0x18], 0xfffffffb
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48f237
push dword [ebp - 0x10]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp - 0x58]
push ebx
call fcn.0048e8a0
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48f237
mov dword [ebp - 0x10], eax
nop word [eax + eax]
cmp byte [esi + 9], 0
movzx ecx, byte [eax + 0x4cdb30]
mov eax, dword [esi + 4]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], eax
je 0x48efec
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x48efec
mov ecx, esi
call fcn.00424710
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
cmp ecx, 0xf
jne 0x48effb
mov eax, dword [eax]
mov eax, dword [eax + 0x64]
add eax, dword [esi + 0x14]
jmp 0x48f007
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 - 0x4c], eax
je 0x48f01d
add dword [esi + 0xc], 0xffffffff
jne 0x48f01d
mov ecx, esi
call fcn.004246f0
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + 0x4cdb31]
add eax, dword [ebp - 0x4c]
movzx edx, byte [ecx + 0x4cdb30]
mov ecx, edi
push eax
call fcn.004303b0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48f237
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
cmp eax, 0xa
jl 0x48efc0
cmp byte [esi + 9], cl
je 0x48f06f
inc dword [esi + 0xc]
cmp byte [esi + 0xa], cl
jne 0x48f06f
mov ecx, esi
call fcn.00424710
cmp byte [edi + 9], 0
je 0x48f085
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x48f085
mov ecx, edi
call fcn.00424710
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x54], eax
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x48f0d6
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x20]
cdq
push edx
push eax
push 0
push ecx
call fcn.004c2a20
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x4c]
push 0xb
push dword [ebp - 0x54]
mov dword [ebp - 0x10], edx
mov eax, dword [eax + 0x28]
call eax
xor ecx, ecx
add esp, 0xc
cmp eax, 0xc
cmovne ecx, eax
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x48f14a
mov eax, dword [edi]
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x44]
push 0x7fffffff
push eax
mov dword [ebp - 0x44], 0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], 1
call fcn.00431ee0
lea eax, [ebp - 0x44]
push eax
call fcn.004327c0
add esp, 0xc
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x48f137
mov eax, dword [esi + 4]
mov ecx, 0xfffd
and word [eax + 0x16], cx
jmp 0x48f14a
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xc], 0
jne 0x48f14a
call fcn.0041c4c0
cmp byte [edi + 9], 0
je 0x48f15d
sub dword [edi + 0xc], 1
jne 0x48f15d
mov ecx, edi
call fcn.004246f0
cmp byte [esi + 9], 0
je 0x48f170
sub dword [esi + 0xc], 1
jne 0x48f170
mov ecx, esi
call fcn.004246f0
cmp dword [ebp - 0x48], 0
jne 0x48f237
cmp byte [edi + 9], 0
je 0x48f190
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x48f190
mov ecx, edi
call fcn.00424710
xor edx, edx
mov ecx, edi
call fcn.00428bc0
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x48f1ac
xor edx, edx
mov ecx, edi
call fcn.00428db0
mov dword [ebp - 0x48], eax
cmp byte [edi + 9], 0
je 0x48f1bf
sub dword [edi + 0xc], 1
jne 0x48f1bf
mov ecx, edi
call fcn.004246f0
cmp dword [ebp - 0x48], 0
jne 0x48f237
cmp byte [edi + 9], 0
je 0x48f1db
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x48f1db
mov ecx, edi
call fcn.00424710
mov ecx, dword [edi + 4]
cmp byte [ecx + 0x11], 0
jne 0x48f1ed
mov dword [ebp - 0x4c], 0
jmp 0x48f1f9
xor eax, eax
cmp byte [ecx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x4c], eax
cmp byte [edi + 9], 0
je 0x48f20c
sub dword [edi + 0xc], 1
jne 0x48f20c
mov ecx, edi
call fcn.004246f0
mov edx, dword [ebp - 0x4c]
mov ecx, esi
call fcn.004276a0
mov eax, dword [edi + 4]
mov ecx, esi
push 1
push dword [ebp - 0x5c]
mov edx, dword [eax + 0x20]
call fcn.00427580
add esp, 8
mov dword [ebp - 0x48], eax
jmp 0x48f237
mov dword [ebp - 0x48], 7
mov eax, dword [ebp - 0x68]
movzx eax, ax
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebx + 0x60], eax
mov al, byte [ebp - 0x4e]
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0x50], al
cmp byte [esi + 9], 0
mov eax, dword [esi + 4]
mov dword [ebp - 0x4c], eax
je 0x48f27e
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x48f27e
mov ecx, esi
call fcn.00424710
mov eax, dword [ebp - 0x4c]
test byte [eax + 0x16], 2
je 0x48f299
cmp byte [esi + 9], 0
je 0x48f2d7
sub dword [esi + 0xc], 1
jne 0x48f2d7
mov ecx, esi
call fcn.004246f0
jmp 0x48f2d7
mov edi, dword [eax + 0x20]
lea ebx, [eax + 0x20]
sub edi, dword [eax + 0x24]
mov edx, ebx
mov ecx, dword [eax]
push edi
call fcn.0041e290
mov ecx, dword [ebx]
add esp, 4
movzx eax, di
sub ecx, eax
mov eax, dword [ebp - 0x4c]
or word [eax + 0x16], 2
mov dword [eax + 0x24], ecx
cmp byte [esi + 9], 0
je 0x48f2d4
sub dword [esi + 0xc], 1
jne 0x48f2d4
mov ecx, esi
call fcn.004246f0
mov ebx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x64]
mov byte [ebx + 0x47], 1
test esi, esi
je 0x48f2f8
mov ecx, dword [esi + 4]
call fcn.004270e0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, ebx
call fcn.0045b6a0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x48]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret