Function at 0x498bb0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x577018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], esi
cmp byte [edi + 0x4f], 0
mov dword [ebp - 0x34], 0
jne 0x498cc9
mov esi, dword [ebx]
test esi, esi
je 0x498c7d
cmp dword [edi + 0x1e0], 0
je 0x498c05
mov edx, esi
mov ecx, edi
call fcn.00423550
jmp 0x498c7d
cmp esi, dword [edi + 0x130]
jb 0x498c25
cmp esi, dword [edi + 0x134]
jae 0x498c25
mov eax, dword [edi + 0x12c]
mov dword [esi], eax
mov dword [edi + 0x12c], esi
jmp 0x498c7d
cmp dword [0x577a68], 0
je 0x498c73
mov eax, dword [0x57adf8]
test eax, eax
je 0x498c41
push eax
call dword [0x577ac4]
add esp, 4
push esi
call dword [0x577aa0]
sub dword [0x57ad28], eax
add esp, 4
dec dword [0x57ad4c]
push esi
call dword [0x577a98]
mov eax, dword [0x57adf8]
add esp, 4
test eax, eax
je 0x498c7d
push eax
call dword [0x577acc]
jmp 0x498c7a
push esi
call dword [0x577a98]
add esp, 4
push 0
push 0x28
mov ecx, edi
call fcn.00423950
add esp, 8
test eax, eax
je 0x498cb1
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x55dd58]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [0x55dd68]
movq qword [eax + 0x20], xmm0
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00517154
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0xac], 1
jle 0x498cf7
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, edi
call fcn.00423be0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00517154
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x498d66
movzx ecx, word [esi + 8]
mov eax, ecx
and eax, 0x1f
cmp byte [eax + 0x55758c], 3
je 0x498d34
push str.non_text_filename
mov edx, edi
mov ecx, ebx
call fcn.00423be0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00517154
mov esp, ebp
pop ebp
ret
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x498d4d
cmp byte [esi + 0xa], 1
jne 0x498d4d
mov ecx, dword [esi + 0x10]
jmp 0x498d6b
test cl, 1
je 0x498d56
xor ecx, ecx
jmp 0x498d6b
mov dl, 1
mov ecx, esi
call fcn.00445ab0
mov edx, dword [ebp - 0x24]
mov ecx, eax
jmp 0x498d6b
mov ecx, 0x5581b4
mov eax, dword [edi + 0x24]
mov esi, dword [edi + 0x20]
mov ebx, dword [edi + 0x64]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x38], eax
or eax, 6
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], esi
and esi, 0xefffaf7f
mov dword [edi + 0x24], eax
or esi, 0x201
mov eax, dword [edi + 0x10]
mov dword [edi + 0x20], esi
shl edx, 4
mov dword [ebp - 0x24], edx
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x40], ebx
mov ebx, dword [edi + 0x68]
mov dword [ebp - 0x44], ebx
mov bl, byte [edi + 0x58]
mov byte [edi + 0x58], 0
mov esi, dword [esi + eax + 4]
mov edx, dword [edx + eax]
push ecx
push str.ATTACH__Q_AS_vacuum_db
mov eax, dword [esi + 4]
mov byte [ebp - 0x16], bl
mov ebx, dword [ebp - 0x1c]
push ebx
mov eax, dword [eax]
push edi
mov dword [ebp - 0x14], edx
mov al, byte [eax + 0xc]
mov byte [ebp - 0x15], al
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x2c], eax
call fcn.00498a20
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4990e6
mov eax, dword [ebp - 0x2c]
shl eax, 4
add eax, dword [edi + 0x10]
cmp dword [ebp - 0x28], 0
mov dword [ebp - 0x34], eax
mov ebx, dword [eax + 4]
mov dword [ebp - 0x20], ebx
je 0x498e59
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [ebp - 0x10], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x498e59
lea edx, [ebp - 0x10]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x498e3d
cmp dword [ebp - 0xc], eax
jl 0x498e59
jg 0x498e3d
cmp dword [ebp - 0x10], eax
jbe 0x498e59
mov ecx, dword [ebp - 0x1c]
mov edx, edi
push str.output_file_already_exists
mov ebx, 1
call fcn.00423be0
add esp, 4
jmp 0x4990e6
cmp byte [esi + 9], 0
je 0x498e6f
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x498e6f
mov ecx, esi
call fcn.00437730
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x24]
cmp byte [esi + 9], 0
mov dword [ebp - 0xc], ecx
je 0x498e8e
add dword [esi + 0xc], 0xffffffff
jne 0x498e8e
mov ecx, esi
call fcn.004376f0
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax + 0xc]
mov ecx, ebx
mov edx, dword [edx + 0x50]
call fcn.00439e90
xor edx, edx
mov ecx, esi
call fcn.00439f10
mov edx, eax
mov ecx, ebx
call fcn.00439f10
mov edx, 0x21
mov ecx, ebx
call fcn.00439fe0
mov edx, dword [ebp - 0x1c]
mov ecx, edi
push str.BEGIN
call fcn.004988a0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4990e6
xor edx, edx
mov ecx, esi
cmp dword [ebp - 0x28], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.0043a6f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4990e6
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x498f0c
mov dword [edi + 0x5c], ebx
mov eax, dword [esi + 4]
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
push 0
push dword [ebp - 0xc]
mov edx, dword [eax + 0x20]
call fcn.0043a0c0
add esp, 8
test eax, eax
jne 0x4990e1
cmp byte [ebp - 0x15], al
jne 0x498f4a
mov edx, dword [edi + 0x5c]
mov ecx, ebx
push eax
push dword [ebp - 0xc]
call fcn.0043a0c0
add esp, 8
test eax, eax
jne 0x4990e1
cmp byte [edi + 0x51], 0
jne 0x4990e1
mov al, byte [edi + 0x54]
test al, al
js 0x498f60
movsx eax, al
jmp 0x498f67
mov ecx, esi
call fcn.0043a2d0
mov edx, eax
mov ecx, ebx
call fcn.0043a250
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 0x1c]
mov byte [edi + 0xa4], al
push edi
call fcn.00498a20
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4990e6
push dword [ebp - 0x14]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [ebp - 0x1c]
push edi
call fcn.00498a20
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4990e6
push dword [ebp - 0x14]
mov byte [edi + 0xa4], 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 - 0x1c]
push edi
call fcn.00498a20
and dword [edi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4990e6
push dword [ebp - 0x14]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp - 0x1c]
push edi
call fcn.00498a20
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4990e6
mov dword [ebp - 0x14], eax
nop
mov cl, byte [esi + 9]
movzx ebx, byte [eax + 0x5531c0]
mov eax, dword [esi + 4]
mov dword [ebp - 0x2c], eax
test cl, cl
je 0x49902a
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x49902a
mov ecx, esi
call fcn.00437730
mov cl, byte [esi + 9]
mov eax, dword [ebp - 0x2c]
cmp ebx, 0xf
jne 0x499039
mov eax, dword [eax]
mov ebx, dword [eax + 0x64]
add ebx, dword [esi + 0x14]
jmp 0x499045
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + ebx*4 + 0x24]
bswap ebx
test cl, cl
je 0x499056
add dword [esi + 0xc], 0xffffffff
jne 0x499056
mov ecx, esi
call fcn.004376f0
mov ecx, dword [ebp - 0x14]
movzx eax, byte [ecx + 0x5531c1]
movzx edx, byte [ecx + 0x5531c0]
add eax, ebx
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00442660
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4990e6
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
cmp eax, 0xa
jl 0x499000
cmp dword [ebp - 0x28], ebx
jne 0x4990a2
mov edx, dword [ebp - 0x20]
mov ecx, esi
call fcn.004446d0
mov ebx, eax
test ebx, ebx
jne 0x4990e6
mov ecx, dword [ebp - 0x20]
call fcn.0043ba90
mov ebx, eax
test ebx, ebx
jne 0x4990e6
cmp dword [ebp - 0x28], eax
jne 0x4990e6
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.0043a2d0
mov edx, eax
mov ecx, esi
call fcn.0043a250
mov eax, dword [ebx + 4]
mov ecx, esi
push 1
push dword [ebp - 0xc]
mov edx, dword [eax + 0x20]
call fcn.0043a0c0
add esp, 8
mov ebx, eax
jmp 0x4990e6
mov ebx, 7
mov eax, dword [ebp - 0x38]
or edx, 0xffffffff
mov dword [edi + 0x18], eax
mov ecx, esi
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x64], eax
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x68], eax
mov al, byte [ebp - 0x16]
push 1
push 0xffffffffffffffff
mov byte [edi + 0xa4], 0
mov byte [edi + 0x58], al
call fcn.0043a0c0
mov esi, dword [ebp - 0x34]
add esp, 8
mov byte [edi + 0x4f], 1
test esi, esi
je 0x499143
mov ecx, dword [esi + 4]
call fcn.00439c20
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, edi
call fcn.0046b9b0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00517154
mov esp, ebp
pop ebp
ret