Function at 0x1016f050
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 0x1016f07e
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [edx + 8]
mov dword [ebp - 0x34], edx
xor edx, edx
push eax
call fcn.10171ba0
mov edx, dword [ebp - 0x34]
add esp, 4
test eax, eax
jne 0x1016f08c
mov ecx, edi
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.10021750
mov dword [ebp - 0x14], eax
mov ecx, ebx
mov edx, dword [ebp - 0x14]
call fcn.1017bd00
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
test eax, eax
jne 0x1016f07e
mov al, byte [ecx + 0x2b]
xor ecx, ecx
cmp al, 2
mov edx, 0x101caa29
cmovne edx, ecx
cmp al, 1
mov eax, str.virtual_table
cmovne eax, edx
test eax, eax
je 0x1016f0de
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.10046a40
add esp, 0x14
mov edx, dword [ebp - 0x34]
jmp 0x1016f07e
mov ecx, edi
mov edx, esi
call fcn.10021d70
test eax, eax
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
je 0x1016f07e
mov dword [ebp - 0x30], eax
mov edx, eax
call fcn.10171ff0
test eax, eax
js 0x1016f13b
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 0x1016f158
test al, 1
mov eax, 0x101d6421
mov ecx, 0x101d2728
cmove ecx, eax
mov esi, dword [ebp - 0x30]
push esi
push ecx
push str.cannot_drop__s_column:___s_
push ebx
call fcn.10046a40
add esp, 0x10
jmp 0x1016f14d
push esi
push str.no_such_column:___T_
push ebx
call fcn.10046a40
add esp, 0xc
mov esi, dword [ebp - 0x30]
mov ecx, edi
mov edx, esi
call fcn.10129dd0
jmp 0x1016f0d9
mov ecx, edx
cmp word [edx + 0x22], 1
jg 0x1016f175
mov esi, dword [ebp - 0x30]
push esi
push str.cannot_drop_column___s_:_no_other_columns_exist
push ebx
call fcn.10046a40
add esp, 0xc
jmp 0x1016f14d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x1016f19a
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 0x1016f18e
jmp 0x1016f19f
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.10159600
add esp, 0xc
test eax, eax
jne 0x1016f14d
xor eax, eax
cmp dword [ebp - 0x20], 1
sete al
mov ecx, ebx
mov esi, dword [ebp - 0x10]
mov edx, esi
push 0
push 0x101e246d
mov dword [ebp - 0x18], eax
push eax
call fcn.1017be70
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.10025a50
add esp, 0x10
cmp dword [ebp - 0x20], 1
je 0x1016f21a
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.10025a50
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.10025a50
add esp, 0x18
mov ecx, ebx
mov edx, esi
push 2
call fcn.1017be00
add esp, 4
mov ecx, ebx
mov edx, dword [ebp - 0x10]
push 1
push str.after_drop_column
push dword [ebp - 0x18]
call fcn.1017be70
add esp, 0xc
cmp dword [ebx + 0x24], 0
mov esi, dword [ebp - 0x30]
jne 0x1016f14d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
test byte [eax + ecx + 0xe], 0x20
jne 0x1016f14d
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1016f4b8
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.100412d0
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.10030110
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 0x1016f496
mov ecx, dword [ebp - 0x18]
mov edx, 0x87
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
call fcn.10030110
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 0x1016f420
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x4c], eax
xor esi, esi
cmp esi, dword [ebp - 0x44]
je 0x1016f413
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov ecx, esi
shl ecx, 4
test byte [eax + ecx + 0xe], 0x20
jne 0x1016f413
cmp dword [ebp - 0x10], 0
je 0x1016f3c4
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0x34]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1016f413
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 4]
xor eax, eax
cmp word [edx + eax*2], si
je 0x1016f388
inc eax
cmp dword [ebp - 0x1c], eax
jne 0x1016f379
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 0x1016f3a0
inc eax
cmp dword [ebp - 0x1c], eax
jne 0x1016f38e
xor eax, eax
dec eax
mov ecx, dword [ebp - 0x10]
movzx ecx, word [ecx + 0x32]
cmp dword [ebp - 0x40], ecx
jl 0x1016f413
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 0x1016f3cf
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 0x1016f3f0
mov ecx, dword [ebp - 0x18]
mov edx, 0x4b
xor eax, eax
push eax
push dword [ebp - 0x1c]
push eax
call fcn.10030110
jmp 0x1016f402
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x2c]
call fcn.10035ca0
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 0x1016f33a
cmp dword [ebp - 0x28], 0
je 0x1016f4d1
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.10030110
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x1016f4fd
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.10030110
add esp, 0xc
mov ecx, dword [ebx]
cmp byte [ecx + 0x57], 0
jne 0x1016f516
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 0x1016f516
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x1016f576
mov ecx, dword [eax + 0x38]
and ecx, 3
cmp ecx, 2
je 0x1016f573
mov eax, dword [eax + 0x14]
jmp 0x1016f49c
cmp dword [ebx + 0x78], 0
je 0x1016f5dd
mov ecx, ebx
call fcn.1002fa90
mov dword [ebp - 0x18], eax
jmp 0x1016f28b
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.10030110
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
jmp 0x1016f42e
mov ecx, dword [ebp - 0x18]
mov edx, 0x80
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
call fcn.10030110
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x6c]
test eax, eax
jle 0x1016f530
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.10030110
add esp, 0xc
mov edx, dword [esi]
mov eax, dword [esi + 0x6c]
mov ecx, 0x101f4350
cmp byte [edx + 0x57], 0
jne 0x1016f56b
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 0x1016f14a
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 0x1016f5cf
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.10030110
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 0x1016f595
mov ecx, dword [ebx + 0x2c]
jmp 0x1016f314
mov ecx, edx
mov dword [ebp - 0x28], 0
jmp 0x1016f314
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x1016f4c2
mov byte [ebx + 0x17], 1
jmp 0x1016f4c2