Function at 0x10077810
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov ebx, ecx
push esi
push edi
mov edi, edx
mov dword [esp + 0x18], ebx
mov edx, dword [ebx]
mov dword [esp + 0x40], edi
mov dword [esp + 0x20], edx
cmp byte [edx + 0x57], 0
jne 0x1007804a
mov edx, dword [edi + 8]
test edx, edx
je 0x1007785f
mov esi, dword [esp + 0x20]
xor ecx, ecx
mov esi, dword [esi + 0x10]
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x10077858
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x10077850
add ecx, ecx
mov eax, dword [esi + ecx*8]
jmp 0x10077862
mov eax, dword [edi + 0xc]
push eax
push dword [edi + 0x10]
xor edx, edx
mov ecx, ebx
call fcn.1007be70
mov esi, eax
add esp, 8
mov dword [esp + 0xc], esi
test esi, esi
je 0x1007804a
mov edx, esi
mov ecx, ebx
call fcn.10073630
test eax, eax
jne 0x1007804a
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x100778ac
mov ecx, str.virtual_table
jmp 0x100778b0
test ecx, ecx
je 0x100778d8
push dword [esi]
push ecx
push str.drop_column_from
push str.cannot__s__s___s_
push ebx
call fcn.1002b880
mov ecx, dword [esp + 0x34]
add esp, 0x14
mov edx, edi
call fcn.10084010
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
test edi, edi
je 0x10078046
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x1007792c
mov ecx, eax
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.10028280
mov esi, eax
add esp, 8
test esi, esi
je 0x1007792e
push dword [esp + 0x3c]
push dword [esp + 0x48]
push esi
call fcn.1013c1a0
mov eax, dword [esp + 0x48]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x1007792e
xor esi, esi
mov ecx, esi
call fcn.1002b910
test esi, esi
je 0x10078046
mov ecx, dword [esp + 0xc]
mov edx, esi
call fcn.100a0870
mov dword [esp + 0x34], eax
test eax, eax
jns 0x10077966
push edi
push str.no_such_column:___T_
push ebx
call fcn.1002b880
add esp, 0xc
mov eax, esi
jmp 0x1007803b
mov edx, dword [esp + 0xc]
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x3c], ecx
mov eax, dword [edx + 4]
movzx eax, word [ecx + eax + 0xe]
test al, 9
je 0x100779a5
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 ebx
call fcn.1002b880
add esp, 0x10
mov eax, esi
jmp 0x1007803b
cmp word [edx + 0x22], 1
jg 0x100779c2
push esi
push str.cannot_drop_column___s_:_no_other_columns_exist
push ebx
call fcn.1002b880
add esp, 0xc
mov eax, esi
jmp 0x1007803b
mov ecx, dword [edx + 0x3c]
mov edi, 0xffff8000
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x100779f8
mov eax, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x1c], esi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x100779f8
mov dword [esp + 0x1c], esi
nop word [eax + eax]
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x100779f0
mov eax, dword [esp + 0x20]
mov ecx, edi
push dword [esp + 0x1c]
add ecx, ecx
push dword [edx]
mov eax, dword [eax + 0x10]
mov edx, 0x1a
mov esi, dword [eax + ecx*8]
mov ecx, ebx
push esi
call fcn.1007b010
add esp, 0xc
test eax, eax
jne 0x10078037
push 0
push 0x101675d3
cmp edi, 1
mov byte [ebx + 0x10], 1
sete al
push eax
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 ebx
mov dword [esp + 0x60], eax
call fcn.1007b990
add esp, 0x1c
cmp edi, 1
je 0x10077a82
push 0
push 0x101675d3
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.1007b990
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 ebx
call fcn.1007b990
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 ebx
call fcn.1007b990
add esp, 0x18
jmp 0x10077a92
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 ebx
call fcn.1007b990
add esp, 0x10
mov eax, dword [esp + 0xc]
push dword [eax]
push dword [esp + 0x38]
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 ebx
call fcn.1007b990
push 2
mov edx, edi
mov ecx, ebx
call fcn.10073700
add esp, 0x1c
mov byte [ebx + 0x10], 1
push 1
push str.after_drop_column
push dword [esp + 0x4c]
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 ebx
call fcn.1007b990
add esp, 0x1c
cmp edi, 1
je 0x10077af1
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.1007b990
add esp, 0x14
cmp dword [ebx + 0x24], 0
jne 0x10078037
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 4]
test byte [ecx + eax + 0xe], 0x20
jne 0x10078037
mov edx, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov esi, dword [edx + 8]
test esi, esi
jne 0x10077b43
cmp dword [edx + 0x80], ebx
jne 0x10077b36
mov eax, dword [edx]
test byte [eax + 0x50], 8
jne 0x10077b36
mov byte [edx + 0x17], 1
mov ecx, edx
call fcn.1004fb00
mov edx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [edx + 0x28]
push 0x71
push dword [esp + 0x10]
mov dword [esp + 0x18], eax
lea ecx, [eax + 1]
mov dword [edx + 0x28], ecx
mov edx, eax
push edi
mov edi, dword [esp + 0x24]
mov ecx, edi
call fcn.100909d0
mov ecx, dword [esi + 0x6c]
lea edx, [esi + 0x68]
add esp, 0xc
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], edx
cmp dword [esi + 0x70], ecx
jg 0x10077b9b
push 0
push 0
push dword [esp + 0x18]
mov edx, 0x24
mov ecx, esi
call fcn.1004fd40
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x3c], eax
jmp 0x10077bc8
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x24
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
lea eax, [esi + 0x68]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [esp + 0xc]
inc eax
mov dword [edi + 0x2c], eax
mov dword [esp + 0x14], eax
test byte [ecx + 0x1c], 0x80
jne 0x10077c42
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x10077c08
push 0
push eax
push edx
mov edx, 0x87
mov ecx, esi
call fcn.1004fd40
mov ecx, dword [esp + 0x18]
add esp, 0xc
movsx edx, word [ecx + 0x22]
add edx, dword [edi + 0x2c]
jmp 0x10077d07
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x87
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
mov ecx, dword [esp + 0xc]
movsx edx, word [ecx + 0x22]
add edx, dword [edi + 0x2c]
jmp 0x10077d07
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x10077c60
nop dword [eax]
mov eax, dword [ebx + 0x38]
and al, 3
cmp al, 2
je 0x10077c60
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x10077c50
movzx eax, word [ebx + 0x34]
mov edx, dword [esp + 0x14]
add edx, eax
mov dword [edi + 0x2c], edx
xor edi, edi
movzx eax, word [ebx + 0x32]
mov ecx, eax
mov dword [esp + 0x44], ecx
xor ecx, ecx
cmp cx, ax
mov ecx, dword [esp + 0xc]
jae 0x10077cf8
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x10077caa
mov eax, dword [esp + 0x14]
mov edx, 0x5e
inc eax
mov ecx, esi
add eax, edi
push eax
push edi
push dword [esp + 0x18]
call fcn.1004fd40
add esp, 0xc
jmp 0x10077ce0
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x5e
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x14]
inc eax
add eax, edi
mov dword [ecx + 0xc], eax
movzx ecx, word [ebx + 0x32]
inc edi
cmp edi, ecx
jl 0x10077c84
mov edi, dword [esp + 0x18]
mov eax, ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [edi + 0x2c]
jmp 0x10077d00
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
movzx eax, ax
mov dword [esp + 0x24], eax
lea eax, [edx + 1]
xor edx, edx
mov dword [edi + 0x2c], eax
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x30], edx
cmp ax, word [ecx + 0x22]
jge 0x10077e58
mov edi, dword [esp + 0xc]
xor ecx, ecx
mov dword [esp + 0x38], ecx
nop dword [eax]
cmp edx, dword [esp + 0x34]
je 0x10077e3c
mov eax, dword [edi + 4]
test byte [eax + ecx + 0xe], 0x20
jne 0x10077e3c
test ebx, ebx
je 0x10077da9
movzx eax, word [ebx + 0x34]
xor ecx, ecx
mov dword [esp + 0x44], eax
test eax, eax
je 0x10077d6f
mov eax, dword [ebx + 4]
nop dword [eax]
cmp dx, word [eax]
je 0x10077da4
inc ecx
add eax, 2
cmp ecx, dword [esp + 0x44]
jl 0x10077d60
or eax, 0xffffffff
movsx ecx, ax
movzx eax, word [ebx + 0x32]
mov dword [esp + 0x44], ecx
cmp ecx, eax
jl 0x10077e38
mov edx, dword [esp + 0x34]
mov ecx, ebx
call fcn.1007cc20
mov edx, dword [esp + 0x44]
xor ecx, ecx
cwde
cmp edx, eax
setg cl
sub edx, ecx
add edx, dword [esp + 0x14]
jmp 0x10077db1
movzx eax, cx
jmp 0x10077d72
mov edx, dword [esp + 0x14]
add edx, dword [esp + 0x24]
movsx eax, word [edi + 0x20]
lea ecx, [edx + 1]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
cmp edx, eax
jne 0x10077e1e
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x10077de2
push 0
push dword [esp + 0x48]
mov edx, 0x4b
mov ecx, esi
push 0
call fcn.1004fd40
jmp 0x10077e2d
mov edi, dword [esp + 0x44]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0xc]
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
jmp 0x10077e34
push ecx
push edx
push dword [esp + 0x18]
mov edx, edi
mov ecx, esi
call fcn.1006e720
mov edx, dword [esp + 0x3c]
add esp, 0xc
inc dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
movsx eax, word [edi + 0x22]
inc edx
add ecx, 0x10
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
cmp edx, eax
jl 0x10077d30
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x10077eb8
inc dword [edi + 0x2c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
inc edi
cmp dword [esi + 0x70], ecx
jg 0x10077e84
push edx
push edi
push edx
mov edx, 0x4b
mov ecx, esi
call fcn.1004fd40
add esp, 0xc
jmp 0x10077eb3
lea eax, [ecx + 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
mov edx, 1
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
inc edi
cmp dword [esi + 0x70], ecx
jg 0x10077ee0
push dword [esp + 0x28]
mov ecx, esi
push edx
push edi
mov edx, 0x61
call fcn.1004fd40
mov edx, dword [esp + 0x34]
add esp, 0xc
jmp 0x10077f0b
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 + 0x28]
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 ecx, dword [esi + 0x6c]
test ebx, ebx
je 0x10077f64
movzx edx, word [ebx + 0x32]
mov ebx, dword [esp + 0x10]
cmp dword [esi + 0x70], ecx
jg 0x10077f37
push edx
push edi
push dword [esp + 0x30]
mov edx, 0x8a
mov ecx, esi
push ebx
call fcn.1004fd80
add esp, 0x10
jmp 0x10077faf
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 + 0x28]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0xfd8a
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], edx
jmp 0x10077faf
mov ebx, dword [esp + 0x10]
cmp dword [esi + 0x70], ecx
jg 0x10077f84
push dword [esp + 0x14]
mov ecx, esi
push edx
push ebx
mov edx, 0x80
call fcn.1004fd40
add esp, 0xc
jmp 0x10077faf
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 + 0x14]
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 0x10077fc6
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edi, dword [esp + 0x3c]
mov ecx, dword [esi + 0x6c]
lea edx, [edi + 1]
cmp dword [esi + 0x70], ecx
jg 0x10077fea
push 0
push edx
push ebx
mov edx, 0x27
mov ecx, esi
call fcn.1004fd40
add esp, 0xc
jmp 0x10078019
mov edi, dword [esp + 0x3c]
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 0x1007802b
mov eax, 0x1017bac0
jmp 0x10078034
mov eax, dword [esi + 0x68]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, eax
call fcn.10027de0
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.10084010
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret