Function at 0x1009c5c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edx
xor ebx, ebx
xor esi, esi
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
cmp byte [eax + 0x57], bl
je 0x1009c5f8
push 0x1ae57
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push 0x101f935c
call fcn.101aa953
add esp, 0xc
jmp 0x1009ca0f
cmp dword [edx], 1
je 0x1009c614
push 0x1ae58
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pSrc__nSrc1
call fcn.101aa953
add esp, 0xc
mov ecx, dword [edi]
call fcn.10050720
test eax, eax
jne 0x1009c636
push 0x1ae59
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.sqlite3BtreeHoldsAllMutexes_pParse__db_
call fcn.101aa953
add esp, 0xc
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 8], ebx
je 0x1009c65d
cmp dword [eax + 0xc], ebx
je 0x1009c65d
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 0x1009c67a
mov ecx, dword [edi]
call fcn.100cb440
mov ecx, dword [edi]
add eax, eax
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + eax*8]
mov eax, dword [ebp - 0x1c]
jmp 0x1009c67d
mov ecx, dword [eax + 0xc]
push ecx
push dword [eax + 0x10]
xor edx, edx
mov ecx, edi
call fcn.100a6050
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x1009ca0f
mov edx, dword [eax + 0x3c]
mov ecx, dword [edi]
call fcn.100cb440
mov esi, dword [ebp - 0xc]
mov edx, eax
add edx, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + edx*8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x1009ca8e
mov ecx, dword [eax + 4]
xor edx, edx
mov eax, dword [eax]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x1009c6f3
mov eax, ecx
or eax, edx
je 0x1009c754
push 0x734a
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.z_0__n0
call fcn.101aa953
mov ecx, dword [ebp - 8]
add esp, 0xc
xor edx, edx
mov eax, ecx
and eax, 0x7fffffff
cmp eax, ecx
jne 0x1009c702
cmp ebx, edx
je 0x1009c71e
push 0x734b
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str._n0x7fffffff_n
call fcn.101aa953
mov ecx, dword [ebp - 8]
add esp, 0xc
xor edx, edx
cmp dword [ebp - 0x20], ebx
je 0x1009c754
add ecx, 1
adc edx, ebx
push edx
push ecx
mov ecx, esi
call fcn.10030d80
mov esi, eax
add esp, 8
mov dword [ebp - 0x24], esi
test esi, esi
je 0x1009c759
push dword [ebp - 8]
push dword [ebp - 0x20]
push esi
call fcn.10190960
mov eax, dword [ebp - 8]
add esp, 0xc
mov byte [eax + esi], bl
jmp 0x1009c759
xor esi, esi
mov dword [ebp - 0x24], esi
mov ecx, esi
call fcn.10037a10
test esi, esi
je 0x1009ca0f
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, esi
call fcn.100a5a10
add esp, 4
test eax, eax
jne 0x1009ca7d
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, esi
call fcn.100a6400
add esp, 4
test eax, eax
jne 0x1009ca7d
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
push esi
call fcn.100aad40
add esp, 4
test eax, eax
jne 0x1009ca7d
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.1009c4e0
test eax, eax
jne 0x1009ca0f
push esi
push str.table
mov edx, esi
mov ecx, edi
call fcn.100a7ab0
add esp, 8
test eax, eax
jne 0x1009ca0f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b], 2
mov ecx, dword [eax]
jne 0x1009c7fa
push ecx
push str.view__s_may_not_be_altered
push edi
call fcn.10037890
add esp, 0xc
jmp 0x1009ca0f
push 0
push ecx
push dword [ebp - 0x10]
mov edx, 0x1a
mov ecx, edi
call fcn.100a4e70
add esp, 0xc
test eax, eax
jne 0x1009ca0f
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.100ac2a0
test eax, eax
jne 0x1009ca0f
mov eax, dword [ebp - 4]
mov dword [ebp - 8], esi
cmp byte [eax + 0x2b], 1
jne 0x1009c85d
mov ebx, dword [eax + 0x34]
mov dword [ebp - 8], esi
test ebx, ebx
je 0x1009c850
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], esi
cmp dword [ebx], eax
je 0x1009c850
mov ebx, dword [ebx + 0x18]
test ebx, ebx
jne 0x1009c845
mov eax, dword [ebx + 8]
xor ecx, ecx
mov eax, dword [eax]
cmp dword [eax + 0x4c], ecx
cmove ebx, ecx
mov eax, dword [edi + 8]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1009c86c
lea ecx, [edi + 0x74]
jmp 0x1009c893
cmp dword [edi + 0x74], 0
jne 0x1009c87e
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x1009c87e
mov byte [edi + 0x17], 1
mov ecx, edi
call fcn.1006a3c0
mov dword [ebp - 0x14], eax
lea ecx, [edi + 0x74]
test eax, eax
je 0x1009ca0f
mov eax, dword [ecx]
test eax, eax
mov ecx, edi
cmovne ecx, eax
mov eax, dword [ebp - 4]
or edx, 0xffffffff
mov byte [ecx + 0x15], 1
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x20], eax
call fcn.100374b0
xor ecx, ecx
mov esi, eax
cmp dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x20]
push eax
sete cl
push ecx
push dword [ebp - 8]
mov dword [ebp - 0x28], ecx
push eax
mov eax, dword [ebp - 0x10]
push eax
push eax
push str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_table__Q__type__name__sql___Q___Q___d__WHERE__type_index_OR_tbl_name_Q_COLLATE_nocase_AND___name_NOT_LIKE_sqliteX____ESCAPE_X
push edi
call fcn.100a5810
push dword [ebp - 0x20]
mov eax, dword [ebp - 8]
push esi
mov esi, dword [ebp - 0x10]
push eax
push eax
push eax
push esi
push str.UPDATE__Q.sqlite_master_SET_tbl_name___Q__name__CASE_WHEN_typetable_THEN__Q_WHEN_name_LIKE_sqliteX_autoindex___ESCAPE_X______AND_typeindex_THEN_sqlite_autoindex____Q__substr_name__d18__ELSE_name_END_WHERE_tbl_name_Q_COLLATE_nocase_AND__typetable_OR_typeindex_OR_typetrigger__
push edi
call fcn.100a5810
mov ecx, dword [ebp - 0xc]
add esp, 0x40
mov edx, str.sqlite_sequence
push esi
call fcn.100a5a10
add esp, 4
test eax, eax
je 0x1009c921
mov eax, dword [ebp - 4]
push dword [eax]
push dword [ebp - 8]
push esi
push str.UPDATE___w_.sqlite_sequence_set_name___Q_WHERE_name___Q
push edi
call fcn.100a5810
add esp, 0x14
cmp dword [ebp - 0x18], 1
je 0x1009c941
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
push eax
push esi
push ecx
push eax
push ecx
push esi
push str.UPDATE_sqlite_temp_schema_SET_sql__sqlite_rename_table__Q__type__name__sql___Q___Q__1___tbl_name__CASE_WHEN_tbl_name_Q_COLLATE_nocase_AND___sqlite_rename_test__Q__sql__type__name__1__after_rename__0__THEN__Q_ELSE_tbl_name_END_WHERE_type_IN__view__trigger_
push edi
call fcn.100a5810
add esp, 0x20
test ebx, ebx
je 0x1009c997
inc dword [edi + 0x2c]
mov edx, 0x75
mov esi, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x14]
push 0
push esi
push 0
call fcn.1006a700
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov edx, eax
push 0
push dword [ebp - 8]
call fcn.1006bf20
mov ecx, dword [ebp - 0x14]
mov edx, 0xb0
push 0
push 0
push esi
call fcn.1006a700
mov ecx, dword [ebp - 0x14]
add esp, 0x14
mov edx, eax
push 0xfffffffffffffff5
push ebx
call fcn.1006bf20
mov esi, dword [ebp - 0x10]
add esp, 8
cmp dword [edi + 8], 0
mov ebx, dword [ebp - 0x18]
je 0x1009c9d3
mov edx, ebx
mov ecx, edi
call fcn.100a9cb0
mov ecx, dword [edi + 8]
mov edx, ebx
push 1
push 0
call fcn.1006aaf0
add esp, 8
cmp ebx, 1
je 0x1009c9d3
mov ecx, dword [edi + 8]
mov edx, 1
push 1
push 0
call fcn.1006aaf0
add esp, 8
push 0
push str.after_rename
push dword [ebp - 0x28]
mov byte [edi + 0x10], 1
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
call fcn.100a5810
add esp, 0x1c
cmp ebx, 1
je 0x1009ca0c
push 0
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
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
call fcn.100b05b0
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x1009ca69
mov eax, dword [0x1024512c]
test eax, eax
jne 0x1009ca48
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 0x1009ca69
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 esi, esi
je 0x1009ca76
mov edx, esi
mov ecx, ebx
call fcn.10030890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push str.there_is_already_another_table_or_index_with_this_name:__s
push edi
call fcn.10037890
add esp, 0xc
jmp 0x1009ca0f
xor esi, esi
jmp 0x1009ca0f