Function at 0x46a440
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
mov ebx, ecx
push esi
push edi
mov edi, edx
mov dword [esp + 0x10], ebx
mov edx, dword [ebx]
mov dword [esp + 0x48], edi
mov dword [esp + 0x2c], edx
cmp byte [edx + 0x57], 0
jne 0x46acf7
mov edx, dword [edi + 8]
test edx, edx
je 0x46a48f
mov esi, dword [esp + 0x2c]
xor ecx, ecx
mov esi, dword [esi + 0x10]
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x46a488
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x46a480
add ecx, ecx
mov eax, dword [esi + ecx*8]
jmp 0x46a492
mov eax, dword [edi + 0xc]
push eax
push dword [edi + 0x10]
xor edx, edx
mov ecx, ebx
call fcn.0046eb90
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
test esi, esi
je 0x46acf7
mov edx, esi
mov ecx, ebx
call fcn.00466160
test eax, eax
jne 0x46acf7
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x46a4dc
mov ecx, str.virtual_table
jmp 0x46a4e0
test ecx, ecx
je 0x46a508
push dword [esi]
push ecx
push str.drop_column_from
push str.cannot__s__s___s_
push ebx
call fcn.0041c7c0
mov ecx, dword [esp + 0x40]
add esp, 0x14
mov edx, edi
call fcn.00476d60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
test edi, edi
je 0x46acf3
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [esp + 0x4c], eax
test eax, eax
je 0x46a551
xor eax, eax
mov ecx, ebx
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004190c0
mov esi, eax
add esp, 8
test esi, esi
je 0x46a553
push ebx
push dword [esp + 0x50]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebx + esi], 0
jmp 0x46a553
xor esi, esi
mov ecx, esi
call fcn.0041c850
test esi, esi
je 0x46acf3
mov ebx, dword [esp + 0x14]
mov edx, esi
mov ecx, ebx
call fcn.00493ec0
mov dword [esp + 0x40], eax
test eax, eax
jns 0x46a58e
push edi
push str.no_such_column:___T_
push dword [esp + 0x18]
call fcn.0041c7c0
add esp, 0xc
jmp 0x46ace8
mov ecx, eax
mov eax, dword [ebx + 4]
shl ecx, 4
mov dword [esp + 0x4c], ecx
movzx eax, word [ecx + eax + 0xe]
test al, 9
je 0x46a5ca
test al, 1
mov ecx, str.UNIQUE
push esi
mov eax, str.PRIMARY_KEY
cmove eax, ecx
push eax
push str.cannot_drop__s_column:___s_
push dword [esp + 0x1c]
call fcn.0041c7c0
add esp, 0x10
jmp 0x46ace8
cmp word [ebx + 0x22], 1
jg 0x46a5e8
push esi
push str.cannot_drop_column___s_:_no_other_columns_exist
push dword [esp + 0x18]
call fcn.0041c7c0
add esp, 0xc
jmp 0x46ace8
mov ecx, dword [ebx + 0x3c]
mov edx, esi
mov dword [esp + 0x28], edx
mov edi, 0xffff8000
test ecx, ecx
je 0x46a61a
mov eax, dword [esp + 0x2c]
xor edi, edi
mov dword [esp + 0x28], edx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x46a61a
mov dword [esp + 0x28], esi
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x46a612
mov eax, dword [esp + 0x2c]
mov ecx, edi
add ecx, ecx
push edx
push dword [ebx]
mov eax, dword [eax + 0x10]
mov edx, 0x1a
mov esi, dword [eax + ecx*8]
mov ecx, dword [esp + 0x18]
push esi
call fcn.0046dcc0
add esp, 0xc
test eax, eax
jne 0x46ace4
mov eax, dword [esp + 0x10]
xor ebx, ebx
push 0
push 0x5590e3
cmp edi, 1
mov byte [eax + 0x10], 1
sete bl
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 eax
call fcn.0046e690
add esp, 0x1c
cmp edi, 1
je 0x46a6ae
push 0
push 0x5590e3
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 dword [esp + 0x20]
call fcn.0046e690
add esp, 0x14
push esi
push esi
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 dword [esp + 0x1c]
call fcn.0046e690
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 dword [esp + 0x24]
call fcn.0046e690
add esp, 0x18
jmp 0x46a6c1
push esi
push esi
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 dword [esp + 0x1c]
call fcn.0046e690
add esp, 0x10
mov eax, dword [esp + 0x14]
push dword [eax]
push dword [esp + 0x44]
push edi
push esi
push str.UPDATE___w_.sqlite_master_SET_sql__sqlite_drop_column__d__sql___d__WHERE__typetable_AND_tbl_name_Q_COLLATE_nocase_
push dword [esp + 0x24]
call fcn.0046e690
mov ecx, dword [esp + 0x28]
mov edx, edi
push 2
call fcn.00466240
mov eax, dword [esp + 0x2c]
add esp, 0x1c
push 1
push str.after_drop_column
push ebx
push esi
push esi
mov ebx, eax
mov byte [eax + 0x10], 1
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 ebx
call fcn.0046e690
add esp, 0x1c
cmp edi, 1
je 0x46a728
push 1
push str.after_drop_column
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 ebx
call fcn.0046e690
add esp, 0x14
cmp dword [ebx + 0x24], 0
jne 0x46ace4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax + 4]
test byte [ecx + eax + 0xe], 0x20
jne 0x46ace4
mov esi, dword [ebx + 8]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
test esi, esi
jne 0x46a776
cmp dword [ebx + 0x80], eax
jne 0x46a76d
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x46a76d
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.00441d60
mov esi, eax
mov eax, dword [ebx + 0x28]
mov edx, eax
push 0x71
push dword [esp + 0x18]
mov dword [esp + 0x20], eax
lea ecx, [eax + 1]
mov dword [ebx + 0x28], ecx
mov ecx, ebx
push edi
call fcn.00483040
mov ecx, dword [esi + 0x6c]
lea edi, [esi + 0x68]
add esp, 0xc
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], edi
cmp dword [esi + 0x70], ecx
jg 0x46a7ca
push 0
push 0
push dword [esp + 0x20]
mov edx, 0x24
mov ecx, esi
call fcn.00441fb0
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x44], eax
jmp 0x46a800
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi]
mov dword [esp + 0x38], edi
mov dword [eax + ecx*4], 0x24
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x2c]
mov edi, dword [esp + 0x14]
inc eax
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x1c], eax
test byte [edi + 0x1c], 0x80
jne 0x46a87e
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x46a83e
push 0
push eax
push edx
mov edx, 0x87
mov ecx, esi
call fcn.00441fb0
movsx ecx, word [edi + 0x22]
add esp, 0xc
add ecx, dword [ebx + 0x2c]
xor edx, edx
jmp 0x46a948
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4], 0x87
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
movsx ecx, word [edi + 0x22]
add ecx, dword [ebx + 0x2c]
xor edx, edx
jmp 0x46a948
mov edx, dword [edi + 8]
mov dword [esp + 0x20], edx
test edx, edx
je 0x46a8a4
nop dword [eax]
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
je 0x46a8a0
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x46a890
mov dword [esp + 0x20], edx
movzx eax, word [edx + 0x34]
xor edi, edi
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov dword [ebx + 0x2c], ecx
movzx eax, word [edx + 0x32]
mov ebx, eax
mov dword [esp + 0x4c], ebx
xor ebx, ebx
cmp bx, ax
mov ebx, dword [esp + 0x10]
jae 0x46a93d
mov ebx, dword [esp + 0x18]
nop dword [eax]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x46a8f7
mov eax, dword [esp + 0x1c]
mov edx, 0x5e
inc eax
mov ecx, esi
add eax, edi
push eax
push edi
push ebx
call fcn.00441fb0
mov edx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x46a929
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x5e
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edi
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [ecx + 0x10], 0
add eax, edi
mov dword [ecx + 0xc], eax
movzx ecx, word [edx + 0x32]
inc edi
cmp edi, ecx
jl 0x46a8d0
mov ebx, dword [esp + 0x10]
mov eax, ecx
mov ecx, dword [ebx + 0x2c]
jmp 0x46a941
mov eax, dword [esp + 0x4c]
movzx eax, ax
mov dword [esp + 0x30], eax
lea eax, [ecx + 1]
xor edi, edi
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x24], edi
cmp ax, word [ecx + 0x22]
jge 0x46aaee
xor ebx, ebx
mov dword [esp + 0x3c], ebx
jmp 0x46a974
mov edx, dword [esp + 0x20]
cmp edi, dword [esp + 0x40]
je 0x46aad0
add ebx, dword [ecx + 4]
mov dword [esp + 0x4c], ebx
test byte [ebx + 0xe], 0x20
jne 0x46aad0
test edx, edx
je 0x46aa0d
movzx edx, word [edx + 0x34]
xor ecx, ecx
mov ebx, dword [esp + 0x20]
test edx, edx
je 0x46a9b1
mov eax, dword [ebx + 4]
cmp di, word [eax]
je 0x46a9fe
inc ecx
add eax, 2
cmp ecx, edx
jl 0x46a9a4
or edi, 0xffffffff
xor ecx, ecx
test edx, edx
je 0x46a9d1
mov eax, dword [ebx + 4]
mov ebx, dword [esp + 0x40]
movzx ebx, bx
cmp bx, word [eax]
je 0x46aa08
inc ecx
add eax, 2
cmp ecx, edx
jl 0x46a9c4
or ecx, 0xffffffff
mov eax, dword [esp + 0x20]
movzx eax, word [eax + 0x32]
cmp edi, eax
jl 0x46aac8
mov ebx, dword [esp + 0x4c]
movsx eax, cx
xor ecx, ecx
cmp edi, eax
setg cl
sub edi, ecx
mov ecx, dword [esp + 0x14]
add edi, dword [esp + 0x1c]
jmp 0x46aa15
movzx eax, cx
xor ecx, ecx
movsx edi, ax
jmp 0x46a9ba
movzx ecx, cx
jmp 0x46a9d4
mov edi, dword [esp + 0x1c]
add edi, dword [esp + 0x30]
movsx eax, word [ecx + 0x20]
inc edi
cmp dword [esp + 0x24], eax
jne 0x46aa8d
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x46aa4d
push 0
push edi
push 0
mov edx, 0x4b
mov ecx, esi
call fcn.00441fb0
mov edi, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x14]
inc dword [esp + 0x30]
jmp 0x46aad0
inc dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x4b
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
jmp 0x46aad0
mov bl, byte [ebx + 8]
cmp bl, 0x45
jne 0x46aa9d
mov eax, dword [esp + 0x4c]
mov byte [eax + 8], 0x43
push edi
mov edi, dword [esp + 0x28]
mov edx, ecx
push edi
push dword [esp + 0x20]
mov ecx, esi
call fcn.00461160
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x3c]
inc dword [esp + 0x30]
mov eax, dword [ecx + 4]
mov byte [edx + eax + 8], bl
jmp 0x46aad0
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
add dword [esp + 0x3c], 0x10
inc edi
movsx eax, word [ecx + 0x22]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x24], edi
cmp edi, eax
jl 0x46a970
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x46ab57
inc dword [ebx + 0x2c]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x6c]
lea edi, [ebx + 1]
cmp dword [esi + 0x70], ecx
jg 0x46ab21
push edx
push edi
push edx
mov edx, 0x4b
mov ecx, esi
call fcn.00441fb0
add esp, 0xc
mov edx, 1
jmp 0x46ab5b
lea eax, [ecx + 1]
mov edx, 1
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x4b
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x46ab5b
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x6c]
lea edi, [ebx + 1]
cmp dword [esi + 0x70], ecx
jg 0x46ab81
push dword [esp + 0x34]
mov ecx, esi
push edx
push edi
mov edx, 0x61
call fcn.00441fb0
mov edx, dword [esp + 0x40]
add esp, 0xc
jmp 0x46abb0
mov ebx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x61
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x6c]
test eax, eax
je 0x46ac10
movzx edx, word [eax + 0x32]
mov ebx, dword [esp + 0x18]
cmp dword [esi + 0x70], ecx
jg 0x46abe3
push edx
push edi
push dword [esp + 0x3c]
mov edx, 0x8a
mov ecx, esi
push ebx
call fcn.00441ff0
add esp, 0x10
jmp 0x46ac5c
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0xfd8a
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], edx
jmp 0x46ac5c
cmp dword [esi + 0x70], ecx
jg 0x46ac2d
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, esi
push edx
push ebx
mov edx, 0x80
call fcn.00441fb0
add esp, 0xc
jmp 0x46ac5c
mov ebx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x46ac73
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edi, dword [esp + 0x44]
mov ecx, dword [esi + 0x6c]
lea edx, [edi + 1]
cmp dword [esi + 0x70], ecx
jg 0x46ac97
push 0
push edx
push ebx
mov edx, 0x27
mov ecx, esi
call fcn.00441fb0
add esp, 0xc
jmp 0x46acc6
mov edi, dword [esp + 0x44]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x27
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x46acd8
mov eax, 0x5732c0
jmp 0x46ace1
mov eax, dword [esi + 0x68]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
call fcn.00418c30
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
mov edx, edi
call fcn.00476d60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret