Function at 0x100e40a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10244540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x24], 0
mov edx, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x55], 0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x30], edi
jne 0x100e418d
push 0
push 0x28
mov ecx, esi
call fcn.10030d80
mov edi, eax
add esp, 8
test edi, edi
je 0x100e410d
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x1022a944]
movups xmmword [edi + 0x10], xmm0
movq xmm0, qword [0x1022a954]
movq qword [edi + 0x20], xmm0
mov ecx, dword [esi + 0xc]
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x100e4168
mov eax, dword [0x1024512c]
test eax, eax
jne 0x100e4144
push 0x6c13
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.p0__sqlite3GlobalConfig.mutex.xMutexHeld
call fcn.101aa953
mov eax, dword [0x1024512c]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push ecx
call eax
add esp, 4
test eax, eax
jne 0x100e4165
push 0x7231
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.db0__sqlite3_mutex_held_db__mutex_
call fcn.101aa953
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100e4175
mov edx, eax
mov ecx, esi
call fcn.10030890
mov dword [ebx], edi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1018e7c9
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xbc], 1
jle 0x100e4266
push 0
push 0x2b
mov ecx, esi
call fcn.10030d80
mov edi, eax
add esp, 8
test edi, edi
je 0x100e41e2
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x1022a96c]
movups xmmword [edi + 0x10], xmm0
movq xmm0, qword [0x1022a97c]
movq qword [edi + 0x20], xmm0
mov ax, word [0x1022a984]
mov word [edi + 0x28], ax
mov al, byte [0x1022a986]
mov byte [edi + 0x2a], al
mov ecx, dword [esi + 0xc]
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x100e423d
mov eax, dword [0x1024512c]
test eax, eax
jne 0x100e4219
push 0x6c13
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.p0__sqlite3GlobalConfig.mutex.xMutexHeld
call fcn.101aa953
mov eax, dword [0x1024512c]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push ecx
call eax
add esp, 4
test eax, eax
jne 0x100e423a
push 0x7231
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.db0__sqlite3_mutex_held_db__mutex_
call fcn.101aa953
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100e4175
mov edx, eax
mov ecx, esi
call fcn.10030890
mov dword [ebx], edi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1018e7c9
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x100e434c
push edi
call fcn.10073710
add esp, 4
cmp eax, 3
je 0x100e4333
push 0
push 0x12
mov ecx, esi
call fcn.10030d80
mov edi, eax
add esp, 8
test edi, edi
je 0x100e42af
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [edi], xmm0
mov cx, word [0x1022a998]
mov word [edi + 0x10], cx
mov ecx, dword [esi + 0xc]
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x100e430a
mov eax, dword [0x1024512c]
test eax, eax
jne 0x100e42e6
push 0x6c13
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.p0__sqlite3GlobalConfig.mutex.xMutexHeld
call fcn.101aa953
mov eax, dword [0x1024512c]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push ecx
call eax
add esp, 4
test eax, eax
jne 0x100e4307
push 0x7231
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.db0__sqlite3_mutex_held_db__mutex_
call fcn.101aa953
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100e4175
mov edx, eax
mov ecx, esi
call fcn.10030890
mov dword [ebx], edi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1018e7c9
mov esp, ebp
pop ebp
ret
mov dl, 1
mov ecx, edi
call fcn.10069990
mov ecx, dword [esi + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [esi + 0x3c], ecx
jmp 0x100e4351
mov edx, 0x101ebc35
mov edi, dword [esi + 0x24]
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x68]
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x48], edi
and edi, 0xfffffffe
mov dword [esi + 0x24], edi
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
or eax, 6
mov dword [ebp - 0x4c], ebx
mov ebx, dword [esi + 0x6c]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x50], ebx
mov ebx, dword [esi + 0x70]
mov dword [ebp - 0x44], ecx
and ecx, 0xefffafff
shl edi, 4
or ecx, 0x201
mov dword [ebp - 0x54], ebx
mov ebx, dword [esi + 0x74]
mov dword [esi + 0x20], ecx
mov dword [ebp - 0x58], ebx
mov bl, byte [esi + 0x5e]
mov byte [esi + 0x5e], 0
mov ecx, dword [edi + eax]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x25], bl
mov ebx, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], ecx
mov eax, dword [eax]
cmp byte [eax + 0xc], 0
jne 0x100e43d4
cmp byte [eax + 0x10], 0
mov dword [ebp - 0x38], 0
je 0x100e43db
mov dword [ebp - 0x38], 1
mov eax, dword [esi + 0x14]
push edx
push str.ATTACH__Q_AS_vacuum_db
push ebx
push esi
mov dword [ebp - 0x20], eax
call fcn.100e3e10
mov edi, eax
add esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x3c], eax
test edi, edi
jne 0x100e46a2
mov eax, dword [esi + 0x14]
mov ebx, dword [ebp - 0x20]
dec eax
cmp eax, ebx
je 0x100e4423
push 0x23e12
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str._db__nDb_1_nDb
call fcn.101aa953
add esp, 0xc
shl ebx, 4
mov ecx, str.vacuum_db
add ebx, dword [esi + 0x10]
mov dword [ebp - 0x24], ebx
mov eax, dword [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100e4453
test dl, dl
je 0x100e444f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100e4453
add eax, 2
add ecx, 2
test dl, dl
jne 0x100e4433
xor eax, eax
jmp 0x100e4458
sbb eax, eax
or eax, 1
test eax, eax
je 0x100e4473
push 0x23e14
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.strcmp_pDb__zDbSName__vacuum_db__0
call fcn.101aa953
add esp, 0xc
cmp dword [ebp - 0x30], 0
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x14], ebx
je 0x100e4580
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [ebp - 0x10], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x100e457c
lea edx, [ebp - 0x10]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x100e44c2
cmp dword [ebp - 0xc], eax
jl 0x100e457c
jg 0x100e44c2
cmp dword [ebp - 0x10], eax
jbe 0x100e457c
push 0
push 0x1b
mov ecx, esi
mov edi, 1
call fcn.10030d80
mov edx, eax
add esp, 8
mov dword [ebp - 0x38], edx
test edx, edx
je 0x100e4508
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x1022aa44]
movq qword [edx + 0x10], xmm0
mov cx, word [0x1022aa4c]
mov word [edx + 0x18], cx
mov al, byte [0x1022aa4e]
mov byte [edx + 0x1a], al
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100e4562
mov eax, dword [0x1024512c]
test eax, eax
jne 0x100e453f
push 0x6c13
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.p0__sqlite3GlobalConfig.mutex.xMutexHeld
call fcn.101aa953
mov eax, dword [0x1024512c]
add esp, 0xc
push dword [ebp - 0x20]
call eax
add esp, 4
test eax, eax
jne 0x100e4562
push 0x7231
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.db0__sqlite3_mutex_held_db__mutex_
call fcn.101aa953
add esp, 0xc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100e4572
mov edx, eax
mov ecx, esi
call fcn.10030890
mov eax, dword [ebp - 0x38]
mov dword [ebx], eax
jmp 0x100e46a2
or dword [esi + 0x18], 8
mov ecx, dword [ebp - 0x18]
call fcn.10055c40
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov edx, dword [edx + ecx + 0xc]
mov ecx, ebx
mov edx, dword [edx + 0x50]
call fcn.100557b0
mov ecx, dword [ebp - 0x18]
xor edx, edx
call fcn.100558b0
mov edx, eax
mov ecx, ebx
call fcn.100558b0
mov edx, 0x21
mov ecx, ebx
call fcn.100559d0
mov edx, dword [ebp - 0x2c]
mov ecx, esi
push str.BEGIN
call fcn.100e3af0
mov edi, eax
add esp, 4
test edi, edi
jne 0x100e46a2
mov ecx, dword [ebp - 0x18]
xor edx, edx
cmp dword [ebp - 0x30], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.10056460
mov edi, eax
add esp, 4
test edi, edi
jne 0x100e46a2
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x100e4618
cmp dword [ebp - 0x30], 0
jne 0x100e4618
mov dword [esi + 0x64], 0
mov eax, dword [edi + 4]
mov ecx, ebx
push 0
push dword [ebp - 0x1c]
mov edx, dword [eax + 0x24]
call fcn.10055af0
add esp, 8
test eax, eax
jne 0x100e466c
cmp dword [ebp - 0x38], eax
jne 0x100e464b
mov edx, dword [esi + 0x64]
mov ecx, ebx
push eax
push dword [ebp - 0x1c]
call fcn.10055af0
add esp, 8
test eax, eax
jne 0x100e466c
cmp byte [esi + 0x57], 0
je 0x100e4726
push 0x23e39
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push 0x101f935c
call fcn.101aa953
add esp, 0xc
cmp dword [0x102451bc], 0
je 0x100e467f
add dword [0x102549bc], 0x2a8ea
push 0x101f8cf4
push 0x23e3b
push 0x10236394
push str._s_at_line__d_of___.10s_
push 7
call fcn.10033a50
add esp, 0x14
mov edi, 7
mov eax, dword [ebp - 0x40]
or edx, 0xffffffff
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x6c], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x74], eax
mov al, byte [ebp - 0x25]
push 1
push 0
mov byte [esi + 0xb0], 0
mov byte [esi + 0x5e], al
call fcn.10055af0
mov ebx, dword [ebp - 0x24]
add esp, 8
mov byte [esi + 0x55], 1
test ebx, ebx
je 0x100e470c
mov ecx, dword [ebx + 4]
call fcn.100554a0
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, esi
call fcn.100a6b70
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1018e7c9
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x5a]
test al, al
js 0x100e4732
movsx edi, al
jmp 0x100e475c
mov ecx, edi
call fcn.100501b0
mov ecx, dword [edi + 4]
cmp byte [ecx + 0x11], 0
jne 0x100e4746
xor edi, edi
jmp 0x100e4754
xor eax, eax
cmp byte [ecx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x1c], eax
mov edi, eax
mov ecx, dword [ebp - 0x18]
call fcn.10050450
mov edx, edi
mov ecx, ebx
call fcn.10055d10
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 0x2c]
mov byte [esi + 0xb0], al
push esi
call fcn.100e3e10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100e46a2
push dword [ebp - 0x34]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [ebp - 0x2c]
push esi
call fcn.100e3e10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100e46a2
push dword [ebp - 0x34]
mov byte [esi + 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 - 0x2c]
push esi
call fcn.100e3e10
add esp, 0x10
mov edi, eax
test byte [esi + 0x18], 4
jne 0x100e47e3
push 0x23e62
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str._db__mDbFlags__DBFLAG_Vacuum__0
call fcn.101aa953
add esp, 0xc
and dword [esi + 0x18], 0xfffffffb
test edi, edi
jne 0x100e46a2
push dword [ebp - 0x34]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp - 0x2c]
push esi
call fcn.100e3e10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100e46a2
test ebx, ebx
je 0x100e4866
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
test edi, edi
je 0x100e4860
mov eax, dword [0x1024512c]
test eax, eax
jne 0x100e483f
push 0x6c13
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.p0__sqlite3GlobalConfig.mutex.xMutexHeld
call fcn.101aa953
mov eax, dword [0x1024512c]
add esp, 0xc
push edi
call eax
add esp, 4
test eax, eax
jne 0x100e4860
push 0x12f55
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.p0__sqlite3_mutex_held_p__db__mutex_
call fcn.101aa953
add esp, 0xc
cmp byte [ebx + 8], 2
je 0x100e487d
push 0x23e8c
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.SQLITE_TXN_WRITEsqlite3BtreeTxnState_pTemp_
call fcn.101aa953
add esp, 0xc
cmp dword [ebp - 0x30], 0
mov edi, dword [ebp - 0x18]
jne 0x100e48f2
mov eax, dword [edi]
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x100e48d5
mov eax, dword [0x1024512c]
test eax, eax
jne 0x100e48b4
push 0x6c13
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.p0__sqlite3GlobalConfig.mutex.xMutexHeld
call fcn.101aa953
mov eax, dword [0x1024512c]
add esp, 0xc
push ebx
call eax
add esp, 4
test eax, eax
jne 0x100e48d5
push 0x12f55
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.p0__sqlite3_mutex_held_p__db__mutex_
call fcn.101aa953
add esp, 0xc
cmp byte [edi + 8], 2
je 0x100e48f2
push 0x23e8d
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pOut_0__SQLITE_TXN_WRITEsqlite3BtreeTxnState_pMain_
call fcn.101aa953
add esp, 0xc
xor ebx, ebx
movzx edx, byte [ebx + 0x101ed924]
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.10063470
movzx eax, byte [ebx + 0x101ed925]
add esp, 4
add eax, dword [ebp - 0x20]
movzx edx, byte [ebx + 0x101ed924]
mov ecx, dword [ebp - 0x14]
push eax
call fcn.10063550
mov edi, eax
add esp, 4
test edi, edi
jne 0x100e49e0
mov edi, dword [ebp - 0x18]
add ebx, 2
cmp ebx, 0xa
jl 0x100e48f4
mov ebx, dword [ebp - 0x14]
cmp dword [ebp - 0x30], eax
jne 0x100e4956
mov edx, ebx
mov ecx, edi
call fcn.100666c0
mov edi, eax
test edi, edi
jne 0x100e46a2
mov ecx, ebx
call fcn.100501b0
xor edx, edx
mov ecx, ebx
call fcn.10057660
mov edi, eax
test edi, edi
jne 0x100e4977
xor edx, edx
mov ecx, ebx
call fcn.10057990
mov edi, eax
mov ecx, ebx
call fcn.10050450
test edi, edi
jne 0x100e46a2
cmp dword [ebp - 0x30], edi
jne 0x100e46a2
mov ecx, ebx
call fcn.100501b0
mov ecx, dword [ebx + 4]
cmp byte [ecx + 0x11], 0
je 0x100e49ad
xor eax, eax
cmp byte [ecx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x20], eax
mov edi, eax
mov ecx, ebx
call fcn.10050450
mov ecx, dword [ebp - 0x18]
mov edx, edi
call fcn.10055d10
mov ecx, ebx
call fcn.10055c40
mov ecx, dword [ebx + 4]
push 1
push eax
mov edx, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x18]
call fcn.10055af0
add esp, 8
mov edi, eax
jmp 0x100e46a2
push 0x23e95
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push 0x101f935c
call fcn.101aa953
add esp, 0xc
jmp 0x100e46a2