Function at 0x44d270
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
mov ebx, ecx
mov dword [esp + 0x40], edx
push esi
push edi
xor edi, edi
mov dword [esp + 0x30], ebx
mov eax, dword [ebx]
mov dword [esp + 0x34], eax
cmp byte [eax + 0x57], 0
jne 0x44d3fa
mov edx, dword [edx + 8]
test edx, edx
je 0x44d2c3
mov esi, dword [eax + 0x10]
xor ecx, ecx
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x44d2b8
nop dword [eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x44d2b0
add ecx, ecx
mov eax, dword [esi + ecx*8]
mov ecx, dword [esp + 0x48]
jmp 0x44d2ca
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0xc]
push eax
push dword [ecx + 0x10]
xor edx, edx
mov ecx, ebx
call fcn.004519e0
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
test esi, esi
je 0x44d3fa
mov edx, esi
mov ecx, ebx
call fcn.00449190
test eax, eax
jne 0x44d3fa
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x44d314
mov ecx, str.virtual_table
jmp 0x44d318
test ecx, ecx
je 0x44d333
push dword [esi]
push ecx
push str.drop_column_from
push str.cannot__s__s___s_
push ebx
call fcn.00407e20
add esp, 0x14
jmp 0x44d3fa
mov esi, dword [ebp + 8]
test esi, esi
je 0x44daf8
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x44], eax
test eax, eax
je 0x44d382
xor eax, eax
mov ecx, edi
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.00404910
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x44d388
push edi
push dword [esp + 0x48]
push eax
call fcn.004bbbe0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov byte [edi + eax], 0
jmp 0x44d388
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, eax
call fcn.00407eb0
mov edi, dword [esp + 0x10]
test edi, edi
je 0x44d3fa
mov ecx, dword [esp + 0x18]
mov edx, edi
call fcn.00473430
mov dword [esp + 0x38], eax
test eax, eax
jns 0x44d3bb
push esi
push str.no_such_column:___T_
push ebx
call fcn.00407e20
add esp, 0xc
jmp 0x44d3fa
mov edx, dword [esp + 0x18]
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x40], ecx
mov eax, dword [edx + 4]
movzx eax, word [ecx + eax + 0xe]
test al, 9
je 0x44d41a
push dword [esp + 0x10]
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.00407e20
add esp, 0x10
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
push edi
push ebx
call fcn.004045f0
mov edx, dword [esp + 0x50]
add esp, 8
mov ecx, ebx
call fcn.00459e90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [edx + 0x22], 1
jg 0x44d435
push dword [esp + 0x10]
push str.cannot_drop_column___s_:_no_other_columns_exist
push ebx
call fcn.00407e20
add esp, 0xc
jmp 0x44d3f6
mov ecx, dword [edx + 0x3c]
mov edi, 0xffff8000
test ecx, ecx
je 0x44d459
mov eax, dword [esp + 0x34]
xor edi, edi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x44d459
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x44d451
mov eax, dword [esp + 0x34]
mov ecx, edi
add ecx, ecx
mov eax, dword [eax + 0x10]
mov esi, dword [eax + ecx*8]
mov ecx, ebx
mov eax, dword [esp + 0x10]
push eax
push dword [edx]
mov edx, 0x1a
push esi
call fcn.00450b20
add esp, 0xc
test eax, eax
jne 0x44d3f6
push 0
push 0x4d9c3c
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.00451500
add esp, 0x1c
cmp edi, 1
je 0x44d4e4
push 0
push 0x4d9c3c
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.00451500
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.00451500
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.00451500
add esp, 0x18
jmp 0x44d4f4
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.00451500
add esp, 0x10
mov eax, dword [esp + 0x18]
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.00451500
push 2
mov edx, edi
mov ecx, ebx
call fcn.00449260
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.00451500
add esp, 0x1c
cmp edi, 1
je 0x44d553
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.00451500
add esp, 0x14
cmp dword [ebx + 0x24], 0
jne 0x44d3f6
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 4]
test byte [ecx + eax + 0xe], 0x20
jne 0x44d3f6
mov esi, dword [ebx + 8]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
test esi, esi
jne 0x44d59e
cmp dword [ebx + 0x74], ecx
jne 0x44d595
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x44d595
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.004282e0
mov esi, eax
mov eax, dword [ebx + 0x28]
push 0x71
push dword [esp + 0x1c]
mov dword [esp + 0x24], eax
lea ecx, [eax + 1]
push edi
mov edi, eax
mov dword [ebx + 0x28], ecx
mov edx, edi
mov ecx, ebx
call fcn.00464b90
mov ecx, dword [esi + 0x6c]
lea edx, [esi + 0x68]
add esp, 0xc
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], edx
cmp dword [esi + 0x70], ecx
jg 0x44d5f0
push 0
push 0
push edi
mov edx, 0x23
mov ecx, esi
call fcn.004284c0
add esp, 0xc
mov dword [esp + 0x44], eax
lea edx, [esi + 0x68]
jmp 0x44d622
lea eax, [ecx + 1]
mov dword [esp + 0x14], edx
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov dword [eax + ecx*4], 0x23
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 eax, dword [ebx + 0x2c]
mov ecx, dword [esp + 0x18]
inc eax
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x20], eax
test byte [ecx + 0x1c], 0x80
jne 0x44d6a4
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x44d664
push 0
push eax
push edi
mov edx, 0x87
mov ecx, esi
call fcn.004284c0
mov ecx, dword [esp + 0x24]
add esp, 0xc
movsx eax, word [ecx + 0x22]
add eax, dword [ebx + 0x2c]
xor edx, edx
jmp 0x44d776
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x87
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x18]
movsx eax, word [ecx + 0x22]
add eax, dword [ebx + 0x2c]
xor edx, edx
jmp 0x44d776
mov edx, dword [ecx + 8]
mov dword [esp + 0x24], edx
test edx, edx
je 0x44d6c4
nop
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
je 0x44d6c0
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x44d6b0
mov dword [esp + 0x24], edx
movzx eax, word [edx + 0x34]
xor edi, edi
add eax, dword [esp + 0x20]
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x3c], eax
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 0x44d767
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x44d719
mov eax, dword [esp + 0x20]
mov edx, 0x5e
inc eax
mov ecx, esi
add eax, edi
push eax
push edi
push ebx
call fcn.004284c0
mov edx, dword [esp + 0x30]
add esp, 0xc
jmp 0x44d74b
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x14]
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 + 0x20]
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 0x44d6f2
mov ebx, dword [esp + 0x30]
mov eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x2c]
jmp 0x44d76b
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
movzx edi, di
mov dword [esp + 0x28], edi
inc eax
xor edi, edi
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x3c], edi
cmp ax, word [ecx + 0x22]
jge 0x44d8c1
mov ebx, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x40], ecx
jmp 0x44d7a4
mov edx, dword [esp + 0x24]
cmp edi, dword [esp + 0x38]
je 0x44d8a5
mov eax, dword [ebx + 4]
test byte [eax + ecx + 0xe], 0x20
jne 0x44d8a5
test edx, edx
je 0x44d810
movzx eax, word [edx + 0x34]
xor ecx, ecx
mov dword [esp + 0x4c], eax
test eax, eax
je 0x44d7e0
mov eax, dword [edx + 4]
cmp di, word [eax]
je 0x44d80b
inc ecx
add eax, 2
cmp ecx, dword [esp + 0x4c]
jl 0x44d7d1
or eax, 0xffffffff
movsx edi, ax
movzx eax, word [edx + 0x32]
cmp edi, eax
jl 0x44d89d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
call fcn.00452a10
xor ecx, ecx
cwde
cmp edi, eax
setg cl
sub edi, ecx
jmp 0x44d814
movzx eax, cx
jmp 0x44d7e3
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
movsx eax, word [ebx + 0x20]
inc edx
add edx, edi
mov edi, dword [esp + 0x3c]
cmp edi, eax
jne 0x44d885
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x44d849
push 0
push edx
push 0
mov edx, 0x4b
mov ecx, esi
call fcn.004284c0
add esp, 0xc
inc dword [esp + 0x28]
jmp 0x44d8a1
mov ebx, dword [esp + 0x18]
lea eax, [ecx + 1]
inc dword [esp + 0x28]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x6c], eax
mov eax, dword [esp + 0x14]
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 0x44d8a1
push edx
push edi
push dword [esp + 0x24]
mov edx, ebx
mov ecx, esi
call fcn.004449b0
add esp, 0xc
inc dword [esp + 0x28]
jmp 0x44d8a1
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
movsx eax, word [ebx + 0x22]
inc edi
add ecx, 0x10
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ecx
cmp edi, eax
jl 0x44d7a0
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
inc edi
test edx, edx
jne 0x44d924
inc dword [ebx + 0x2c]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x44d8ed
push edx
push edi
push edx
mov edx, 0x4b
mov ecx, esi
call fcn.004284c0
add esp, 0xc
jmp 0x44d91f
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
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 ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x44d946
mov ebx, dword [esp + 0x2c]
mov ecx, esi
push ebx
push edx
push edi
mov edx, 0x61
call fcn.004284c0
add esp, 0xc
mov edx, ebx
jmp 0x44d974
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x2c]
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]
test eax, eax
je 0x44da3b
movzx ebx, word [eax + 0x32]
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x4c], ebx
cmp dword [esi + 0x70], edx
jg 0x44d9ac
push edi
push dword [esp + 0x30]
mov edx, 0x8a
mov ecx, esi
push dword [esp + 0x24]
call fcn.004284c0
add esp, 0xc
mov edx, eax
jmp 0x44d9e2
mov ebx, dword [esp + 0x1c]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x4c]
mov dword [eax + ecx*4], 0x8a
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edi, dword [esp + 0x14]
cmp byte [eax + 0x57], 0
jne 0x44d9fc
mov eax, dword [edi]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x44da16
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [edi]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x44]
mov ecx, dword [esi + 0x6c]
inc edx
cmp dword [esi + 0x70], ecx
jg 0x44da95
push 0
push edx
push ebx
mov edx, 0x26
mov ecx, esi
call fcn.004284c0
add esp, 0xc
jmp 0x44dac3
mov ecx, dword [esi + 0x6c]
mov ebx, dword [esp + 0x1c]
cmp dword [esi + 0x70], ecx
jg 0x44da62
push dword [esp + 0x20]
mov ecx, esi
push edx
push ebx
mov edx, 0x80
call fcn.004284c0
mov edi, dword [esp + 0x20]
add esp, 0xc
jmp 0x44da00
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x20]
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
jmp 0x44da00
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi]
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x26
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 0x44dadb
mov eax, 0x4f06d8
mov dword [eax + 8], edx
jmp 0x44d3f6
mov ecx, dword [esp + 0x44]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edi]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x44d3f6
xor edi, edi
jmp 0x44d3fa