Function at 0x1009d4c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, edx
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], ebx
mov esi, dword [edi]
mov dword [ebp - 0x20], esi
cmp dword [eax + 8], ebx
je 0x1009d501
cmp dword [eax + 0xc], ebx
je 0x1009d501
push 0x1c3b2
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.p__pSchema0__p__zDatabase0
call fcn.101aa953
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [eax + 8]
test edx, edx
je 0x1009d51b
mov ecx, dword [edi]
call fcn.100cb440
mov ecx, dword [edi]
add eax, eax
mov ecx, dword [ecx + 0x10]
mov eax, dword [ecx + eax*8]
jmp 0x1009d51e
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, edi
push dword [eax + 0x10]
call fcn.100a6050
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1009d924
mov edx, eax
mov ecx, edi
call fcn.1009c4e0
test eax, eax
jne 0x1009d924
mov edx, dword [ebp - 0x14]
mov ecx, str.view
cmp byte [edx + 0x2b], 2
cmovne ecx, ebx
cmp byte [edx + 0x2b], 1
jne 0x1009d569
mov ecx, str.virtual_table
jmp 0x1009d56d
test ecx, ecx
je 0x1009d588
push dword [edx]
push ecx
push str.rename_columns_of
push str.cannot__s__s___s_
push edi
call fcn.10037890
add esp, 0x14
jmp 0x1009d924
mov edx, dword [edx + 0x3c]
mov ecx, esi
call fcn.100cb440
mov dword [ebp - 0xc], eax
test eax, eax
jns 0x1009d5b3
push 0x1b034
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.iSchema_0
call fcn.101aa953
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov ecx, eax
mov edx, 0x1a
mov eax, dword [esi + 0x10]
add ecx, ecx
push 0
mov eax, dword [eax + ecx*8]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push dword [ecx]
mov ecx, edi
push eax
call fcn.100a4e70
add esp, 0xc
test eax, eax
jne 0x1009d924
mov eax, dword [ebp + 8]
xor ebx, ebx
test eax, eax
je 0x1009d924
mov esi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1009d615
mov eax, esi
or eax, ebx
je 0x1009d66c
push 0x734a
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.z_0__n0
call fcn.101aa953
add esp, 0xc
mov eax, esi
and eax, 0x7fffffff
cmp eax, esi
je 0x1009d637
push 0x734b
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str._n0x7fffffff_n
call fcn.101aa953
add esp, 0xc
cmp dword [ebp - 0x10], ebx
je 0x1009d66c
mov ecx, dword [ebp - 0x20]
mov eax, esi
add eax, 1
adc ebx, ebx
push ebx
push eax
call fcn.10030d80
mov ebx, eax
add esp, 8
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x1009d671
push esi
push dword [ebp - 0x10]
push ebx
call fcn.10190960
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x1009d671
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ecx, ebx
call fcn.10037a10
test ebx, ebx
je 0x1009d924
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x10], eax
movsx ecx, word [edx + 0x22]
mov dword [ebp - 0x24], ecx
test ecx, ecx
jle 0x1009d6c1
mov ebx, dword [edx + 4]
mov edi, dword [ebp - 8]
nop dword [eax]
mov edx, dword [ebx]
mov esi, edi
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x1009d6db
test ecx, ecx
jne 0x1009d6ed
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 8]
cmp eax, ecx
jne 0x1009d703
push dword [ebp + 8]
push str.no_such_column:___T_
push edi
call fcn.10037890
add esp, 0xc
jmp 0x1009d924
movzx eax, byte [eax + 0x101f02b0]
movzx ecx, byte [ecx + 0x101f02b0]
sub ecx, eax
jne 0x1009d6f0
inc edx
jmp 0x1009d6a6
mov eax, dword [ebp - 0x10]
add ebx, 0x10
mov ecx, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, ecx
jl 0x1009d6a0
jmp 0x1009d6bb
mov ebx, dword [ebp - 0x18]
xor eax, eax
cmp dword [ebp - 0xc], 1
push 0
push 0x101ebc35
sete al
mov byte [edi + 0x10], 1
push eax
push ebx
push ebx
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push edi
mov dword [ebp - 0x28], eax
call fcn.100a5810
add esp, 0x1c
cmp dword [ebp - 0xc], 1
je 0x1009d767
push 0
push 0x101ebc35
push ebx
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push edi
call fcn.100a5810
add esp, 0x14
push ebx
push ebx
push str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_quotefix__Q__sql_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual__
push edi
call fcn.100a5810
push str.UPDATE_temp.sqlite_master_SET_sql__sqlite_rename_quotefix_temp__sql_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual__
push edi
call fcn.100a5810
add esp, 0x18
jmp 0x1009d777
push ebx
push ebx
push str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_quotefix__Q__sql_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual__
push edi
call fcn.100a5810
add esp, 0x10
mov eax, dword [edi + 0x74]
mov ecx, edi
mov ebx, dword [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
test ebx, ebx
je 0x1009d91a
mov eax, dword [ebx]
xor ecx, ecx
mov esi, dword [ebx + 4]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1009d7bd
mov eax, esi
or eax, ecx
je 0x1009d81f
push 0x734a
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.z_0__n0
call fcn.101aa953
add esp, 0xc
xor ecx, ecx
mov eax, esi
xor edx, edx
and eax, 0x7fffffff
cmp eax, esi
jne 0x1009d7ce
cmp edx, ecx
je 0x1009d7e7
push 0x734b
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str._n0x7fffffff_n
call fcn.101aa953
add esp, 0xc
xor ecx, ecx
cmp dword [ebp - 0x24], 0
je 0x1009d81f
mov eax, esi
add eax, 1
adc ecx, 0
push ecx
mov ecx, dword [ebp - 0x20]
push eax
call fcn.10030d80
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x1009d824
push esi
push dword [ebp - 0x24]
push eax
call fcn.10190960
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x1009d824
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.10037a10
cmp dword [ebp - 4], 0
je 0x1009d921
cmp dword [ebx + 4], 0
ja 0x1009d852
push 0x1b055
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pNew__n_0
call fcn.101aa953
add esp, 0xc
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x28]
movzx eax, byte [eax]
movzx esi, byte [eax + 0x101eeba8]
mov eax, dword [ecx]
and esi, 0x80
push eax
push ebx
push esi
push dword [ebp - 4]
push dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
push eax
push str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_column_sql__type__name___Q___Q___d___Q___d___d__WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X__AND__type___index_OR_tbl_name___Q_
push edi
call fcn.100a5810
mov eax, dword [ebp - 0x14]
push esi
push dword [ebp - 4]
mov esi, dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [eax]
push esi
push str.UPDATE_temp.sqlite_master_SET_sql__sqlite_rename_column_sql__type__name___Q___Q___d___Q___d__1__WHERE_type_IN__trigger__view_
push edi
call fcn.100a5810
add esp, 0x44
cmp dword [edi + 8], 0
je 0x1009d8e0
mov edx, dword [ebp - 0xc]
mov ecx, edi
call fcn.100a9cb0
mov edx, dword [ebp - 0xc]
mov ecx, dword [edi + 8]
push 1
push 0
call fcn.1006aaf0
add esp, 8
cmp dword [ebp - 0xc], 1
je 0x1009d8e0
mov ecx, dword [edi + 8]
mov edx, 1
push 1
push 0
call fcn.1006aaf0
add esp, 8
push 1
push str.after_rename
push ebx
push esi
push esi
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push edi
mov byte [edi + 0x10], 1
call fcn.100a5810
add esp, 0x1c
cmp dword [ebp - 0xc], 1
je 0x1009d921
push 1
push str.after_rename
push esi
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push edi
call fcn.100a5810
add esp, 0x14
jmp 0x1009d921
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x20]
mov ecx, edi
mov edx, dword [ebp - 0x1c]
call fcn.100b05b0
test edi, edi
je 0x1009d982
mov esi, dword [edi + 0xc]
test esi, esi
je 0x1009d982
mov eax, dword [0x1024512c]
test eax, eax
jne 0x1009d961
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 esi
call eax
add esp, 4
test eax, eax
jne 0x1009d982
push 0x7231
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.db0__sqlite3_mutex_held_db__mutex_
call fcn.101aa953
add esp, 0xc
test ebx, ebx
je 0x1009d98f
mov edx, ebx
mov ecx, edi
call fcn.10030890
test edi, edi
je 0x1009d9e0
mov esi, dword [edi + 0xc]
test esi, esi
je 0x1009d9e0
mov eax, dword [0x1024512c]
test eax, eax
jne 0x1009d9bf
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 esi
call eax
add esp, 4
test eax, eax
jne 0x1009d9e0
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 - 4]
test eax, eax
je 0x1009d9f0
mov edx, eax
mov ecx, edi
call fcn.10030890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret