Function at 0x480eb0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
mov ebx, ecx
push esi
push edi
mov edi, edx
mov dword [esp + 0x2c], ebx
mov edx, dword [ebx]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x28], edx
cmp byte [edx + 0x57], 0
jne 0x48172e
mov edx, dword [edi + 8]
test edx, edx
je 0x480eff
mov esi, dword [esp + 0x28]
xor ecx, ecx
mov esi, dword [esi + 0x10]
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x480ef8
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x480ef0
add ecx, ecx
mov eax, dword [esi + ecx*8]
jmp 0x480f02
mov eax, dword [edi + 0xc]
push eax
push dword [edi + 0x10]
xor edx, edx
mov ecx, ebx
call fcn.004855d0
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
test esi, esi
je 0x48172e
mov edx, esi
mov ecx, ebx
call fcn.0047cb60
test eax, eax
jne 0x48172e
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x480f4c
mov ecx, str.virtual_table
jmp 0x480f50
test ecx, ecx
je 0x480f78
push dword [esi]
push ecx
push str.drop_column_from
push str.cannot__s__s___s_
push ebx
call fcn.00432d50
mov ecx, dword [esp + 0x3c]
add esp, 0x14
mov edx, edi
call fcn.0048d7c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
test edi, edi
je 0x48172a
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x480fcc
mov ecx, eax
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0042f570
mov esi, eax
add esp, 8
test esi, esi
je 0x480fce
push dword [esp + 0x48]
push dword [esp + 0x48]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x54]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x480fce
xor esi, esi
mov ecx, esi
call fcn.00432de0
test esi, esi
je 0x48172a
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.004aa780
mov dword [esp + 0x40], eax
test eax, eax
jns 0x481006
push edi
push str.no_such_column:___T_
push ebx
call fcn.00432d50
add esp, 0xc
mov eax, esi
jmp 0x48171f
mov edx, dword [esp + 0x14]
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x44], ecx
mov eax, dword [edx + 4]
movzx eax, word [ecx + eax + 0xe]
test al, 9
je 0x481045
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.00432d50
add esp, 0x10
mov eax, esi
jmp 0x48171f
cmp word [edx + 0x22], 1
jg 0x481062
push esi
push str.cannot_drop_column___s_:_no_other_columns_exist
push ebx
call fcn.00432d50
add esp, 0xc
mov eax, esi
jmp 0x48171f
mov ecx, dword [edx + 0x3c]
mov edi, 0xffff8000
mov dword [esp + 0x20], esi
test ecx, ecx
je 0x481098
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [esp + 0x20], esi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x481098
mov dword [esp + 0x20], esi
nop word [eax + eax]
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x481090
mov eax, dword [esp + 0x28]
mov ecx, edi
push dword [esp + 0x20]
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.00484700
add esp, 0xc
test eax, eax
jne 0x48171b
push 0
push 0x4fb681
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 + 0x64], eax
call fcn.004850d0
add esp, 0x1c
cmp edi, 1
je 0x481122
push 0
push 0x4fb681
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.004850d0
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.004850d0
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.004850d0
add esp, 0x18
jmp 0x481132
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.004850d0
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 ebx
call fcn.004850d0
push 2
mov edx, edi
mov ecx, ebx
call fcn.0047cc40
add esp, 0x1c
mov byte [ebx + 0x10], 1
push 1
push str.after_drop_column
push dword [esp + 0x50]
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.004850d0
add esp, 0x1c
cmp edi, 1
je 0x481191
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.004850d0
add esp, 0x14
cmp dword [ebx + 0x28], 0
jne 0x48171b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov eax, dword [eax + 4]
test byte [ecx + eax + 0xe], 0x20
jne 0x48171b
mov esi, dword [ebx + 8]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], ecx
test esi, esi
jne 0x4811df
cmp dword [ebx + 0x84], ecx
jne 0x4811d6
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x4811d6
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.00457d00
mov esi, eax
mov eax, dword [ebx + 0x2c]
push 0x71
push dword [esp + 0x18]
mov dword [esp + 0x24], eax
lea ecx, [eax + 1]
push edi
mov edi, eax
mov dword [ebx + 0x2c], ecx
mov edx, edi
mov ecx, ebx
call fcn.00499b50
mov ecx, dword [esi + 0x6c]
lea edx, [esi + 0x68]
add esp, 0xc
mov dword [esp + 0x48], ecx
mov dword [esp + 0x38], edx
cmp dword [esi + 0x70], ecx
jg 0x48122e
push 0
push 0
push edi
mov edx, 0x24
mov ecx, esi
call fcn.00457f50
add esp, 0xc
mov dword [esp + 0x48], eax
jmp 0x481260
lea eax, [ecx + 1]
mov dword [esp + 0x38], edx
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov dword [eax + ecx*4], 0x24
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x30]
mov ecx, dword [esp + 0x14]
inc edx
mov dword [ebx + 0x30], edx
mov dword [esp + 0x18], edx
test byte [ecx + 0x1c], 0x80
jne 0x4812e6
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4812a2
push 0
push edx
push edi
mov edx, 0x87
mov ecx, esi
call fcn.00457f50
mov ecx, dword [esp + 0x20]
add esp, 0xc
movsx eax, word [ecx + 0x22]
add eax, dword [ebx + 0x30]
xor edx, edx
jmp 0x4813b4
mov ebx, dword [esp + 0x2c]
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], edx
mov dword [eax + ecx*4], 0x87
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
movsx eax, word [ecx + 0x22]
add eax, dword [ebx + 0x30]
xor edx, edx
jmp 0x4813b4
mov edx, dword [ecx + 8]
mov dword [esp + 0x24], edx
test edx, edx
je 0x481305
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
je 0x481301
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x4812f1
mov dword [esp + 0x24], edx
movzx eax, word [edx + 0x34]
xor edi, edi
add eax, dword [esp + 0x18]
mov dword [ebx + 0x30], eax
mov dword [esp + 0x3c], eax
movzx eax, word [edx + 0x32]
mov ebx, eax
mov dword [esp + 0x44], ebx
xor ebx, ebx
cmp bx, ax
mov ebx, dword [esp + 0x2c]
jae 0x4813a5
mov ebx, dword [esp + 0x1c]
nop
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x481357
mov eax, dword [esp + 0x18]
mov edx, 0x5e
inc eax
mov ecx, esi
add eax, edi
push eax
push edi
push ebx
call fcn.00457f50
mov edx, dword [esp + 0x30]
add esp, 0xc
jmp 0x481389
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 + 0x18]
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 0x481330
mov ebx, dword [esp + 0x2c]
mov eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x30]
jmp 0x4813a9
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
movzx edi, di
mov dword [esp + 0x30], edi
inc eax
xor edi, edi
mov dword [ebx + 0x30], eax
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x44], edi
cmp ax, word [ecx + 0x22]
jge 0x481528
mov ebx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x3c], ecx
jmp 0x4813e4
mov edx, dword [esp + 0x24]
cmp edi, dword [esp + 0x40]
je 0x48150a
add ecx, dword [ebx + 4]
mov dword [esp + 0x54], ecx
test byte [ecx + 0xe], 0x20
jne 0x48150a
test edx, edx
je 0x48145b
movzx eax, word [edx + 0x34]
xor ecx, ecx
mov dword [esp + 0x50], eax
test eax, eax
je 0x481423
mov eax, dword [edx + 4]
cmp di, word [eax]
je 0x481456
inc ecx
add eax, 2
cmp ecx, dword [esp + 0x50]
jl 0x481414
or eax, 0xffffffff
movsx edi, ax
movzx eax, word [edx + 0x32]
cmp edi, eax
jl 0x481506
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
call fcn.00486350
xor ecx, ecx
cwde
cmp edi, eax
setg cl
sub edi, ecx
mov ecx, dword [esp + 0x54]
add edi, dword [esp + 0x18]
jmp 0x481463
movzx eax, cx
jmp 0x481426
mov edi, dword [esp + 0x18]
add edi, dword [esp + 0x30]
movsx eax, word [ebx + 0x20]
lea edx, [edi + 1]
mov edi, dword [esp + 0x44]
cmp edi, eax
jne 0x4814d0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x481494
push 0
push edx
push 0
mov edx, 0x4b
mov ecx, esi
call fcn.00457f50
add esp, 0xc
inc dword [esp + 0x30]
jmp 0x48150a
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
inc dword [esp + 0x30]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x6c], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x4b
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x48150a
mov al, byte [ecx + 8]
mov byte [esp + 0x13], al
cmp al, 0x45
jne 0x4814df
mov byte [ecx + 8], 0x43
push edx
push edi
push dword [esp + 0x24]
mov edx, ebx
mov ecx, esi
call fcn.00477b60
mov eax, dword [ebx + 4]
add esp, 0xc
mov edx, dword [esp + 0x3c]
mov cl, byte [esp + 0x13]
inc dword [esp + 0x30]
mov byte [edx + eax + 8], cl
jmp 0x48150a
mov edi, dword [esp + 0x44]
add dword [esp + 0x3c], 0x10
inc edi
movsx eax, word [ebx + 0x22]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x44], edi
cmp edi, eax
jl 0x4813e0
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x481591
inc dword [ebx + 0x30]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x6c]
lea edi, [ebx + 1]
cmp dword [esi + 0x70], ecx
jg 0x48155b
push edx
push edi
push edx
mov edx, 0x4b
mov ecx, esi
call fcn.00457f50
add esp, 0xc
mov edx, 1
jmp 0x481595
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 0x481595
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x6c]
lea edi, [ebx + 1]
cmp dword [esi + 0x70], ecx
jg 0x4815bb
push dword [esp + 0x34]
mov ecx, esi
push edx
push edi
mov edx, 0x61
call fcn.00457f50
mov edx, dword [esp + 0x40]
add esp, 0xc
jmp 0x4815ea
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 + 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 + 0x24]
mov ecx, dword [esi + 0x6c]
test eax, eax
je 0x481647
movzx edx, word [eax + 0x32]
mov ebx, dword [esp + 0x1c]
cmp dword [esi + 0x70], ecx
jg 0x48161a
push edx
push edi
push dword [esp + 0x3c]
mov edx, 0x8a
mov ecx, esi
push ebx
call fcn.00457f90
add esp, 0x10
jmp 0x481693
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 + 0x1c]
mov dword [eax + ecx*4], 0xfd8a
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], edx
jmp 0x481693
cmp dword [esi + 0x70], ecx
jg 0x481664
push ebx
mov ebx, dword [esp + 0x20]
mov ecx, esi
push edx
push ebx
mov edx, 0x80
call fcn.00457f50
add esp, 0xc
jmp 0x481693
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 + 0x18]
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 0x4816aa
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edi, dword [esp + 0x48]
mov ecx, dword [esi + 0x6c]
lea edx, [edi + 1]
cmp dword [esi + 0x70], ecx
jg 0x4816ce
push 0
push edx
push ebx
mov edx, 0x27
mov ecx, esi
call fcn.00457f50
add esp, 0xc
jmp 0x4816fd
mov edi, dword [esp + 0x48]
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 0x48170f
mov eax, 0x515db8
jmp 0x481718
mov eax, dword [esi + 0x68]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, eax
call fcn.0042f0e0
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov edx, edi
call fcn.0048d7c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret