Function at 0x1006e8d0
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 0x1006f9f9
cmp byte [ebx + 0xd8], 1
jne 0x1006e950
cmp byte [ebp + 0x28], 2
jne 0x1006f9f9
mov ecx, ebx
call fcn.10089ac0
test eax, eax
jne 0x1006f9f9
mov edx, dword [esp + 0x2c]
mov ecx, ebx
call fcn.1006e870
test eax, eax
jne 0x1006f9f9
cmp dword [esp + 0x24], eax
je 0x1006eb56
lea eax, [esp + 0x40]
mov edx, edi
push eax
push esi
mov ecx, ebx
call fcn.10069890
mov edi, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
js 0x1006f9fd
cmp byte [edi + 0xb1], 0
jne 0x1006e9d7
mov edx, dword [esp + 0x24]
mov ecx, ebx
call fcn.10072480
cmp dword [esi + 4], 0
mov esi, dword [esp + 0x1c]
jne 0x1006e9d9
test eax, eax
je 0x1006e9d9
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 0x1006e9d9
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], 0x10067ab0
mov dword [esp + 0x5c], 0x10067b00
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.10052dd0
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 8]
test edx, edx
je 0x1006eae3
mov eax, dword [ebx]
xor ecx, ecx
mov esi, dword [eax + 0x10]
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x1006ead8
nop
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x1006ead0
add ecx, ecx
mov eax, dword [esi + ecx*8]
mov esi, dword [esp + 0x1c]
jmp 0x1006eae6
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [esp + 0x28]
xor edx, edx
mov ecx, ebx
push dword [eax + 0x10]
call fcn.10068d60
mov edx, eax
add esp, 8
mov dword [esp + 0xc], edx
test edx, edx
je 0x1006f9fd
cmp esi, 1
jne 0x1006eb2d
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x1c]
cmp eax, dword [edx + 0x3c]
je 0x1006eb2d
push dword [edx]
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
push ebx
call fcn.10020b80
add esp, 0xc
jmp 0x1006f2f9
test byte [edx + 0x1c], 0x80
je 0x1006eb9c
mov ecx, dword [edx + 8]
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x1006eb9c
nop
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x1006eb50
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x1006eb40
mov dword [esp + 0x30], ecx
jmp 0x1006eb9c
mov eax, dword [ebx + 0xf4]
mov dword [esp + 0xc], eax
test eax, eax
je 0x1006f9f9
mov ecx, dword [eax + 0x3c]
mov esi, 0xffff8000
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x1006eb9c
mov eax, dword [edi + 0x10]
xor esi, esi
add eax, 0xc
mov dword [esp + 0x1c], esi
cmp dword [eax], ecx
je 0x1006eb9c
nop dword [eax]
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x1006eb90
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 0x1006ec32
mov esi, ebx
mov edi, str.sqlite_
mov al, byte [esi]
dec edx
test al, al
je 0x1006ebe6
movzx ecx, byte [edi]
movzx eax, al
mov al, byte [eax + 0x1012c958]
cmp al, byte [ecx + 0x1012c958]
jne 0x1006ebe6
inc esi
inc edi
test edx, edx
jg 0x1006ebc4
dec edx
test edx, edx
js 0x1006ec02
movzx eax, byte [edi]
movzx ecx, byte [eax + 0x1012c958]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x1012c958]
sub eax, ecx
jne 0x1006ec2e
mov edi, dword [esp + 0x10]
cmp byte [edi + 0xb1], 0
jne 0x1006ec32
cmp dword [esp + 0x24], 0
je 0x1006ec32
mov ecx, dword [esp + 0x14]
push ebx
push str.table__s_may_not_be_indexed
push ecx
call fcn.10020b80
add esp, 0xc
jmp 0x1006f2f9
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov al, byte [edx + 0x2b]
cmp al, 2
jne 0x1006ec51
mov ecx, dword [esp + 0x14]
push str.views_may_not_be_indexed
push ecx
call fcn.10020b80
jmp 0x1006f2f6
cmp al, 1
jne 0x1006ec69
mov ecx, dword [esp + 0x14]
push str.virtual_tables_may_not_be_indexed
push ecx
call fcn.10020b80
jmp 0x1006f2f6
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1006edd3
mov edi, dword [eax]
mov esi, dword [eax + 4]
test edi, edi
je 0x1006edbf
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 0x1006edaf
push esi
push edi
push ebx
call fcn.10107750
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.10069920
add esp, 8
test eax, eax
jne 0x1006f2f9
cmp byte [ebx + 0xd8], 2
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
jae 0x1006eda5
cmp byte [edi + 0xb1], al
jne 0x1006ed2d
push dword [esi]
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.10068990
add esp, 4
test eax, eax
je 0x1006ed2d
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 0x1006f2f9
push dword [esi]
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.10068f20
add esp, 4
test eax, eax
je 0x1006eda5
cmp dword [ebp + 0x24], 0
jne 0x1006ed63
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 0x1006f2f9
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 0x1006ed91
bts eax, ecx
mov dword [edx + 0x58], eax
cmp ecx, 1
jne 0x1006ed91
mov ecx, edx
call fcn.10070e40
mov ecx, ebx
call fcn.10069b90
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x1006f2f9
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x1006ee1a
mov ecx, ebx
call fcn.10020c10
mov dword [esp + 0x20], ebx
jmp 0x1006f2f9
xor ecx, ecx
call fcn.10020c10
mov dword [esp + 0x20], 0
jmp 0x1006f2f9
mov eax, dword [edx + 8]
mov ecx, 1
test eax, eax
je 0x1006ede8
nop
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x1006ede0
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 0x1006f2f9
mov ebx, dword [esp + 0x14]
cmp byte [ebx + 0xd8], 0
je 0x1006ee16
inc byte [esi + 7]
mov esi, dword [esp + 0x28]
cmp byte [ebx + 0xd8], 2
jae 0x1006ee80
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.10067f40
add esp, 0xc
test eax, eax
jne 0x1006f2f9
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.10067f40
add esp, 0xc
test eax, eax
jne 0x1006f2f9
cmp dword [esp + 0x2c], 0
jne 0x1006ef43
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 0x1006eeaa
xor esi, esi
jmp 0x1006eebf
mov esi, ebx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x1006eeb0
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 0x1006ef0f
push 0x34
push 0
push edi
call fcn.101062c0
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 0x1006ef04
push esi
push ebx
push eax
call fcn.10107750
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.100585e0
mov edi, eax
mov dword [esp + 0x2c], edi
test edi, edi
je 0x1006f2f9
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 0x1006ef70
mov edi, dword [esp + 0x2c]
mov ecx, dword [ebx]
mov eax, dword [edi]
cmp eax, dword [ecx + 0x80]
jle 0x1006ef66
push str.index
push str.too_many_columns_in__s
push ebx
call fcn.10020b80
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x1006f2f9
mov esi, dword [edi]
test esi, esi
jle 0x1006efb7
lea edx, [edi + 8]
nop dword [eax]
mov ecx, dword [edx]
cmp byte [ecx], 0x71
jne 0x1006efab
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x1006efa0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006ef91
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 0x1006ef80
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 0x1006efc0
mov eax, dword [esp + 0x30]
sub esi, ecx
and esi, 0x3fffffff
test eax, eax
je 0x1006efdd
movzx ecx, word [eax + 0x32]
jmp 0x1006efe2
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.1006e7d0
add esp, 8
mov ebx, eax
cmp byte [edi + 0x57], 0
mov dword [esp + 0x18], ebx
jne 0x1006f2b3
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.10107750
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 0x1006f0a5
mov ecx, dword [esp + 0x14]
push 0
push edi
push 2
call fcn.10055fa0
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 0x1006f0d2
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 0x1006f37a
mov eax, dword [edi]
mov cl, byte [eax]
cmp cl, 0x75
je 0x1006f0f9
cmp cl, 0x71
jne 0x1006f0fc
mov eax, dword [eax + 0xc]
cmp byte [eax], 0x75
jne 0x1006f0fc
mov byte [eax], 0x3b
mov ecx, dword [esp + 0x14]
push 0
push dword [edi]
push 0x20
call fcn.10055fa0
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp dword [ecx + 0x24], 0
jne 0x1006f2af
mov eax, dword [edi]
test eax, eax
je 0x1006f132
test dword [eax + 4], 0x2000
je 0x1006f132
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x1006f122
cmp byte [eax], 0xa7
je 0x1006f17e
mov edx, dword [esp + 0xc]
cmp edx, dword [ecx + 0xf4]
je 0x1006f367
cmp dword [ebx + 0x28], 0
jne 0x1006f15c
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 0x1006f1c6
movsx ecx, word [eax + 0x20]
test ecx, ecx
jns 0x1006f190
mov edx, dword [esp + 0xc]
movsx ecx, word [edx + 0x20]
jmp 0x1006f1bf
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
mov eax, ecx
add eax, eax
test byte [edx + eax*8 + 4], 0xf
jne 0x1006f1ad
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 0x1006f1bf
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 0x1006f20c
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1006f1d8
xor esi, esi
jmp 0x1006f1ef
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1006f1e0
sub esi, edx
and esi, 0x3fffffff
mov edi, dword [esp + 0x38]
inc esi
push esi
push ecx
push edi
call fcn.10107750
lea eax, [esi + edi]
add esp, 0xc
mov esi, dword [esp + 0x28]
mov dword [esp + 0x38], eax
jmp 0x1006f249
test ecx, ecx
js 0x1006f24d
shl ecx, 4
add ecx, dword [edx + 4]
movzx edx, word [ecx + 0xe]
test edx, 0x200
je 0x1006f24d
mov eax, dword [ecx]
cmp byte [eax], 0
je 0x1006f236
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x1006f230
test dl, 4
je 0x1006f246
nop dword [eax + eax]
inc eax
cmp byte [eax], 0
jne 0x1006f240
lea edi, [eax + 1]
test edi, edi
jne 0x1006f252
mov edi, 0x1012c31c
mov eax, dword [esp + 0x10]
cmp byte [eax + 0xb1], 0
jne 0x1006f32c
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.10071b20
add esp, 8
test bl, bl
jne 0x1006f2a3
test eax, eax
je 0x1006f293
cmp dword [eax + 0xc], 0
jne 0x1006f328
mov ecx, dword [esp + 0x14]
mov dl, bh
push edi
push eax
call fcn.10071c30
add esp, 8
mov ebx, dword [esp + 0x18]
test eax, eax
jne 0x1006f32c
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x1006f2f9
push dword [ebx + 0x24]
push edi
call fcn.100578e0
mov edx, dword [ebx + 0x28]
add esp, 8
test edx, edx
je 0x1006f2d1
mov ecx, edi
call fcn.10058aa0
push dword [ebx + 0x10]
push edi
call fcn.1001ce80
add esp, 8
test byte [ebx + 0x38], 0x10
je 0x1006f2ef
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 0x1006f9f9
nop dword [eax + eax]
cmp byte [ecx + 0x36], 5
je 0x1006f9d9
lea edx, [ecx + 0x14]
mov ecx, dword [edx]
test ecx, ecx
jne 0x1006f310
jmp 0x1006f9f9
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 0x1006f37a
mov edx, dword [esp + 0xc]
jmp 0x1006f0e3
push str.expressions_prohibited_in_PRIMARY_KEY_and_UNIQUE_constraints
push ecx
call fcn.10020b80
add esp, 8
jmp 0x1006f2af
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x1006f3f1
xor eax, eax
xor esi, esi
cmp ax, word [ecx + 0x32]
jae 0x1006f405
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.1006ba30
add esp, 8
test eax, eax
je 0x1006f3b6
mov eax, 0xffff
add word [ebx + 0x34], ax
jmp 0x1006f3e2
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 0x1006f390
jmp 0x1006f405
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.1006faf0
mov eax, dword [esp + 0x14]
cmp dword [eax + 0xf4], 0
jne 0x1006f420
mov ecx, ebx
call fcn.1006b9d0
mov ecx, ebx
call fcn.1006bad0
cmp dword [esp + 0x24], 0
mov ecx, dword [esp + 0xc]
je 0x1006f49a
movzx esi, word [ebx + 0x34]
movsx eax, word [ecx + 0x22]
cmp esi, eax
jl 0x1006f49a
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 0x1006f49a
movsx ebx, word [ecx + 0x20]
cmp edx, ebx
je 0x1006f48d
xor ecx, ecx
test esi, esi
je 0x1006f475
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
cmp dx, word [eax]
je 0x1006f485
inc ecx
add eax, 2
cmp ecx, esi
jl 0x1006f468
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
and eax, 0xffffffdf
mov dword [ebx + 0x38], eax
jmp 0x1006f496
movzx eax, cx
test ax, ax
js 0x1006f475
inc edx
cmp edx, edi
jl 0x1006f457
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
cmp ecx, dword [edx + 0xf4]
jne 0x1006f585
mov esi, dword [ecx + 8]
mov dword [esp + 0x30], esi
test esi, esi
je 0x1006f585
movzx ecx, word [ebx + 0x32]
nop dword [eax]
movzx eax, word [esi + 0x32]
cmp ax, cx
jne 0x1006f56e
mov edx, eax
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
test edx, edx
je 0x1006f562
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 0x1006f55e
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 0x1006f53d
test eax, eax
jne 0x1006f54f
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 0x1006f4f0
jmp 0x1006f55e
movzx ecx, byte [eax + 0x1012c958]
movzx eax, byte [esi + 0x1012c958]
sub ecx, eax
jne 0x1006f552
inc edx
jmp 0x1006f510
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
cmp ecx, edx
je 0x1006f5f9
movzx ecx, word [ebx + 0x32]
mov esi, dword [esi + 0x14]
mov dword [esp + 0x30], esi
test esi, esi
jne 0x1006f4c0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
cmp byte [edx + 0xd8], 2
mov edi, dword [esp + 0x10]
jae 0x1006f98d
cmp byte [edi + 0xb1], 0
je 0x1006f6a5
cmp dword [esp + 0x24], 0
je 0x1006f5d4
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + 0xac]
mov dword [ebx + 0x2c], ecx
mov eax, dword [eax + 8]
test eax, eax
je 0x1006f5d4
nop dword [eax]
cmp dword [eax + 0x2c], ecx
jne 0x1006f5cd
cmp eax, ebx
jne 0x1006f663
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x1006f5c0
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx]
add ecx, 0x18
push ebx
call fcn.10022320
add esp, 4
test eax, eax
je 0x1006f69c
mov ecx, edi
call fcn.1001d570
jmp 0x1006f2b3
mov al, byte [esi + 0x36]
mov cl, byte [ebx + 0x36]
cmp al, cl
je 0x1006f62c
cmp al, 0xb
je 0x1006f626
cmp cl, 0xb
je 0x1006f62c
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 0x1006f62c
mov al, byte [ebx + 0x36]
mov byte [esi + 0x36], al
cmp byte [ebp + 0x28], 2
jne 0x1006f63e
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 0x1006f2af
mov eax, dword [ecx + 0xf8]
mov dword [ebx + 0x14], eax
mov dword [ecx + 0xf8], ebx
jmp 0x1006f2f9
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 0x1006f2b3
or dword [edi + 0x18], 1
jmp 0x1006f989
test byte [ecx + 0x1c], 0x80
je 0x1006f6b7
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1006f991
inc dword [edx + 0x2c]
mov esi, dword [edx + 8]
mov ebx, dword [edx + 0x2c]
test esi, esi
jne 0x1006f6ea
cmp dword [edx + 0x78], esi
jne 0x1006f6d5
mov eax, dword [edx]
test byte [eax + 0x50], 8
jne 0x1006f6d5
mov byte [edx + 0x17], 1
mov ecx, edx
call fcn.1003f640
mov esi, eax
test esi, esi
je 0x1006f9d0
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 0x1006f71c
bts eax, ecx
mov dword [edi + 0x58], eax
cmp ecx, 1
jne 0x1006f71c
mov ecx, edi
call fcn.10070e40
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 0x1006f74a
push 0
push 0
push 0
mov edx, 0xb8
mov ecx, esi
call fcn.1003f820
add esp, 0xc
mov edx, eax
jmp 0x1006f77d
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 0x1006f7a4
push 2
push ebx
push dword [esp + 0x24]
mov edx, 0x93
mov ecx, esi
call fcn.1003f820
add esp, 0xc
jmp 0x1006f7d3
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 0x1006f829
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 0x1006f82b
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.10068870
add esp, 0x1c
push edi
mov edi, dword [esp + 0x14]
push edi
call fcn.1001ce80
add esp, 8
cmp dword [esp + 0x24], 0
je 0x1006f964
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x1c]
mov edx, ebx
call fcn.1006df50
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 0x1006f8bb
push edx
push 1
push dword [esp + 0x24]
mov edx, 0x64
mov ecx, edi
call fcn.1003f820
add esp, 0xc
jmp 0x1006f8ea
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.1003fcf0
mov ecx, dword [esi + 0x6c]
add esp, 8
cmp dword [esi + 0x70], ecx
jg 0x1006f92f
push 0
push 1
push 0
mov edx, 0xa6
mov ecx, esi
call fcn.1003f820
add esp, 0xc
jmp 0x1006f968
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 0x1006f968
mov ebx, dword [esp + 0x18]
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x1006f97a
mov eax, 0x10143a20
jmp 0x1006f986
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 0x1006f9b6
test eax, eax
je 0x1006f9b6
cmp byte [edx + 0xd8], 2
jb 0x1006f9d0
mov eax, dword [esp + 0x18]
mov dword [edx + 0xf8], eax
jmp 0x1006f2f9
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 0x1006f2fd
mov ebx, dword [esp + 0x18]
jmp 0x1006f2b3
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x1006f9f9
cmp byte [eax + 0x36], 5
je 0x1006f9f9
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 0x1006f9e0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1006fa0e
mov edx, eax
mov ecx, edi
call fcn.100577f0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1006fa1f
mov edx, eax
mov ecx, edi
call fcn.10058aa0
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.100704f0
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1006facc
test edi, edi
je 0x1006fac3
cmp ecx, dword [edi + 0x164]
jae 0x1006fa9c
cmp ecx, dword [edi + 0x15c]
jb 0x1006fa71
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.101049d1
mov esp, ebp
pop ebp
ret
cmp ecx, dword [edi + 0x160]
jb 0x1006fa9c
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.101049d1
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x210], 0
je 0x1006fac3
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.101049d1
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.101049d1
mov esp, ebp
pop ebp
ret