Function at 0x450ae0
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
mov ebx, ecx
mov dword [esp + 0x14], edx
push esi
push edi
mov dword [esp + 0x24], ebx
mov edi, dword [ebx]
mov dword [esp + 0x3c], edi
cmp byte [edi + 0x53], 0
jne 0x451364
mov ecx, edx
mov edx, dword [ecx + 8]
test edx, edx
je 0x450b33
mov esi, dword [edi + 0x10]
xor ecx, ecx
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x450b28
nop dword [eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x450b20
add ecx, ecx
mov eax, dword [esi + ecx*8]
mov ecx, dword [esp + 0x1c]
jmp 0x450b36
mov eax, dword [ecx + 0xc]
push eax
push dword [ecx + 0x10]
xor edx, edx
mov ecx, ebx
call fcn.00455a30
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
test esi, esi
je 0x451360
mov edx, esi
mov ecx, ebx
call fcn.0044c960
test eax, eax
jne 0x451360
xor edx, edx
mov ecx, str.view
cmp byte [esi + 0x2b], 2
cmovne ecx, edx
cmp byte [esi + 0x2b], 1
jne 0x450b80
mov ecx, str.virtual_table
jmp 0x450b84
test ecx, ecx
je 0x450bac
push dword [esi]
push ecx
push str.drop_column_from
push str.cannot__s__s___s_
push ebx
call fcn.00407e90
mov edx, dword [esp + 0x30]
add esp, 0x14
mov ecx, edi
call fcn.0045dc30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00456420
mov edi, eax
mov dword [esp + 0x4c], edi
test edi, edi
je 0x45135c
mov edx, edi
mov ecx, esi
call fcn.00478a00
mov dword [esp + 0x40], eax
test eax, eax
jns 0x450c03
push edi
push str.no_such_column:___s_
push ebx
call fcn.00407e90
add esp, 0xc
mov edx, edi
mov edi, dword [esp + 0x3c]
mov ecx, edi
call fcn.00404680
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.0045dc30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, eax
mov eax, dword [esi + 4]
shl ecx, 4
mov dword [esp + 0x44], ecx
movzx eax, word [ecx + eax + 0xe]
test al, 9
je 0x450c56
test al, 1
mov ecx, str.UNIQUE
push edi
mov eax, str.PRIMARY_KEY
cmove eax, ecx
push eax
push str.cannot_drop__s_column:___s_
push ebx
call fcn.00407e90
add esp, 0x10
mov edx, edi
mov edi, dword [esp + 0x3c]
mov ecx, edi
call fcn.00404680
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.0045dc30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [esi + 0x22], 1
jg 0x450c8b
push edi
push str.cannot_drop_column___s_:_no_other_columns_exist
push ebx
call fcn.00407e90
add esp, 0xc
mov edx, edi
mov edi, dword [esp + 0x3c]
mov ecx, edi
call fcn.00404680
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.0045dc30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x3c]
mov edi, 0xffff8000
mov edx, dword [esp + 0x3c]
test ecx, ecx
je 0x450caf
mov eax, dword [edx + 0x10]
xor edi, edi
add eax, 0xc
cmp dword [eax], ecx
je 0x450caf
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x450ca7
mov eax, dword [edx + 0x10]
mov ecx, edi
add ecx, ecx
push 0
push 0x4db4e0
mov esi, dword [eax + ecx*8]
xor eax, eax
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.004554f0
add esp, 0x1c
cmp edi, 1
je 0x450d19
push 0
push 0x4db4e0
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.004554f0
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.004554f0
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.004554f0
add esp, 0x18
jmp 0x450d29
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.004554f0
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.004554f0
push 2
mov edx, edi
mov ecx, ebx
call fcn.0044ca40
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.004554f0
add esp, 0x1c
cmp edi, 1
je 0x450d88
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.004554f0
add esp, 0x14
cmp dword [ebx + 0x24], 0
jne 0x451339
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov eax, dword [eax + 4]
test byte [ecx + eax + 0xe], 0x20
jne 0x451339
mov edx, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov esi, dword [edx + 8]
mov dword [esp + 0x38], esi
test esi, esi
jne 0x450de3
cmp dword [edx + 0x74], ebx
jne 0x450dd2
mov eax, dword [edx]
test byte [eax + 0x4c], 8
jne 0x450dd2
mov byte [edx + 0x17], 1
mov ecx, edx
call fcn.0042a700
mov edx, dword [esp + 0x24]
mov esi, eax
mov dword [esp + 0x38], esi
mov eax, dword [edx + 0x28]
push 0x65
push dword [esp + 0x18]
mov dword [esp + 0x18], eax
lea ecx, [eax + 1]
mov dword [edx + 0x28], ecx
mov edx, eax
push edi
mov edi, dword [esp + 0x30]
mov ecx, edi
call fcn.00469780
mov ecx, dword [esi + 0x74]
lea edx, [esi + 0x70]
add esp, 0xc
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], edx
cmp dword [esi + 0x78], ecx
jg 0x450e37
push 0
push 0
push dword [esp + 0x18]
mov edx, 0x26
mov ecx, esi
call fcn.0042a9a0
add esp, 0xc
mov dword [esp + 0x48], eax
jmp 0x450e64
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x26
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 + 0x70]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x2c]
mov edx, dword [esp + 0x14]
inc eax
mov dword [edi + 0x2c], eax
mov dword [esp + 0x18], eax
test byte [edx + 0x1c], 0x80
jne 0x450ee5
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x450ea7
push 0
push eax
push dword [esp + 0x18]
mov edx, 0x85
mov ecx, esi
call fcn.0042a9a0
mov edx, dword [esp + 0x20]
add esp, 0xc
movsx ecx, word [edx + 0x22]
add ecx, dword [edi + 0x2c]
jmp 0x450fa1
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x85
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
movsx ecx, word [edx + 0x22]
add ecx, dword [edi + 0x2c]
jmp 0x450fa1
mov ebx, dword [edx + 8]
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x450f04
mov eax, dword [ebx + 0x38]
and al, 3
cmp al, 2
je 0x450f00
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x450ef0
mov dword [esp + 0x2c], ebx
movzx eax, word [ebx + 0x34]
mov ecx, dword [esp + 0x18]
add ecx, eax
mov dword [edi + 0x2c], ecx
xor edi, edi
movzx eax, word [ebx + 0x32]
mov dword [esp + 0x44], edi
mov edx, eax
cmp di, ax
jae 0x450f92
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x450f48
mov eax, dword [esp + 0x18]
mov edx, 0x5c
inc eax
mov ecx, esi
add eax, edi
push eax
push edi
push dword [esp + 0x18]
call fcn.0042a9a0
add esp, 0xc
jmp 0x450f7e
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x5c
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 + 0x18]
inc eax
add eax, edi
mov dword [ecx + 0xc], eax
movzx ecx, word [ebx + 0x32]
inc edi
cmp edi, ecx
jl 0x450f22
mov edi, dword [esp + 0x24]
mov edx, ecx
mov ecx, dword [edi + 0x2c]
jmp 0x450f96
mov edi, dword [esp + 0x24]
movzx eax, dx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
lea eax, [ecx + 1]
xor ecx, ecx
mov dword [edi + 0x2c], eax
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x20], ecx
cmp ax, word [edx + 0x22]
jge 0x45111f
mov dword [esp + 0x44], ecx
xor edi, edi
cmp edi, dword [esp + 0x40]
je 0x451103
mov eax, dword [edx + 4]
test byte [ecx + eax + 0xe], 0x20
jne 0x451103
test ebx, ebx
je 0x451060
movzx edx, word [ebx + 0x34]
xor ecx, ecx
test edx, edx
je 0x450ffd
mov eax, dword [ebx + 4]
cmp di, word [eax]
je 0x451051
inc ecx
add eax, 2
cmp ecx, edx
jl 0x450ff0
or edi, 0xffffffff
xor eax, eax
test edx, edx
je 0x45102c
mov ecx, dword [ebx + 4]
nop dword [eax]
mov ebx, dword [esp + 0x40]
movzx esi, bx
cmp si, word [ecx]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
je 0x45105b
inc eax
add ecx, 2
cmp eax, edx
jl 0x451010
or ecx, 0xffffffff
movzx eax, word [ebx + 0x32]
mov edx, dword [esp + 0x14]
cmp edi, eax
jl 0x4510fb
movsx eax, cx
xor ecx, ecx
cmp edi, eax
setg cl
sub edi, ecx
add edi, dword [esp + 0x18]
jmp 0x451068
movzx eax, cx
movsx edi, ax
xor eax, eax
jmp 0x451006
movzx ecx, ax
jmp 0x45102f
mov edi, dword [esp + 0x18]
add edi, dword [esp + 0x28]
movsx eax, word [edx + 0x20]
inc edi
cmp dword [esp + 0x20], eax
jne 0x4510dd
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x45109d
push 0
push edi
push 0
mov edx, 0x49
mov ecx, esi
call fcn.0042a9a0
mov edi, dword [esp + 0x2c]
add esp, 0xc
mov edx, dword [esp + 0x14]
inc dword [esp + 0x28]
jmp 0x4510ff
mov ebx, dword [esp + 0x2c]
lea eax, [ecx + 1]
inc dword [esp + 0x28]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x49
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4510ff
push edi
mov edi, dword [esp + 0x24]
mov ecx, esi
push edi
push dword [esp + 0x18]
call fcn.00447e20
mov edx, dword [esp + 0x20]
add esp, 0xc
inc dword [esp + 0x28]
jmp 0x4510ff
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
movsx eax, word [edx + 0x22]
inc edi
add ecx, 0x10
mov dword [esp + 0x20], edi
mov dword [esp + 0x44], ecx
cmp edi, eax
jl 0x450fc3
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x45117f
inc dword [edi + 0x2c]
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x74]
inc edi
cmp dword [esi + 0x78], ecx
jg 0x45114b
push edx
push edi
push edx
mov edx, 0x49
mov ecx, esi
call fcn.0042a9a0
add esp, 0xc
jmp 0x45117a
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x49
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 + 0x18]
mov ecx, dword [esi + 0x74]
inc edi
cmp dword [esi + 0x78], ecx
jg 0x4511a7
push dword [esp + 0x30]
mov ecx, esi
push edx
push edi
mov edx, 0x5f
call fcn.0042a9a0
mov edx, dword [esp + 0x3c]
add esp, 0xc
jmp 0x4511d6
mov ebx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x5f
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
test ebx, ebx
je 0x451292
mov edx, dword [esi + 0x74]
movzx ebx, word [ebx + 0x32]
cmp dword [esi + 0x78], edx
jg 0x451206
push edi
push dword [esp + 0x34]
mov edx, 0x88
mov ecx, esi
push dword [esp + 0x18]
call fcn.0042a9a0
add esp, 0xc
mov edx, eax
jmp 0x451239
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov esi, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x30]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x88
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x53], 0
jne 0x451250
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x45126b
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov edi, dword [esp + 0x48]
mov ecx, dword [esi + 0x74]
lea edx, [edi + 1]
cmp dword [esi + 0x78], ecx
jg 0x4512e5
push 0
push edx
push ebx
mov edx, 5
mov ecx, esi
call fcn.0042a9a0
add esp, 0xc
jmp 0x451314
mov ecx, dword [esi + 0x74]
mov ebx, dword [esp + 0x10]
cmp dword [esi + 0x78], ecx
jg 0x4512b5
push dword [esp + 0x18]
mov ecx, esi
push edx
push ebx
mov edx, 0x7e
call fcn.0042a9a0
add esp, 0xc
jmp 0x451254
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x7e
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x451254
mov edi, dword [esp + 0x48]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 5
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 edx, dword [esi + 0x74]
test edi, edi
jns 0x45131e
lea edi, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x53], 0
je 0x45132d
mov eax, 0x4edf68
jmp 0x451336
mov eax, dword [esi + 0x70]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edi, dword [esp + 0x4c]
mov edx, edi
mov edi, dword [esp + 0x3c]
mov ecx, edi
call fcn.00404680
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.0045dc30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.0045dc30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret