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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x10140004]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [ebx]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov edi, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
cmp dword [ebx + 0x24], eax
jne 0x1006f9a9
cmp byte [ebx + 0xd8], 1
jne 0x1006e900
cmp byte [ebp + 0x28], 2
jne 0x1006f9a9
mov ecx, ebx
call fcn.10089a50
test eax, eax
jne 0x1006f9a9
mov edx, dword [esp + 0x2c]
mov ecx, ebx
call fcn.1006e820
test eax, eax
jne 0x1006f9a9
cmp dword [esp + 0x24], eax
je 0x1006eb06
lea eax, [esp + 0x40]
mov edx, edi
push eax
push esi
mov ecx, ebx
call fcn.10069840
mov edi, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
js 0x1006f9ad
cmp byte [edi + 0xb1], 0
jne 0x1006e987
mov edx, dword [esp + 0x24]
mov ecx, ebx
call fcn.10072430
cmp dword [esi + 4], 0
mov esi, dword [esp + 0x1c]
jne 0x1006e989
test eax, eax
je 0x1006e989
mov ecx, dword [edi + 0x10]
mov eax, dword [eax + 0x3c]
cmp eax, dword [ecx + 0x1c]
mov eax, 1
cmove esi, eax
mov dword [esp + 0x1c], esi
jmp 0x1006e989
mov esi, eax
mov edx, dword [ebx]
mov ecx, esi
mov dword [esp + 0x50], ebx
add ecx, ecx
cmp esi, 1
xorps xmm0, xmm0
movlpd qword [esp + 0x88], xmm0
mov eax, dword [edx + 0x10]
movlpd qword [esp + 0x90], xmm0
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0xa0], xmm0
mov eax, dword [eax + ecx*8]
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0x10]
lea edx, [esp + 0x88]
movlpd qword [esp + 0xac], xmm0
movlpd qword [esp + 0xb4], xmm0
movlpd qword [esp + 0xbc], xmm0
mov eax, dword [eax + ecx*8 + 0xc]
sete byte [esp + 0x74]
mov dword [esp + 0x70], eax
lea ecx, [esp + 0x54]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x80], eax
xor eax, eax
mov word [esp + 0x68], ax
lea eax, [esp + 0x50]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x7c], str.index
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 0x10067a70
mov dword [esp + 0x5c], 0x10067ac0
mov dword [esp + 0x60], 0x10001080
mov dword [esp + 0x64], 0
movlpd qword [esp + 0xc4], xmm0
movlpd qword [esp + 0xcc], xmm0
mov dword [esp + 0xa8], eax
call fcn.10052d90
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 8]
test edx, edx
je 0x1006ea93
mov eax, dword [ebx]
xor ecx, ecx
mov esi, dword [eax + 0x10]
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x1006ea88
nop
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x1006ea80
add ecx, ecx
mov eax, dword [esi + ecx*8]
mov esi, dword [esp + 0x1c]
jmp 0x1006ea96
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [esp + 0x28]
xor edx, edx
mov ecx, ebx
push dword [eax + 0x10]
call fcn.10068d20
mov edx, eax
add esp, 8
mov dword [esp + 0xc], edx
test edx, edx
je 0x1006f9ad
cmp esi, 1
jne 0x1006eadd
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x1c]
cmp eax, dword [edx + 0x3c]
je 0x1006eadd
push dword [edx]
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
push ebx
call fcn.10020b80
add esp, 0xc
jmp 0x1006f2a9
test byte [edx + 0x1c], 0x80
je 0x1006eb4c
mov ecx, dword [edx + 8]
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x1006eb4c
nop
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x1006eb00
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x1006eaf0
mov dword [esp + 0x30], ecx
jmp 0x1006eb4c
mov eax, dword [ebx + 0xf4]
mov dword [esp + 0xc], eax
test eax, eax
je 0x1006f9a9
mov ecx, dword [eax + 0x3c]
mov esi, 0xffff8000
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x1006eb4c
mov eax, dword [edi + 0x10]
xor esi, esi
add eax, 0xc
mov dword [esp + 0x1c], esi
cmp dword [eax], ecx
je 0x1006eb4c
nop dword [eax]
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x1006eb40
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0x10]
mov ecx, esi
shl ecx, 4
mov edx, 7
add eax, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc]
mov ebx, dword [eax]
test ebx, ebx
je 0x1006ebe2
mov esi, ebx
mov edi, str.sqlite_
mov al, byte [esi]
dec edx
test al, al
je 0x1006eb96
movzx ecx, byte [edi]
movzx eax, al
mov al, byte [eax + 0x1012c958]
cmp al, byte [ecx + 0x1012c958]
jne 0x1006eb96
inc esi
inc edi
test edx, edx
jg 0x1006eb74
dec edx
test edx, edx
js 0x1006ebb2
movzx eax, byte [edi]
movzx ecx, byte [eax + 0x1012c958]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x1012c958]
sub eax, ecx
jne 0x1006ebde
mov edi, dword [esp + 0x10]
cmp byte [edi + 0xb1], 0
jne 0x1006ebe2
cmp dword [esp + 0x24], 0
je 0x1006ebe2
mov ecx, dword [esp + 0x14]
push ebx
push str.table__s_may_not_be_indexed
push ecx
call fcn.10020b80
add esp, 0xc
jmp 0x1006f2a9
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov al, byte [edx + 0x2b]
cmp al, 2
jne 0x1006ec01
mov ecx, dword [esp + 0x14]
push str.views_may_not_be_indexed
push ecx
call fcn.10020b80
jmp 0x1006f2a6
cmp al, 1
jne 0x1006ec19
mov ecx, dword [esp + 0x14]
push str.virtual_tables_may_not_be_indexed
push ecx
call fcn.10020b80
jmp 0x1006f2a6
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1006ed83
mov edi, dword [eax]
mov esi, dword [eax + 4]
test edi, edi
je 0x1006ed6f
xor eax, eax
mov ecx, esi
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.1001d1c0
mov ebx, eax
add esp, 8
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x1006ed5f
push esi
push edi
push ebx
call fcn.10107690
add esp, 0xc
mov byte [esi + ebx], 0
mov ecx, ebx
call fcn.10020c10
mov eax, dword [esp + 0xc]
mov edx, ebx
mov ebx, dword [esp + 0x14]
mov ecx, ebx
push dword [eax]
push str.index
call fcn.100698d0
add esp, 8
test eax, eax
jne 0x1006f2a9
cmp byte [ebx + 0xd8], 2
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
jae 0x1006ed55
cmp byte [edi + 0xb1], al
jne 0x1006ecdd
push dword [esi]
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.10068950
add esp, 4
test eax, eax
je 0x1006ecdd
mov esi, dword [esp + 0x20]
push esi
push str.there_is_already_a_table_named__s
push ebx
call fcn.10020b80
add esp, 0xc
mov dword [esp + 0x20], esi
jmp 0x1006f2a9
push dword [esi]
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.10068ee0
add esp, 4
test eax, eax
je 0x1006ed55
cmp dword [ebp + 0x24], 0
jne 0x1006ed13
mov esi, dword [esp + 0x20]
push esi
push str.index__s_already_exists
push ebx
call fcn.10020b80
add esp, 0xc
mov dword [esp + 0x20], esi
jmp 0x1006f2a9
mov eax, dword [ebx + 0x78]
mov edx, ebx
mov ecx, dword [esp + 0x1c]
test eax, eax
mov esi, 1
cmovne edx, eax
shl esi, cl
mov eax, dword [edx + 0x58]
test eax, esi
jne 0x1006ed41
bts eax, ecx
mov dword [edx + 0x58], eax
cmp ecx, 1
jne 0x1006ed41
mov ecx, edx
call fcn.10070df0
mov ecx, ebx
call fcn.10069b40
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x1006f2a9
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x1006edca
mov ecx, ebx
call fcn.10020c10
mov dword [esp + 0x20], ebx
jmp 0x1006f2a9
xor ecx, ecx
call fcn.10020c10
mov dword [esp + 0x20], 0
jmp 0x1006f2a9
mov eax, dword [edx + 8]
mov ecx, 1
test eax, eax
je 0x1006ed98
nop
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x1006ed90
push ecx
push ebx
push str.sqlite_autoindex__s__d
push edi
call fcn.1001fbf0
mov esi, eax
add esp, 0x10
mov dword [esp + 0x20], esi
test esi, esi
je 0x1006f2a9
mov ebx, dword [esp + 0x14]
cmp byte [ebx + 0xd8], 0
je 0x1006edc6
inc byte [esi + 7]
mov esi, dword [esp + 0x28]
cmp byte [ebx + 0xd8], 2
jae 0x1006ee30
mov esi, dword [esi]
mov ecx, str.sqlite_temp_master
cmp dword [esp + 0x1c], 1
mov eax, str.sqlite_master
push esi
cmove eax, ecx
mov edx, 0x12
push 0
push eax
mov ecx, ebx
call fcn.10067f00
add esp, 0xc
test eax, eax
jne 0x1006f2a9
mov eax, dword [esp + 0xc]
xor edx, edx
cmp dword [esp + 0x1c], 1
mov ecx, ebx
push esi
sete dl
push dword [eax]
push dword [esp + 0x28]
lea edx, [edx*2 + 1]
call fcn.10067f00
add esp, 0xc
test eax, eax
jne 0x1006f2a9
cmp dword [esp + 0x2c], 0
jne 0x1006eef3
mov eax, dword [esp + 0xc]
movsx ecx, word [eax + 0x22]
mov eax, dword [eax + 4]
add ecx, ecx
or word [eax + ecx*8 - 2], 8
mov ebx, dword [eax + ecx*8 - 0x10]
test ebx, ebx
jne 0x1006ee5a
xor esi, esi
jmp 0x1006ee6f
mov esi, ebx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x1006ee60
sub esi, ecx
and esi, 0x3fffffff
lea eax, [esi + 0x35]
mov ecx, edi
push 0
push eax
call fcn.1001d1c0
mov edi, eax
add esp, 8
test edi, edi
je 0x1006eebf
push 0x34
push 0
push edi
call fcn.10106200
or eax, 0xffffffff
mov byte [edi], 0x3b
mov word [edi + 0x22], ax
add esp, 0xc
lea eax, [edi + 0x34]
mov dword [edi + 8], eax
test esi, esi
je 0x1006eeb4
push esi
push ebx
push eax
call fcn.10107690
mov eax, dword [edi + 8]
add esp, 0xc
mov byte [eax + esi], 0
mov dword [edi + 0x18], 1
mov ecx, dword [esp + 0x14]
mov edx, edi
mov ecx, dword [ecx]
call fcn.100585a0
mov edi, eax
mov dword [esp + 0x2c], edi
test edi, edi
je 0x1006f2a9
mov ecx, dword [ebp + 0x20]
xor ebx, ebx
movzx edx, cl
cmp ecx, 0xffffffff
mov ecx, dword [edi]
cmovne ebx, edx
lea eax, [ecx + ecx*4]
mov byte [edi + eax*4 - 4], bl
jmp 0x1006ef20
mov edi, dword [esp + 0x2c]
mov ecx, dword [ebx]
mov eax, dword [edi]
cmp eax, dword [ecx + 0x80]
jle 0x1006ef16
push str.index
push str.too_many_columns_in__s
push ebx
call fcn.10020b80
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x1006f2a9
mov esi, dword [edi]
test esi, esi
jle 0x1006ef67
lea edx, [edi + 8]
nop dword [eax]
mov ecx, dword [edx]
cmp byte [ecx], 0x71
jne 0x1006ef5b
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x1006ef50
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006ef41
sub ecx, edi
and ecx, 0x3fffffff
mov eax, dword [esp + 0x18]
inc eax
add eax, ecx
mov dword [esp + 0x18], eax
add edx, 0x14
sub esi, 1
jne 0x1006ef30
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x1006ef70
mov eax, dword [esp + 0x30]
sub esi, ecx
and esi, 0x3fffffff
test eax, eax
je 0x1006ef8d
movzx ecx, word [eax + 0x32]
jmp 0x1006ef92
mov ecx, 1
movzx edx, word [edi]
lea eax, [esp + 0x34]
mov edi, dword [esp + 0x10]
add dx, cx
push eax
mov eax, dword [esp + 0x1c]
mov ecx, edi
inc eax
add eax, esi
push eax
call fcn.1006e780
add esp, 8
mov ebx, eax
cmp byte [edi + 0x57], 0
mov dword [esp + 0x18], ebx
jne 0x1006f263
mov ecx, dword [esp + 0x34]
mov dword [ebx], ecx
lea eax, [ecx + 1]
lea ecx, [esi + 1]
add eax, esi
push ecx
push dword [esp + 0x24]
mov dword [esp + 0x40], eax
push dword [ebx]
call fcn.10107690
mov eax, dword [esp + 0x58]
add esp, 0xc
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x2c]
mov byte [ebx + 0x36], al
neg eax
mov dword [ebx + 0xc], edx
sbb ecx, ecx
mov eax, dword [ebx + 0x38]
and eax, 0xfffffff7
and ecx, 8
or ecx, eax
movzx eax, byte [ebp + 0x28]
and eax, 3
and ecx, 0xfffffffc
or ecx, eax
mov dword [ebx + 0x38], ecx
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov eax, dword [ecx + eax + 0xc]
mov dword [ebx + 0x18], eax
movzx eax, word [esi]
mov word [ebx + 0x32], ax
mov ecx, eax
test edi, edi
je 0x1006f055
mov ecx, dword [esp + 0x14]
push 0
push edi
push 2
call fcn.10055f60
movzx ecx, word [ebx + 0x32]
add esp, 0xc
mov edx, dword [esp + 0xc]
xor eax, eax
mov dword [ebx + 0x24], edi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
lea edi, [esi + 8]
mov dword [esp + 0x34], edi
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x3f], al
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xd8], 2
jb 0x1006f082
mov dword [ebx + 0x28], esi
mov dword [esp + 0x2c], 0
xor esi, esi
xor eax, eax
mov dword [esp + 0x28], esi
cmp ax, cx
jae 0x1006f32a
mov eax, dword [edi]
mov cl, byte [eax]
cmp cl, 0x75
je 0x1006f0a9
cmp cl, 0x71
jne 0x1006f0ac
mov eax, dword [eax + 0xc]
cmp byte [eax], 0x75
jne 0x1006f0ac
mov byte [eax], 0x3b
mov ecx, dword [esp + 0x14]
push 0
push dword [edi]
push 0x20
call fcn.10055f60
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp dword [ecx + 0x24], 0
jne 0x1006f25f
mov eax, dword [edi]
test eax, eax
je 0x1006f0e2
test dword [eax + 4], 0x2000
je 0x1006f0e2
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x1006f0d2
cmp byte [eax], 0xa7
je 0x1006f12e
mov edx, dword [esp + 0xc]
cmp edx, dword [ecx + 0xf4]
je 0x1006f317
cmp dword [ebx + 0x28], 0
jne 0x1006f10c
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x28], eax
mov dword [esp + 0x2c], 0
mov eax, dword [ebx + 4]
mov ecx, 0xfffffffe
mov edi, ecx
mov word [eax + esi*2], di
mov eax, dword [ebx + 0x38]
mov edi, dword [esp + 0x34]
and eax, 0xfffffff7
or eax, 0x800
mov dword [ebx + 0x38], eax
jmp 0x1006f176
movsx ecx, word [eax + 0x20]
test ecx, ecx
jns 0x1006f140
mov edx, dword [esp + 0xc]
movsx ecx, word [edx + 0x20]
jmp 0x1006f16f
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
mov eax, ecx
add eax, eax
test byte [edx + eax*8 + 4], 0xf
jne 0x1006f15d
mov edx, dword [esp + 0xc]
and dword [ebx + 0x38], 0xfffffff7
mov edx, dword [edx + 4]
test byte [edx + eax*8 + 0xe], 0x20
mov edx, dword [esp + 0xc]
je 0x1006f16f
or dword [ebx + 0x38], 0xc00
mov eax, dword [ebx + 4]
mov word [eax + esi*2], cx
mov eax, dword [edi]
cmp byte [eax], 0x71
jne 0x1006f1bc
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1006f188
xor esi, esi
jmp 0x1006f19f
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1006f190
sub esi, edx
and esi, 0x3fffffff
mov edi, dword [esp + 0x38]
inc esi
push esi
push ecx
push edi
call fcn.10107690
lea eax, [esi + edi]
add esp, 0xc
mov esi, dword [esp + 0x28]
mov dword [esp + 0x38], eax
jmp 0x1006f1f9
test ecx, ecx
js 0x1006f1fd
shl ecx, 4
add ecx, dword [edx + 4]
movzx edx, word [ecx + 0xe]
test edx, 0x200
je 0x1006f1fd
mov eax, dword [ecx]
cmp byte [eax], 0
je 0x1006f1e6
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x1006f1e0
test dl, 4
je 0x1006f1f6
nop dword [eax + eax]
inc eax
cmp byte [eax], 0
jne 0x1006f1f0
lea edi, [eax + 1]
test edi, edi
jne 0x1006f202
mov edi, 0x1012c31c
mov eax, dword [esp + 0x10]
cmp byte [eax + 0xb1], 0
jne 0x1006f2dc
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov bl, byte [ecx + 0xb1]
mov bh, byte [ecx + 0x54]
movzx eax, bl
mov dl, bh
push eax
push edi
call fcn.10071ad0
add esp, 8
test bl, bl
jne 0x1006f253
test eax, eax
je 0x1006f243
cmp dword [eax + 0xc], 0
jne 0x1006f2d8
mov ecx, dword [esp + 0x14]
mov dl, bh
push edi
push eax
call fcn.10071be0
add esp, 8
mov ebx, dword [esp + 0x18]
test eax, eax
jne 0x1006f2dc
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x1006f2a9
push dword [ebx + 0x24]
push edi
call fcn.100578a0
mov edx, dword [ebx + 0x28]
add esp, 8
test edx, edx
je 0x1006f281
mov ecx, edi
call fcn.10058a60
push dword [ebx + 0x10]
push edi
call fcn.1001ce80
add esp, 8
test byte [ebx + 0x38], 0x10
je 0x1006f29f
push dword [ebx + 0x20]
push edi
call fcn.1001ce80
add esp, 8
push ebx
push edi
call fcn.1001ce80
add esp, 8
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 8]
add edx, 8
test ecx, ecx
je 0x1006f9a9
nop dword [eax + eax]
cmp byte [ecx + 0x36], 5
je 0x1006f989
lea edx, [ecx + 0x14]
mov ecx, dword [edx]
test ecx, ecx
jne 0x1006f2c0
jmp 0x1006f9a9
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 0x20]
mov dword [eax + esi*4], edi
xor eax, eax
mov edi, dword [esp + 0x34]
cmp byte [esp + 0x3f], 4
movzx ecx, byte [edi + 8]
cmovb ecx, eax
mov eax, dword [ebx + 0x1c]
add edi, 0x14
mov dword [esp + 0x34], edi
mov byte [esi + eax], cl
inc esi
movzx eax, word [ebx + 0x32]
mov dword [esp + 0x28], esi
cmp esi, eax
jge 0x1006f32a
mov edx, dword [esp + 0xc]
jmp 0x1006f093
push str.expressions_prohibited_in_PRIMARY_KEY_and_UNIQUE_constraints
push ecx
call fcn.10020b80
add esp, 8
jmp 0x1006f25f
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x1006f3a1
xor eax, eax
xor esi, esi
cmp ax, word [ecx + 0x32]
jae 0x1006f3b5
nop dword [eax]
mov eax, dword [ecx + 4]
movzx edx, word [ebx + 0x32]
push esi
push ecx
movzx edi, word [eax + esi*2]
mov ecx, ebx
call fcn.1006b9e0
add esp, 8
test eax, eax
je 0x1006f366
mov eax, 0xffff
add word [ebx + 0x34], ax
jmp 0x1006f392
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 4]
mov word [eax + edx*2], di
mov edi, dword [esp + 0x30]
mov ecx, dword [ebx + 0x20]
mov eax, dword [edi + 0x20]
mov eax, dword [eax + esi*4]
mov dword [ecx + edx*4], eax
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebx + 0x1c]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
inc edx
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x30]
inc esi
movzx eax, word [ecx + 0x32]
cmp esi, eax
jl 0x1006f340
jmp 0x1006f3b5
mov eax, dword [ebx + 4]
or ecx, 0xffffffff
mov word [eax + esi*2], cx
mov eax, dword [ebx + 0x20]
mov dword [eax + esi*4], 0x1012c31c
mov ecx, ebx
call fcn.1006faa0
mov eax, dword [esp + 0x14]
cmp dword [eax + 0xf4], 0
jne 0x1006f3d0
mov ecx, ebx
call fcn.1006b980
mov ecx, ebx
call fcn.1006ba80
cmp dword [esp + 0x24], 0
mov ecx, dword [esp + 0xc]
je 0x1006f44a
movzx esi, word [ebx + 0x34]
movsx eax, word [ecx + 0x22]
cmp esi, eax
jl 0x1006f44a
or dword [ebx + 0x38], 0x20
xor edx, edx
movsx edi, word [ecx + 0x22]
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x38], eax
test edi, edi
jle 0x1006f44a
movsx ebx, word [ecx + 0x20]
cmp edx, ebx
je 0x1006f43d
xor ecx, ecx
test esi, esi
je 0x1006f425
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
cmp dx, word [eax]
je 0x1006f435
inc ecx
add eax, 2
cmp ecx, esi
jl 0x1006f418
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
and eax, 0xffffffdf
mov dword [ebx + 0x38], eax
jmp 0x1006f446
movzx eax, cx
test ax, ax
js 0x1006f425
inc edx
cmp edx, edi
jl 0x1006f407
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
cmp ecx, dword [edx + 0xf4]
jne 0x1006f535
mov esi, dword [ecx + 8]
mov dword [esp + 0x30], esi
test esi, esi
je 0x1006f535
movzx ecx, word [ebx + 0x32]
nop dword [eax]
movzx eax, word [esi + 0x32]
cmp ax, cx
jne 0x1006f51e
mov edx, eax
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
test edx, edx
je 0x1006f512
mov eax, dword [esi + 4]
mov ebx, dword [ebx + 4]
sub eax, ebx
mov dword [esp + 0x28], eax
nop dword [eax]
mov ax, word [eax + ebx]
cmp ax, word [ebx]
jne 0x1006f50e
mov eax, dword [esi + 0x20]
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
mov edi, dword [eax + ecx*4]
sub edi, edx
nop dword [eax + eax]
movzx eax, byte [edx]
movzx esi, byte [edx + edi]
cmp eax, esi
jne 0x1006f4ed
test eax, eax
jne 0x1006f4ff
mov ecx, dword [esp + 0x34]
add ebx, 2
mov edx, dword [esp + 0x38]
inc ecx
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], ecx
cmp ecx, edx
jl 0x1006f4a0
jmp 0x1006f50e
movzx ecx, byte [eax + 0x1012c958]
movzx eax, byte [esi + 0x1012c958]
sub ecx, eax
jne 0x1006f502
inc edx
jmp 0x1006f4c0
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
cmp ecx, edx
je 0x1006f5a9
movzx ecx, word [ebx + 0x32]
mov esi, dword [esi + 0x14]
mov dword [esp + 0x30], esi
test esi, esi
jne 0x1006f470
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
cmp byte [edx + 0xd8], 2
mov edi, dword [esp + 0x10]
jae 0x1006f93d
cmp byte [edi + 0xb1], 0
je 0x1006f655
cmp dword [esp + 0x24], 0
je 0x1006f584
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + 0xac]
mov dword [ebx + 0x2c], ecx
mov eax, dword [eax + 8]
test eax, eax
je 0x1006f584
nop dword [eax]
cmp dword [eax + 0x2c], ecx
jne 0x1006f57d
cmp eax, ebx
jne 0x1006f613
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x1006f570
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx]
add ecx, 0x18
push ebx
call fcn.10022320
add esp, 4
test eax, eax
je 0x1006f64c
mov ecx, edi
call fcn.1001d570
jmp 0x1006f263
mov al, byte [esi + 0x36]
mov cl, byte [ebx + 0x36]
cmp al, cl
je 0x1006f5dc
cmp al, 0xb
je 0x1006f5d6
cmp cl, 0xb
je 0x1006f5dc
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push dword [esp + 0x1c]
call fcn.10020b80
mov al, byte [esi + 0x36]
add esp, 0xc
cmp al, 0xb
jne 0x1006f5dc
mov al, byte [ebx + 0x36]
mov byte [esi + 0x36], al
cmp byte [ebp + 0x28], 2
jne 0x1006f5ee
mov eax, dword [esi + 0x38]
and eax, 0xfffffffe
or eax, 2
mov dword [esi + 0x38], eax
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0xd8], 2
jb 0x1006f25f
mov eax, dword [ecx + 0xf8]
mov dword [ebx + 0x14], eax
mov dword [ecx + 0xf8], ebx
jmp 0x1006f2a9
push str.invalid_rootpage
push edx
call fcn.10020b80
push 0x10131d5c
push 0x1dbfc
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
mov eax, dword [esp + 0x30]
add esp, 0x1c
mov dword [eax + 0xc], 0xb
jmp 0x1006f263
or dword [edi + 0x18], 1
jmp 0x1006f939
test byte [ecx + 0x1c], 0x80
je 0x1006f667
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1006f941
inc dword [edx + 0x2c]
mov esi, dword [edx + 8]
mov ebx, dword [edx + 0x2c]
test esi, esi
jne 0x1006f69a
cmp dword [edx + 0x78], esi
jne 0x1006f685
mov eax, dword [edx]
test byte [eax + 0x50], 8
jne 0x1006f685
mov byte [edx + 0x17], 1
mov ecx, edx
call fcn.1003f600
mov esi, eax
test esi, esi
je 0x1006f980
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x78]
mov edi, edx
test ecx, ecx
mov edx, 1
cmovne edi, ecx
mov ecx, dword [esp + 0x1c]
shl edx, cl
mov eax, dword [edi + 0x58]
test eax, edx
jne 0x1006f6cc
bts eax, ecx
mov dword [edi + 0x58], eax
cmp ecx, 1
jne 0x1006f6cc
mov ecx, edi
call fcn.10070df0
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x54]
or byte [edi + 0x14], 1
bts eax, ecx
mov dword [edi + 0x54], eax
mov edx, dword [esi + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x1006f6fa
push 0
push 0
push 0
mov edx, 0xb8
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
mov edx, eax
jmp 0x1006f72d
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb8
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
mov dword [eax + 0x2c], edx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1006f754
push 2
push ebx
push dword [esp + 0x24]
mov edx, 0x93
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
jmp 0x1006f783
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x93
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 2
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [ebp + 0x18], 0
je 0x1006f7d9
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xd0]
mov eax, dword [eax + 0xcc]
add edx, eax
mov eax, dword [esp + 0x40]
mov ecx, edx
mov eax, dword [eax]
sub ecx, eax
cmp byte [edx - 1], 0x3b
mov edx, str._UNIQUE
push eax
lea eax, [ecx - 1]
cmovne eax, ecx
cmp dword [esp + 0x50], 0
push eax
mov eax, 0x101315db
cmovne eax, edx
push eax
push str.CREATE_s_INDEX__.s
push dword [esp + 0x20]
call fcn.1001fbf0
add esp, 0x14
mov edi, eax
jmp 0x1006f7db
xor edi, edi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x44]
push edi
push ebx
push dword [eax]
mov eax, dword [esp + 0x24]
push dword [eax]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
push dword [ecx + eax]
push str.INSERT_INTO__Q.sqlite_master_VALUES_index__Q__Q__d__Q__
push dword [esp + 0x2c]
call fcn.10068830
add esp, 0x1c
push edi
mov edi, dword [esp + 0x14]
push edi
call fcn.1001ce80
add esp, 8
cmp dword [esp + 0x24], 0
je 0x1006f914
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x1c]
mov edx, ebx
call fcn.1006df00
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x44]
mov edi, dword [eax + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx + 0xc]
mov ecx, dword [edi + 0x6c]
mov edx, dword [eax]
inc edx
cmp dword [edi + 0x70], ecx
jg 0x1006f86b
push edx
push 1
push dword [esp + 0x24]
mov edx, 0x64
mov ecx, edi
call fcn.1003f7e0
add esp, 0xc
jmp 0x1006f89a
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [esp + 0x10]
push 0
push ecx
push dword [ebx]
push str.name_q_AND_typeindex
push edi
call fcn.1001fbf0
mov edx, dword [esp + 0x30]
add esp, 0x10
mov ecx, esi
push eax
call fcn.1003fcb0
mov ecx, dword [esi + 0x6c]
add esp, 8
cmp dword [esi + 0x70], ecx
jg 0x1006f8df
push 0
push 1
push 0
mov edx, 0xa6
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
jmp 0x1006f918
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xa6
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x1006f918
mov ebx, dword [esp + 0x18]
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x1006f92a
mov eax, 0x10143a20
jmp 0x1006f936
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
cmp byte [edi + 0xb1], 0
jne 0x1006f966
test eax, eax
je 0x1006f966
cmp byte [edx + 0xd8], 2
jb 0x1006f980
mov eax, dword [esp + 0x18]
mov dword [edx + 0xf8], eax
jmp 0x1006f2a9
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [eax + 8]
mov dword [ecx + 0x14], eax
mov dword [edx + 8], ecx
jmp 0x1006f2ad
mov ebx, dword [esp + 0x18]
jmp 0x1006f263
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x1006f9a9
cmp byte [eax + 0x36], 5
je 0x1006f9a9
mov dword [edx], eax
lea edx, [eax + 0x14]
mov eax, dword [edx]
mov dword [ecx + 0x14], eax
mov dword [edx], ecx
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x1006f990
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1006f9be
mov edx, eax
mov ecx, edi
call fcn.100577b0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1006f9cf
mov edx, eax
mov ecx, edi
call fcn.10058a60
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.100704a0
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1006fa7c
test edi, edi
je 0x1006fa73
cmp ecx, dword [edi + 0x164]
jae 0x1006fa4c
cmp ecx, dword [edi + 0x15c]
jb 0x1006fa21
mov eax, dword [edi + 0x158]
mov dword [ecx], eax
mov dword [edi + 0x158], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret
cmp ecx, dword [edi + 0x160]
jb 0x1006fa4c
mov eax, dword [edi + 0x150]
mov dword [ecx], eax
mov dword [edi + 0x150], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x210], 0
je 0x1006fa73
mov edx, ecx
mov ecx, edi
call fcn.1001cde0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret
push ecx
call fcn.1001cd70
add esp, 4
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret