Function at 0x476300
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov ebx, ecx
mov dword [esp + 0x14], edx
push esi
push edi
mov dword [esp + 0x30], ebx
mov esi, dword [ebx]
mov dword [esp + 0x28], esi
cmp byte [esi + 0x57], 0
jne 0x476b2c
mov ecx, edx
mov edx, dword [ecx + 8]
test edx, edx
je 0x476353
mov esi, dword [esi + 0x10]
xor ecx, ecx
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x476348
nop dword [eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x476340
add ecx, ecx
mov eax, dword [esi + ecx*8]
mov ecx, dword [esp + 0x1c]
jmp 0x476356
mov eax, dword [ecx + 0xc]
push eax
push dword [ecx + 0x10]
xor edx, edx
mov ecx, ebx
call fcn.0047aa70
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
je 0x476b28
mov edx, edi
mov ecx, ebx
call fcn.00472110
test eax, eax
jne 0x476b28
xor edx, edx
mov ecx, str.view
cmp byte [edi + 0x2b], 2
cmovne ecx, edx
cmp byte [edi + 0x2b], 1
jne 0x4763a0
mov ecx, str.virtual_table
jmp 0x4763a4
test ecx, ecx
je 0x4763ce
push dword [edi]
push ecx
push str.drop_column_from
push str.cannot__s__s___s_
push ebx
call fcn.0042b560
mov edx, dword [esp + 0x30]
add esp, 0x14
mov ecx, dword [esp + 0x28]
call fcn.004829b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov edx, esi
mov ecx, dword [esp + 0x28]
call fcn.0047b460
mov dword [esp + 0x34], eax
test eax, eax
je 0x476b28
mov edx, eax
mov ecx, edi
call fcn.0049e7e0
mov dword [esp + 0x38], eax
test eax, eax
jns 0x47640d
push esi
push str.no_such_column:___T_
push ebx
call fcn.0042b560
add esp, 0xc
jmp 0x476b1b
mov ecx, eax
mov eax, dword [edi + 4]
shl ecx, 4
mov dword [esp + 0x40], ecx
movzx eax, word [ecx + eax + 0xe]
test al, 9
je 0x476449
push dword [esp + 0x34]
test al, 1
mov ecx, str.UNIQUE
mov eax, str.PRIMARY_KEY
cmove eax, ecx
push eax
push str.cannot_drop__s_column:___s_
push ebx
call fcn.0042b560
add esp, 0x10
jmp 0x476b1b
cmp word [edi + 0x22], 1
jg 0x476467
push dword [esp + 0x34]
push str.cannot_drop_column___s_:_no_other_columns_exist
push ebx
call fcn.0042b560
add esp, 0xc
jmp 0x476b1b
mov ecx, dword [edi + 0x3c]
mov edi, 0xffff8000
test ecx, ecx
je 0x47648b
mov eax, dword [esp + 0x28]
xor edi, edi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x47648b
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x476483
mov eax, dword [esp + 0x28]
mov ecx, edi
push dword [esp + 0x34]
add ecx, ecx
mov edx, 0x1a
mov eax, dword [eax + 0x10]
mov esi, dword [eax + ecx*8]
mov ecx, ebx
mov eax, dword [esp + 0x18]
push dword [eax]
push esi
call fcn.00479b90
add esp, 0xc
test eax, eax
jne 0x476b1b
push 0
push 0x4e76a1
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.0047a570
add esp, 0x1c
cmp edi, 1
je 0x476519
push 0
push 0x4e76a1
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.0047a570
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.0047a570
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.0047a570
add esp, 0x18
jmp 0x476529
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.0047a570
add esp, 0x10
mov eax, dword [esp + 0x14]
push dword [eax]
push dword [esp + 0x3c]
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.0047a570
push 2
mov edx, edi
mov ecx, ebx
call fcn.004721f0
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.0047a570
add esp, 0x1c
cmp edi, 1
je 0x476588
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.0047a570
add esp, 0x14
cmp dword [ebx + 0x24], 0
jne 0x476b1b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 4]
test byte [ecx + eax + 0xe], 0x20
jne 0x476b1b
mov esi, dword [ebx + 8]
xor edx, edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], edx
test esi, esi
jne 0x4765d7
cmp dword [ebx + 0x7c], edx
jne 0x4765ce
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x4765ce
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.0044eed0
mov esi, eax
mov eax, dword [ebx + 0x28]
mov edx, eax
push 0x71
push dword [esp + 0x18]
mov dword [esp + 0x14], eax
lea ecx, [eax + 1]
mov dword [ebx + 0x28], ecx
mov ecx, ebx
push edi
call fcn.0048e690
mov ecx, dword [esi + 0x6c]
lea edi, [esi + 0x68]
add esp, 0xc
mov dword [esp + 0x44], ecx
mov dword [esp + 0x2c], edi
cmp dword [esi + 0x70], ecx
jg 0x47662b
push 0
push 0
push dword [esp + 0x14]
mov edx, 0x24
mov ecx, esi
call fcn.0044f120
mov edx, dword [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x44], eax
jmp 0x476661
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi]
mov dword [esp + 0x2c], 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 + 0x10], eax
test byte [edi + 0x1c], 0x80
jne 0x4766e3
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4766a1
push 0
push eax
push edx
mov edx, 0x87
mov ecx, esi
call fcn.0044f120
movsx ecx, word [edi + 0x22]
add esp, 0xc
add ecx, dword [ebx + 0x2c]
xor edx, edx
xor edi, edi
jmp 0x4767a8
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 + 0x10]
mov dword [eax + ecx*4 + 8], edx
xor edx, 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 edi, edi
jmp 0x4767a8
mov edx, dword [edi + 8]
mov dword [esp + 0x18], edx
test edx, edx
je 0x476704
nop
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
je 0x476700
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x4766f0
mov dword [esp + 0x18], edx
movzx eax, word [edx + 0x34]
xor edi, edi
mov ecx, dword [esp + 0x10]
add ecx, eax
mov dword [ebx + 0x2c], ecx
movzx eax, word [edx + 0x32]
mov ebx, eax
mov dword [esp + 0x40], ebx
xor ebx, ebx
cmp bx, ax
mov ebx, dword [esp + 0x30]
jae 0x47679d
mov ebx, dword [esp + 0xc]
nop dword [eax]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x476757
mov eax, dword [esp + 0x10]
mov edx, 0x5e
inc eax
mov ecx, esi
add eax, edi
push eax
push edi
push ebx
call fcn.0044f120
mov edx, dword [esp + 0x24]
add esp, 0xc
jmp 0x476789
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 + 4], ebx
mov dword [eax + ecx*4 + 8], edi
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x10]
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 0x476730
mov ebx, dword [esp + 0x30]
mov eax, ecx
mov ecx, dword [ebx + 0x2c]
jmp 0x4767a1
mov eax, dword [esp + 0x40]
movzx edi, ax
mov dword [esp + 0x20], edi
lea eax, [ecx + 1]
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x24], eax
xor eax, eax
cmp ax, word [ecx + 0x22]
jge 0x476926
mov dword [esp + 0x40], eax
xor ebx, ebx
cmp ebx, dword [esp + 0x38]
je 0x47690c
mov edx, dword [esp + 0x40]
mov eax, dword [ecx + 4]
test byte [eax + edx + 0xe], 0x20
mov edx, dword [esp + 0x18]
jne 0x47690c
test edx, edx
je 0x476864
movzx edx, word [edx + 0x34]
xor ecx, ecx
test edx, edx
je 0x476816
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
cmp bx, word [eax]
je 0x476898
inc ecx
add eax, 2
cmp ecx, edx
jl 0x476805
or edi, 0xffffffff
xor eax, eax
test edx, edx
je 0x47683d
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
movzx ebx, bx
mov ecx, dword [ecx + 4]
nop dword [eax]
cmp bx, word [ecx]
je 0x4768a5
inc eax
add ecx, 2
cmp eax, edx
jl 0x476830
or ecx, 0xffffffff
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x3c]
movzx eax, word [eax + 0x32]
cmp edi, eax
jl 0x476904
movsx eax, cx
xor ecx, ecx
cmp edi, eax
setg cl
sub edi, ecx
mov ecx, dword [esp + 0x14]
add edi, dword [esp + 0x10]
movsx eax, word [ecx + 0x20]
inc edi
cmp ebx, eax
jne 0x4768e7
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4768aa
push 0
push edi
push 0
mov edx, 0x4b
mov ecx, esi
call fcn.0044f120
mov edi, dword [esp + 0x2c]
add esp, 0xc
inc edi
mov dword [esp + 0x20], edi
jmp 0x476908
movzx eax, cx
movsx edi, ax
xor eax, eax
jmp 0x47681f
movzx ecx, ax
jmp 0x476840
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 + 0x20]
inc edi
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 dword [esp + 0x20], edi
jmp 0x476908
push edi
push ebx
push dword [esp + 0x14]
mov edx, ecx
mov ecx, esi
call fcn.0046d1d0
mov edi, dword [esp + 0x2c]
add esp, 0xc
inc edi
mov dword [esp + 0x20], edi
jmp 0x476908
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
movsx eax, word [ecx + 0x22]
inc ebx
add dword [esp + 0x40], 0x10
mov dword [esp + 0x3c], ebx
cmp ebx, eax
jl 0x4767d0
mov ebx, dword [esp + 0x30]
test edi, edi
jne 0x47698d
inc dword [ebx + 0x2c]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x6c]
lea edi, [ebx + 1]
cmp dword [esi + 0x70], ecx
jg 0x476957
push 0
push edi
push 0
mov edx, 0x4b
mov ecx, esi
call fcn.0044f120
add esp, 0xc
mov edx, 1
jmp 0x476995
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 0x476995
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x6c]
lea edi, [ebx + 1]
cmp dword [esi + 0x70], ecx
jg 0x4769bb
push dword [esp + 0x24]
mov ecx, esi
push edx
push edi
mov edx, 0x61
call fcn.0044f120
mov edx, dword [esp + 0x30]
add esp, 0xc
jmp 0x4769ea
mov ebx, dword [esp + 0x10]
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 + 0x24]
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 + 0x18]
mov ecx, dword [esi + 0x6c]
test eax, eax
je 0x476a47
movzx edx, word [eax + 0x32]
mov ebx, dword [esp + 0xc]
cmp dword [esi + 0x70], ecx
jg 0x476a1a
push edx
push edi
push dword [esp + 0x2c]
mov edx, 0x8a
mov ecx, esi
push ebx
call fcn.0044f160
add esp, 0x10
jmp 0x476a93
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 + 0x24]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0xc]
mov dword [eax + ecx*4], 0xfd8a
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], edx
jmp 0x476a93
cmp dword [esi + 0x70], ecx
jg 0x476a64
push ebx
mov ebx, dword [esp + 0x10]
mov ecx, esi
push edx
push ebx
mov edx, 0x80
call fcn.0044f120
add esp, 0xc
jmp 0x476a93
mov ebx, dword [esp + 0xc]
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 + 0x10]
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 0x476aaa
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 0x476ace
push 0
push edx
push ebx
mov edx, 0x27
mov ecx, esi
call fcn.0044f120
add esp, 0xc
jmp 0x476afd
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 0x476b0f
mov eax, 0x4fec48
jmp 0x476b18
mov eax, dword [esi + 0x68]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
call fcn.004279d0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
call fcn.004829b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret