Function at 0x49fd20
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, edx
mov dword [ebp - 0x30], 0
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], ebx
cmp byte [ebx + 0x4f], 0
mov dword [ebp - 0xc], edi
jne 0x49fdc7
mov edx, dword [edi]
test edx, edx
je 0x49fd85
cmp dword [ebx + 0x1e8], 0
je 0x49fd5c
mov ecx, ebx
call fcn.0041c6a0
jmp 0x49fd85
cmp edx, dword [ebx + 0x138]
jb 0x49fd7c
cmp edx, dword [ebx + 0x13c]
jae 0x49fd7c
mov eax, dword [ebx + 0x134]
mov dword [edx], eax
mov dword [ebx + 0x134], edx
jmp 0x49fd85
push edx
call fcn.0041c630
add esp, 4
push 0
push 0x28
mov ecx, ebx
call fcn.0041ca80
add esp, 8
test eax, eax
je 0x49fdb9
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x56a3b8]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [0x56a3c8]
movq qword [eax + 0x20], xmm0
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xb0], 1
jle 0x49fe6d
mov ecx, dword [edi]
test ecx, ecx
je 0x49fe17
cmp dword [ebx + 0x1e8], 0
je 0x49fdee
mov edx, ecx
mov ecx, ebx
call fcn.0041c6a0
jmp 0x49fe17
cmp ecx, dword [ebx + 0x138]
jb 0x49fe0e
cmp ecx, dword [ebx + 0x13c]
jae 0x49fe0e
mov eax, dword [ebx + 0x134]
mov dword [ecx], eax
mov dword [ebx + 0x134], ecx
jmp 0x49fe17
push ecx
call fcn.0041c630
add esp, 4
push 0
push 0x2b
mov ecx, ebx
call fcn.0041ca80
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x49fe5f
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x56a3e0]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x56a3f0]
movq qword [ecx + 0x20], xmm0
mov ax, word [0x56a3f8]
mov word [ecx + 0x28], ax
mov al, byte [0x56a3fa]
mov byte [ecx + 0x2a], al
mov dword [edi], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x49ff5b
movzx ecx, word [esi + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x564940], 3
je 0x49ff08
mov ecx, dword [edi]
test ecx, ecx
je 0x49fed3
cmp dword [ebx + 0x1e8], 0
je 0x49feaa
mov edx, ecx
mov ecx, ebx
call fcn.0041c6a0
jmp 0x49fed3
cmp ecx, dword [ebx + 0x138]
jb 0x49feca
cmp ecx, dword [ebx + 0x13c]
jae 0x49feca
mov eax, dword [ebx + 0x134]
mov dword [ecx], eax
mov dword [ebx + 0x134], ecx
jmp 0x49fed3
push ecx
call fcn.0041c630
add esp, 4
push 0
push 0x12
mov ecx, ebx
call fcn.0041ca80
add esp, 8
test eax, eax
je 0x49fefa
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [eax], xmm0
mov cx, word [0x56a40c]
mov word [eax + 0x10], cx
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x49ff2d
cmp byte [esi + 0xa], 1
jne 0x49ff2d
mov ecx, dword [ebx + 0x3c]
mov edx, dword [esi + 0x10]
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x49ff60
test cl, 1
je 0x49ff42
mov ecx, dword [ebx + 0x3c]
xor edx, edx
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x49ff60
mov dl, 1
mov ecx, esi
call fcn.00442660
mov ecx, dword [ebx + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x49ff60
mov edx, 0x55e7eb
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x20]
mov esi, dword [ebx + 0x24]
mov dword [ebp - 0x34], eax
or eax, 6
mov dword [ebx + 0x18], eax
mov edi, dword [ebx + 0x64]
mov dword [ebp - 0x2c], ecx
mov cl, byte [ebx + 0x58]
mov eax, dword [ebp - 0x2c]
and eax, 0xefffaf7f
mov byte [ebp - 2], cl
mov ecx, dword [ebp + 8]
or eax, 0x201
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x10]
shl ecx, 4
mov dword [ebx + 0x24], esi
mov byte [ebx + 0x58], 0
mov dword [ebp - 0x38], esi
mov esi, dword [eax + ecx]
mov dword [ebp - 0x10], esi
mov esi, dword [eax + ecx + 4]
push edx
mov dword [ebp - 0x3c], edi
mov edi, dword [ebx + 0x68]
mov eax, dword [esi + 4]
push str.ATTACH__Q_AS_vacuum_db
mov dword [ebp - 0x40], edi
mov edi, dword [ebp - 0xc]
mov eax, dword [eax]
push edi
push ebx
mov dword [ebp + 8], ecx
mov al, byte [eax + 0xc]
mov byte [ebp - 1], al
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x28], eax
call fcn.0049fab0
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebx + 0x3c], ecx
test eax, eax
jne 0x4a0492
mov eax, dword [ebp - 0x28]
shl eax, 4
add eax, dword [ebx + 0x10]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x30], eax
mov edi, dword [eax + 4]
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
je 0x4a00e1
mov eax, dword [eax]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [ebp - 0x20], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x4a00db
lea edx, [ebp - 0x20]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x4a0049
cmp dword [ebp - 0x1c], eax
jl 0x4a00db
jg 0x4a0049
cmp dword [ebp - 0x20], eax
jbe 0x4a00db
mov edi, dword [ebp - 0xc]
mov dword [ebp - 8], 1
mov ecx, dword [edi]
test ecx, ecx
je 0x4a0096
cmp dword [ebx + 0x1e8], 0
je 0x4a006d
mov edx, ecx
mov ecx, ebx
call fcn.0041c6a0
jmp 0x4a0096
cmp ecx, dword [ebx + 0x138]
jb 0x4a008d
cmp ecx, dword [ebx + 0x13c]
jae 0x4a008d
mov eax, dword [ebx + 0x134]
mov dword [ecx], eax
mov dword [ebx + 0x134], ecx
jmp 0x4a0096
push ecx
call fcn.0041c630
add esp, 4
push 0
push 0x1b
mov ecx, ebx
call fcn.0041ca80
mov edx, eax
add esp, 8
test edx, edx
je 0x4a00d4
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x56a438]
movq qword [edx + 0x10], xmm0
mov cx, word [0x56a440]
mov word [edx + 0x18], cx
mov al, byte [0x56a442]
mov byte [edx + 0x1a], al
mov dword [edi], edx
jmp 0x4a0492
or dword [ebx + 0x18], 8
jmp 0x4a00e4
mov dword [ebp - 0x14], eax
cmp byte [esi + 9], 0
je 0x4a00fa
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4a00fa
mov ecx, esi
call fcn.00432d60
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x24]
cmp byte [esi + 9], 0
mov dword [ebp - 0x1c], ecx
je 0x4a0119
add dword [esi + 0xc], 0xffffffff
jne 0x4a0119
mov ecx, esi
call fcn.00432d20
mov eax, dword [ebx + 0x10]
mov ecx, edi
mov edx, dword [ebp + 8]
mov edx, dword [edx + eax + 0xc]
mov edx, dword [edx + 0x50]
call fcn.00435b00
xor edx, edx
mov ecx, esi
call fcn.00435b80
mov edx, eax
mov ecx, edi
call fcn.00435b80
cmp byte [edi + 9], 0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov dword [ebp - 8], eax
je 0x4a0160
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4a0160
mov ecx, edi
call fcn.00432d60
mov eax, dword [ebp - 8]
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 0x4a0184
add dword [edi + 0xc], 0xffffffff
jne 0x4a0184
mov ecx, edi
call fcn.00432d20
mov edx, dword [ebp - 0xc]
mov ecx, ebx
push str.BEGIN
call fcn.0049f9d0
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x4a0492
xor edx, edx
mov ecx, esi
cmp dword [ebp + 0xc], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.00436510
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x4a0492
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x4a01d6
mov dword [ebx + 0x5c], 0
mov eax, dword [esi + 4]
mov ecx, edi
push 0
push dword [ebp - 0x1c]
mov edx, dword [eax + 0x20]
call fcn.00435d80
add esp, 8
test eax, eax
jne 0x4a048b
cmp byte [ebp - 1], al
jne 0x4a0211
mov edx, dword [ebx + 0x5c]
mov ecx, edi
push eax
push dword [ebp - 0x1c]
call fcn.00435d80
add esp, 8
test eax, eax
jne 0x4a048b
cmp byte [ebx + 0x51], 0
jne 0x4a048b
mov al, byte [ebx + 0x54]
test al, al
js 0x4a0227
movsx edx, al
jmp 0x4a0273
mov cl, byte [esi + 9]
test cl, cl
je 0x4a0241
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4a0241
mov ecx, esi
call fcn.00432d60
mov cl, byte [esi + 9]
mov edx, dword [esi + 4]
cmp byte [edx + 0x11], 0
jne 0x4a0253
mov dword [ebp - 8], 0
jmp 0x4a025f
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 8], eax
test cl, cl
je 0x4a0270
add dword [esi + 0xc], 0xffffffff
jne 0x4a0270
mov ecx, esi
call fcn.00432d20
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.00435f70
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 0xc]
mov byte [ebx + 0xa4], al
push ebx
call fcn.0049fab0
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x4a0492
push dword [ebp - 0x10]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [ebp - 0xc]
push ebx
call fcn.0049fab0
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x4a0492
push dword [ebp - 0x10]
mov byte [ebx + 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 - 0xc]
push ebx
call fcn.0049fab0
and dword [ebx + 0x18], 0xfffffffb
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x4a0492
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 - 0xc]
push ebx
call fcn.0049fab0
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x4a0492
mov dword [ebp - 0x10], eax
nop dword [eax]
movzx edx, byte [eax + 0x560494]
mov cl, byte [esi + 9]
mov eax, dword [esi + 4]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0xc], eax
test cl, cl
je 0x4a0340
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4a0340
mov ecx, esi
call fcn.00432d60
mov cl, byte [esi + 9]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
cmp edx, 0xf
jne 0x4a034f
mov eax, dword [eax]
mov eax, dword [eax + 0x64]
add eax, dword [esi + 0x14]
jmp 0x4a035b
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + edx*4 + 0x24]
bswap eax
mov dword [ebp - 0x28], eax
test cl, cl
je 0x4a036f
add dword [esi + 0xc], 0xffffffff
jne 0x4a036f
mov ecx, esi
call fcn.00432d20
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + 0x560495]
add eax, dword [ebp - 0x28]
movzx edx, byte [ecx + 0x560494]
mov ecx, edi
push eax
call fcn.0043e740
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x4a0492
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
cmp eax, 0xa
jl 0x4a0310
cmp dword [ebp + 0xc], 0
jne 0x4a03c5
mov edx, edi
mov ecx, esi
call fcn.00441040
mov dword [ebp - 8], eax
test eax, eax
jne 0x4a0492
cmp byte [edi + 9], 0
je 0x4a03db
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4a03db
mov ecx, edi
call fcn.00432d60
xor edx, edx
mov ecx, edi
call fcn.004373e0
mov dword [ebp - 8], eax
test eax, eax
jne 0x4a03f7
xor edx, edx
mov ecx, edi
call fcn.004375e0
mov dword [ebp - 8], eax
cmp byte [edi + 9], 0
je 0x4a040a
add dword [edi + 0xc], 0xffffffff
jne 0x4a040a
mov ecx, edi
call fcn.00432d20
cmp dword [ebp - 8], 0
jne 0x4a0492
cmp dword [ebp + 0xc], 0
jne 0x4a0492
mov cl, byte [edi + 9]
test cl, cl
je 0x4a0434
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4a0434
mov ecx, edi
call fcn.00432d60
mov cl, byte [edi + 9]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
cmp byte [edx + 0x11], 0
jne 0x4a0448
mov dword [ebp - 0x28], 0
jmp 0x4a0454
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x28], eax
test cl, cl
je 0x4a0465
add dword [edi + 0xc], 0xffffffff
jne 0x4a0465
mov ecx, edi
call fcn.00432d20
mov edx, dword [ebp - 0x28]
mov ecx, esi
call fcn.00435f70
mov ecx, dword [ebp - 0x14]
push 1
push dword [ebp - 0x1c]
mov eax, dword [ecx]
mov ecx, esi
mov edx, dword [eax + 0x20]
call fcn.00435d80
add esp, 8
mov dword [ebp - 8], eax
jmp 0x4a0492
mov dword [ebp - 8], 7
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x64], eax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x68], eax
mov al, byte [ebp - 2]
mov byte [ebx + 0xa4], 0
mov byte [ebx + 0x58], al
cmp byte [esi + 9], 0
mov eax, dword [esi + 4]
mov dword [ebp - 0x2c], eax
je 0x4a04dc
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4a04dc
mov ecx, esi
call fcn.00432d60
mov eax, dword [ebp - 0x2c]
test byte [eax + 0x16], 2
je 0x4a04f7
cmp byte [esi + 9], 0
je 0x4a0535
add dword [esi + 0xc], 0xffffffff
jne 0x4a0535
mov ecx, esi
call fcn.00432d20
jmp 0x4a0535
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.0042b990
mov ecx, dword [ebx]
add esp, 4
movzx eax, di
sub ecx, eax
mov eax, dword [ebp - 0x2c]
or word [eax + 0x16], 2
mov dword [eax + 0x24], ecx
cmp byte [esi + 9], 0
je 0x4a0532
add dword [esi + 0xc], 0xffffffff
jne 0x4a0532
mov ecx, esi
call fcn.00432d20
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x30]
mov byte [ebx + 0x4f], 1
test esi, esi
je 0x4a0556
mov ecx, dword [esi + 4]
call fcn.00435980
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, ebx
call fcn.0046c8f0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret