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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov ebx, ecx
mov dword [esp + 0x38], edx
push esi
push edi
mov dword [esp + 0x28], ebx
mov eax, dword [ebx]
mov dword [esp + 0x2c], eax
cmp byte [eax + 0x57], 0
jne 0x45bef6
mov edx, dword [edx + 8]
test edx, edx
je 0x45be93
mov esi, dword [eax + 0x10]
xor ecx, ecx
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x45be88
nop word [eax + eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x45be80
add ecx, ecx
mov eax, dword [esi + ecx*8]
mov ecx, dword [esp + 0x40]
jmp 0x45be9a
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0xc]
push eax
push dword [ecx + 0x10]
xor edx, edx
mov ecx, ebx
call fcn.00460440
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
je 0x45bef6
mov edx, edi
mov ecx, ebx
call fcn.00458020
test eax, eax
jne 0x45bef6
xor edx, edx
mov ecx, str.view
cmp byte [edi + 0x2b], 2
cmovne ecx, edx
cmp byte [edi + 0x2b], 1
jne 0x45bedc
mov ecx, str.virtual_table
jmp 0x45bee0
test ecx, ecx
je 0x45befd
push dword [edi]
push ecx
push str.drop_column_from
push str.cannot__s__s___s_
push ebx
call fcn.00417860
add esp, 0x14
xor eax, eax
jmp 0x45bf8e
mov esi, dword [ebp + 8]
test esi, esi
je 0x45bef6
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x45bf55
mov ecx, eax
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00413890
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
je 0x45bf5b
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x48]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov byte [eax + ecx], 0
mov eax, ecx
jmp 0x45bf5b
xor eax, eax
mov dword [esp + 0xc], eax
mov ecx, eax
call fcn.004178f0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x45bf8e
mov edx, eax
mov ecx, edi
call fcn.00481f20
mov dword [esp + 0x30], eax
test eax, eax
jns 0x45bfae
push esi
push str.no_such_column:___T_
push ebx
call fcn.00417860
add esp, 0xc
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x2c]
push eax
push ebx
call fcn.00413560
mov edx, dword [esp + 0x48]
add esp, 8
mov ecx, ebx
call fcn.00467c40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, eax
mov eax, dword [edi + 4]
shl ecx, 4
mov dword [esp + 0x38], ecx
movzx eax, word [ecx + eax + 0xe]
test al, 9
je 0x45bfe7
push dword [esp + 0xc]
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.00417860
add esp, 0x10
jmp 0x45bf8a
cmp word [edi + 0x22], 1
jg 0x45bff9
push dword [esp + 0xc]
push str.cannot_drop_column___s_:_no_other_columns_exist
jmp 0x45bf81
mov ecx, dword [edi + 0x3c]
mov edi, 0xffff8000
mov esi, dword [esp + 0xc]
mov edx, esi
test ecx, ecx
je 0x45c028
mov eax, dword [esp + 0x2c]
xor edi, edi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x45c028
nop dword [eax + eax]
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x45c020
mov eax, dword [esp + 0x2c]
mov ecx, edi
add ecx, ecx
push edx
mov edx, 0x1a
mov eax, dword [eax + 0x10]
mov esi, dword [eax + ecx*8]
mov ecx, ebx
mov eax, dword [esp + 0x14]
push dword [eax]
push esi
call fcn.0045f5c0
add esp, 0xc
test eax, eax
jne 0x45bf8a
push 0
push 0x4ff790
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 + 0x58], eax
call fcn.0045ff40
add esp, 0x1c
cmp edi, 1
je 0x45c0b3
push 0
push 0x4ff790
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.0045ff40
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.0045ff40
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.0045ff40
add esp, 0x18
jmp 0x45c0c3
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.0045ff40
add esp, 0x10
mov eax, dword [esp + 0x10]
push dword [eax]
push dword [esp + 0x34]
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.0045ff40
push 2
mov edx, edi
mov ecx, ebx
call fcn.00458100
add esp, 0x1c
mov byte [ebx + 0x10], 1
push 1
push str.after_drop_column
push dword [esp + 0x44]
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.0045ff40
add esp, 0x1c
cmp edi, 1
je 0x45c122
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.0045ff40
add esp, 0x14
cmp dword [ebx + 0x24], 0
jne 0x45bf8a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + 4]
test byte [ecx + eax + 0xe], 0x20
jne 0x45bf8a
mov esi, dword [ebx + 8]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
test esi, esi
jne 0x45c16d
cmp dword [ebx + 0x78], ecx
jne 0x45c164
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x45c164
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.00436f50
mov esi, eax
mov eax, dword [ebx + 0x28]
push 0x71
push dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea ecx, [eax + 1]
push edi
mov edi, eax
mov dword [ebx + 0x28], ecx
mov edx, edi
mov ecx, ebx
call fcn.004728d0
mov ecx, dword [esi + 0x6c]
add esp, 0xc
mov dword [esp + 0x3c], ecx
cmp dword [esi + 0x70], ecx
jg 0x45c1b5
push 0
push 0
push edi
mov edx, 0x24
mov ecx, esi
call fcn.00437140
add esp, 0xc
mov dword [esp + 0x3c], eax
jmp 0x45c1e4
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
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 ecx, dword [esp + 0x10]
inc dword [ebx + 0x2c]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x18], edx
test byte [ecx + 0x1c], 0x80
jne 0x45c262
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x45c225
push 0
push edx
push edi
mov edx, 0x87
mov ecx, esi
call fcn.00437140
mov ecx, dword [esp + 0x1c]
add esp, 0xc
movsx eax, word [ecx + 0x22]
add eax, dword [ebx + 0x2c]
xor edx, edx
jmp 0x45c331
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 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 + 0x10]
movsx eax, word [ecx + 0x22]
add eax, dword [ebx + 0x2c]
xor edx, edx
jmp 0x45c331
mov edx, dword [ecx + 8]
mov dword [esp + 0x1c], edx
test edx, edx
je 0x45c284
nop dword [eax]
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
je 0x45c280
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x45c270
mov dword [esp + 0x1c], edx
movzx eax, word [edx + 0x34]
xor edi, edi
add eax, dword [esp + 0x18]
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x34], eax
movzx eax, word [edx + 0x32]
mov ebx, eax
mov dword [esp + 0x38], ebx
xor ebx, ebx
cmp bx, ax
mov ebx, dword [esp + 0x28]
jae 0x45c322
mov ebx, dword [esp + 0x14]
nop
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x45c2d7
mov eax, dword [esp + 0x18]
mov edx, 0x5e
inc eax
mov ecx, esi
add eax, edi
push eax
push edi
push ebx
call fcn.00437140
mov edx, dword [esp + 0x28]
add esp, 0xc
jmp 0x45c306
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
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 0x45c2b0
mov ebx, dword [esp + 0x28]
mov eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x2c]
jmp 0x45c326
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
movzx edi, di
mov dword [esp + 0x20], edi
inc eax
xor edi, edi
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x34], edi
cmp ax, word [ecx + 0x22]
jge 0x45c47e
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x38], ecx
jmp 0x45c364
mov edx, dword [esp + 0x1c]
cmp edi, dword [esp + 0x30]
je 0x45c462
mov eax, dword [ebx + 4]
test byte [eax + ecx + 0xe], 0x20
jne 0x45c462
test edx, edx
je 0x45c3d0
movzx eax, word [edx + 0x34]
xor ecx, ecx
mov dword [esp + 0x44], eax
test eax, eax
je 0x45c3a0
mov eax, dword [edx + 4]
cmp di, word [eax]
je 0x45c3cb
inc ecx
add eax, 2
cmp ecx, dword [esp + 0x44]
jl 0x45c391
or eax, 0xffffffff
movsx edi, ax
movzx eax, word [edx + 0x32]
cmp edi, eax
jl 0x45c45a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
call fcn.004611d0
xor ecx, ecx
cwde
cmp edi, eax
setg cl
sub edi, ecx
jmp 0x45c3d4
movzx eax, cx
jmp 0x45c3a3
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
movsx eax, word [ebx + 0x20]
inc edx
add edx, edi
mov edi, dword [esp + 0x34]
cmp edi, eax
jne 0x45c442
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x45c409
push 0
push edx
push 0
mov edx, 0x4b
mov ecx, esi
call fcn.00437140
add esp, 0xc
inc dword [esp + 0x20]
jmp 0x45c45e
mov ebx, dword [esp + 0x10]
lea eax, [ecx + 1]
inc dword [esp + 0x20]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
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 0x45c45e
push edx
push edi
push dword [esp + 0x1c]
mov edx, ebx
mov ecx, esi
call fcn.004536c0
add esp, 0xc
inc dword [esp + 0x20]
jmp 0x45c45e
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
movsx eax, word [ebx + 0x22]
inc edi
add ecx, 0x10
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ecx
cmp edi, eax
jl 0x45c360
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
inc edi
test edx, edx
jne 0x45c4de
inc dword [ebx + 0x2c]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x45c4aa
push edx
push edi
push edx
mov edx, 0x4b
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x45c4d9
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 ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x45c500
mov ebx, dword [esp + 0x24]
mov ecx, esi
push ebx
push edx
push edi
mov edx, 0x61
call fcn.00437140
add esp, 0xc
mov edx, ebx
jmp 0x45c52b
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 + 0x1c]
test eax, eax
je 0x45c5ef
movzx ebx, word [eax + 0x32]
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x44], ebx
cmp dword [esi + 0x70], edx
jg 0x45c563
push edi
push dword [esp + 0x28]
mov edx, 0x8a
mov ecx, esi
push dword [esp + 0x1c]
call fcn.00437140
add esp, 0xc
mov edx, eax
jmp 0x45c596
mov ebx, dword [esp + 0x14]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*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 + 0x44]
mov dword [eax + ecx*4], 0x8a
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x45c5ad
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], ebx
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
test ecx, ecx
jle 0x45c5cb
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
mov edx, 2
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esi + 0x6c]
mov edi, dword [esp + 0x3c]
lea edx, [edi + 1]
cmp dword [esi + 0x70], ecx
jg 0x45c642
push 0
push edx
push ebx
mov edx, 0x27
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x45c671
mov ecx, dword [esi + 0x6c]
mov ebx, dword [esp + 0x14]
cmp dword [esi + 0x70], ecx
jg 0x45c612
push dword [esp + 0x18]
mov ecx, esi
push edx
push ebx
mov edx, 0x80
call fcn.00437140
add esp, 0xc
jmp 0x45c5b1
mov edi, 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], 0x80
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x45c5b1
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 0x45c689
mov eax, 0x5160d8
mov dword [eax + 8], edx
jmp 0x45bf8a
mov eax, dword [esi + 0x68]
lea ecx, [edi + edi*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x45bf8a