Function at 0x1016e5f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov edi, dword [ecx]
cmp byte [edi + 0x57], 0
jne 0x1016e61e
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [edx + 8]
mov dword [ebp - 0x34], edx
xor edx, edx
push eax
call fcn.10171140
mov edx, dword [ebp - 0x34]
add esp, 4
test eax, eax
jne 0x1016e62c
mov ecx, edi
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.100172a0
mov dword [ebp - 0x14], eax
mov ecx, ebx
mov edx, dword [ebp - 0x14]
call fcn.1017b240
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
test eax, eax
jne 0x1016e61e
mov al, byte [ecx + 0x2b]
xor ecx, ecx
cmp al, 2
mov edx, 0x101c8840
cmovne edx, ecx
cmp al, 1
mov eax, str.virtual_table
cmovne eax, edx
test eax, eax
je 0x1016e67e
mov ecx, dword [ebp - 0x14]
push dword [ecx]
push eax
push str.drop_column_from
push str.cannot__s__s___s_
push ebx
call fcn.100463a0
add esp, 0x14
mov edx, dword [ebp - 0x34]
jmp 0x1016e61e
mov ecx, edi
mov edx, esi
call fcn.10017820
test eax, eax
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
je 0x1016e61e
mov dword [ebp - 0x30], eax
mov edx, eax
call fcn.10171590
test eax, eax
js 0x1016e6db
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x44], eax
shl eax, 4
mov dword [ebp - 0x1c], eax
movzx eax, word [ecx + eax + 0xe]
test al, 9
je 0x1016e6f8
test al, 1
mov eax, 0x101d4259
mov ecx, 0x101d0566
cmove ecx, eax
mov esi, dword [ebp - 0x30]
push esi
push ecx
push str.cannot_drop__s_column:___s_
push ebx
call fcn.100463a0
add esp, 0x10
jmp 0x1016e6ed
push esi
push str.no_such_column:___T_
push ebx
call fcn.100463a0
add esp, 0xc
mov esi, dword [ebp - 0x30]
mov ecx, edi
mov edx, esi
call fcn.1014d210
jmp 0x1016e679
mov ecx, edx
cmp word [edx + 0x22], 1
jg 0x1016e715
mov esi, dword [ebp - 0x30]
push esi
push str.cannot_drop_column___s_:_no_other_columns_exist
push ebx
call fcn.100463a0
add esp, 0xc
jmp 0x1016e6ed
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x1016e73a
mov eax, dword [ebp - 0x10]
lea edx, [eax + 0xc]
xor esi, esi
dec esi
inc esi
lea eax, [edx + 0x10]
cmp dword [edx], ecx
mov edx, eax
jne 0x1016e72e
jmp 0x1016e73f
mov esi, 0xffff8000
mov dword [ebp - 0x20], esi
mov eax, esi
shl eax, 4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x10], eax
mov ecx, ebx
mov edx, 0x1a
mov esi, dword [ebp - 0x30]
push esi
mov eax, dword [ebp - 0x14]
push dword [eax]
push dword [ebp - 0x10]
call fcn.10157c70
add esp, 0xc
test eax, eax
jne 0x1016e6ed
xor eax, eax
cmp dword [ebp - 0x20], 1
sete al
mov ecx, ebx
mov esi, dword [ebp - 0x10]
mov edx, esi
push 0
push 0x101e0242
mov dword [ebp - 0x18], eax
push eax
call fcn.1017b3b0
add esp, 0xc
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.10020d70
add esp, 0x10
cmp dword [ebp - 0x20], 1
je 0x1016e7ba
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.10020d70
add esp, 8
mov eax, dword [ebp - 0x14]
push dword [eax]
push dword [ebp - 0x44]
mov esi, dword [ebp - 0x20]
push esi
push dword [ebp - 0x10]
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.10020d70
add esp, 0x18
mov ecx, ebx
mov edx, esi
push 2
call fcn.1017b340
add esp, 4
mov ecx, ebx
mov edx, dword [ebp - 0x10]
push 1
push str.after_drop_column
push dword [ebp - 0x18]
call fcn.1017b3b0
add esp, 0xc
cmp dword [ebx + 0x24], 0
mov esi, dword [ebp - 0x30]
jne 0x1016e6ed
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
test byte [eax + ecx + 0xe], 0x20
jne 0x1016e6ed
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1016ea58
mov esi, dword [ebx + 0x28]
lea eax, [esi + 1]
mov dword [ebx + 0x28], eax
mov ecx, ebx
mov edx, esi
push 0x71
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call fcn.10040c10
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, 0x24
push eax
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0x2c], esi
push esi
call fcn.1002fb80
add esp, 0xc
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x24], eax
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1c], 0x80
jne 0x1016ea36
mov ecx, dword [ebp - 0x18]
mov edx, 0x87
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
call fcn.1002fb80
add esp, 0xc
mov eax, dword [ebp - 0x14]
movsx ecx, word [eax + 0x22]
add ecx, dword [ebx + 0x2c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0
inc ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebx + 0x2c], ecx
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x22]
mov word [ebp - 0x20], ax
test ax, ax
jle 0x1016e9c0
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x4c], eax
xor esi, esi
cmp esi, dword [ebp - 0x44]
je 0x1016e9b3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov ecx, esi
shl ecx, 4
test byte [eax + ecx + 0xe], 0x20
jne 0x1016e9b3
cmp dword [ebp - 0x10], 0
je 0x1016e964
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0x34]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1016e9b3
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 4]
xor eax, eax
cmp word [edx + eax*2], si
je 0x1016e928
inc eax
cmp dword [ebp - 0x1c], eax
jne 0x1016e919
xor eax, eax
dec eax
cwde
mov dword [ebp - 0x40], eax
xor eax, eax
mov ecx, dword [ebp - 0x44]
cmp word [edx + eax*2], cx
je 0x1016e940
inc eax
cmp dword [ebp - 0x1c], eax
jne 0x1016e92e
xor eax, eax
dec eax
mov ecx, dword [ebp - 0x10]
movzx ecx, word [ecx + 0x32]
cmp dword [ebp - 0x40], ecx
jl 0x1016e9b3
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x40]
add edx, ecx
xor ecx, ecx
cmp word [ebp - 0x40], ax
setg cl
sub edx, ecx
mov dword [ebp - 0x1c], edx
jmp 0x1016e96f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x4c]
add eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
movsx eax, word [eax + 0x20]
cmp esi, eax
jne 0x1016e990
mov ecx, dword [ebp - 0x18]
mov edx, 0x4b
xor eax, eax
push eax
push dword [ebp - 0x1c]
push eax
call fcn.1002fb80
jmp 0x1016e9a2
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x2c]
call fcn.10035980
add esp, 0xc
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x22]
mov word [ebp - 0x20], ax
inc esi
movsx eax, word [ebp - 0x20]
cmp esi, eax
jl 0x1016e8da
cmp dword [ebp - 0x28], 0
je 0x1016ea71
add dword [ebp - 0x24], 2
mov ecx, dword [ebp - 0x18]
mov edx, 0x61
push dword [ebp - 0x3c]
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call fcn.1002fb80
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x1016ea9d
mov eax, dword [ebp - 0x10]
movzx esi, word [eax + 0x32]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
mov edx, 0x8a
push dword [ebp - 0x24]
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
call fcn.1002fb80
add esp, 0xc
mov ecx, dword [ebx]
cmp byte [ecx + 0x57], 0
jne 0x1016eab6
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x68]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 + 1], 0xfd
mov dword [ecx + eax*4 + 0x10], esi
jmp 0x1016eab6
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x1016eb16
mov ecx, dword [eax + 0x38]
and ecx, 3
cmp ecx, 2
je 0x1016eb13
mov eax, dword [eax + 0x14]
jmp 0x1016ea3c
cmp dword [ebx + 0x78], 0
je 0x1016eb7d
mov ecx, ebx
call fcn.1002f500
mov dword [ebp - 0x18], eax
jmp 0x1016e82b
inc dword [ebx + 0x2c]
mov esi, dword [ebp - 0x24]
add esi, 2
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, 0x4b
push eax
mov dword [ebp - 0x24], esi
push esi
push eax
call fcn.1002fb80
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
jmp 0x1016e9ce
mov ecx, dword [ebp - 0x18]
mov edx, 0x80
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
call fcn.1002fb80
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x6c]
test eax, eax
jle 0x1016ead0
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x68]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], 2
mov eax, dword [ebp - 0x48]
inc eax
mov esi, dword [ebp - 0x18]
mov ecx, esi
mov edx, 0x27
push 0
push eax
push dword [ebp - 0x2c]
call fcn.1002fb80
add esp, 0xc
mov edx, dword [esi]
mov eax, dword [esi + 0x6c]
mov ecx, 0x101f2320
cmp byte [edx + 0x57], 0
jne 0x1016eb0b
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov edx, dword [ebp - 0x18]
add ecx, dword [edx + 0x68]
mov dword [ecx + 8], eax
jmp 0x1016e6ea
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx edx, word [eax + 0x34]
add edx, dword [ebp - 0x38]
mov dword [ebx + 0x2c], edx
cmp word [eax + 0x32], 0
je 0x1016eb6f
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x20], eax
xor eax, eax
lea esi, [eax + 1]
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x18]
mov edx, 0x5e
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
call fcn.1002fb80
add esp, 0xc
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x32]
mov eax, esi
mov dword [ebp - 0x28], ecx
cmp esi, ecx
jb 0x1016eb35
mov ecx, dword [ebx + 0x2c]
jmp 0x1016e8b4
mov ecx, edx
mov dword [ebp - 0x28], 0
jmp 0x1016e8b4
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x1016ea62
mov byte [ebx + 0x17], 1
jmp 0x1016ea62