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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x78]
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov ebx, dword [edi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], eax
cmp dword [edi + 0x24], eax
jne 0x487762
cmp byte [edi + 0xdc], 1
jne 0x4868d9
cmp byte [esp + 0xa0], 2
jne 0x487762
push edi
call fcn.004a4a80
add esp, 4
test eax, eax
jne 0x487762
mov eax, dword [esp + 0x88]
push eax
push edi
mov dword [esp + 0x28], eax
call fcn.004973d0
add esp, 8
test eax, eax
jne 0x487762
cmp dword [esp + 0x84], ebp
je 0x4869fd
mov esi, dword [esp + 0x80]
lea eax, [esp + 0x2c]
push eax
push esi
push dword [esp + 0x84]
push edi
call fcn.004ad540
mov edx, eax
add esp, 0x10
mov dword [esp + 0x1c], edx
test edx, edx
js 0x487762
cmp byte [ebx + 0xb1], 0
jne 0x48697a
push dword [esp + 0x84]
push edi
call fcn.004ab480
mov edx, dword [esp + 0x24]
add esp, 8
cmp dword [esi + 4], ebp
jne 0x48697a
test eax, eax
je 0x48697a
mov ecx, dword [ebx + 0x10]
mov esi, 1
mov eax, dword [eax + 0x3c]
cmp eax, dword [ecx + 0x1c]
cmove edx, esi
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x2c]
push eax
push str.index
push edx
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.004915d0
mov esi, dword [esp + 0x98]
lea eax, [esp + 0x54]
push esi
push eax
call fcn.00491640
lea eax, [esi + 8]
push eax
push 0
push edi
call fcn.0049b3e0
mov esi, eax
add esp, 0x28
mov dword [esp + 0x14], esi
test esi, esi
je 0x487762
mov edx, dword [esp + 0x1c]
cmp edx, 1
jne 0x4869e8
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x1c]
cmp eax, dword [esi + 0x3c]
je 0x4869e8
push dword [esi]
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
push edi
call fcn.00489e60
add esp, 0xc
jmp 0x486aee
test byte [esi + 0x1c], 0x80
je 0x486a3c
push esi
call fcn.004a3e00
add esp, 4
mov dword [esp + 0x28], eax
jmp 0x486a3c
mov esi, dword [edi + 0xf8]
mov dword [esp + 0x14], esi
test esi, esi
je 0x487762
mov ecx, dword [esi + 0x3c]
mov edx, 0xffff8000
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x486a3c
mov eax, dword [ebx + 0x10]
xor edx, edx
add eax, 0xc
mov dword [esp + 0x1c], edx
cmp dword [eax], ecx
je 0x486a3c
nop
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x486a30
mov dword [esp + 0x1c], edx
mov eax, dword [ebx + 0x10]
mov ecx, edx
mov ebx, dword [esi]
mov edx, 7
shl ecx, 4
add eax, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x486ad1
mov esi, ebx
mov edi, str.sqlite_
mov al, byte [esi]
dec edx
test al, al
je 0x486a82
movzx ecx, byte [edi]
movzx eax, al
mov al, byte [eax + 0x512ea8]
cmp al, byte [ecx + 0x512ea8]
jne 0x486a82
inc esi
inc edi
test edx, edx
jg 0x486a60
dec edx
test edx, edx
js 0x486a9e
movzx eax, byte [edi]
movzx ecx, byte [eax + 0x512ea8]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x512ea8]
sub eax, ecx
jne 0x486ac9
mov eax, dword [esp + 0x10]
cmp byte [eax + 0xb1], 0
jne 0x486ac9
cmp dword [esp + 0x84], ebp
je 0x486ac9
mov eax, dword [esp + 0x78]
push ebx
push str.table__s_may_not_be_indexed
push eax
call fcn.00489e60
add esp, 0xc
jmp 0x486aea
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x14]
mov al, byte [esi + 0x2b]
cmp al, 2
jne 0x486b8c
push str.views_may_not_be_indexed
push edi
call fcn.00489e60
add esp, 8
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add edx, 8
mov ecx, dword [edx]
test ecx, ecx
je 0x486b13
nop dword [eax + eax]
cmp byte [ecx + 0x36], 5
je 0x48772e
lea edx, [ecx + 0x14]
mov ecx, dword [edx]
test ecx, ecx
jne 0x486b00
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x94]
test esi, esi
je 0x486b2c
push esi
push ebx
call fcn.0048dd70
add esp, 8
test edi, edi
je 0x486b3a
push edi
push ebx
call fcn.00458120
add esp, 8
push dword [esp + 0x84]
push ebx
call fcn.004aaed0
mov esi, dword [esp + 0x20]
add esp, 8
test esi, esi
je 0x487805
test ebx, ebx
je 0x4877a7
cmp esi, dword [ebx + 0x164]
jae 0x48778c
cmp esi, dword [ebx + 0x15c]
jb 0x48776e
mov eax, dword [ebx + 0x158]
pop edi
mov dword [esi], eax
mov dword [ebx + 0x158], esi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
cmp al, 1
jne 0x486b9a
push str.virtual_tables_may_not_be_indexed
jmp 0x486ae1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x486cec
mov edi, dword [eax]
mov esi, dword [eax + 4]
test edi, edi
je 0x486cd9
mov ebx, dword [esp + 0x10]
xor eax, eax
mov ecx, esi
add ecx, 1
adc eax, eax
push eax
push ecx
push ebx
call fcn.00487b10
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x486cc3
push esi
push edi
mov edi, eax
push edi
call fcn.004e73f0
push edi
mov byte [esi + edi], 0
call fcn.00488e10
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x88]
push dword [edx]
push str.index
push edi
push ebx
call fcn.00482b30
add esp, 0x20
test eax, eax
jne 0x486aea
cmp byte [ebx + 0xdc], 2
mov esi, dword [esp + 0x24]
jae 0x486cbd
mov edi, dword [esp + 0x10]
cmp byte [edi + 0xb1], al
jne 0x486c5d
push dword [esi]
push dword [esp + 0x1c]
push edi
call fcn.00490ae0
add esp, 0xc
test eax, eax
je 0x486c5d
mov esi, dword [esp + 0x18]
push esi
push str.there_is_already_a_table_named__s
push ebx
call fcn.00489e60
add esp, 0xc
mov dword [esp + 0x18], esi
mov ebx, edi
jmp 0x486aee
push dword [esi]
push dword [esp + 0x1c]
push edi
call fcn.00490a10
add esp, 0xc
test eax, eax
je 0x486cb9
cmp dword [esp + 0x9c], ebp
jne 0x486c97
mov esi, dword [esp + 0x18]
push esi
push str.index__s_already_exists
push ebx
call fcn.00489e60
add esp, 0xc
mov dword [esp + 0x18], esi
mov ebx, edi
jmp 0x486aee
push dword [esp + 0x1c]
push ebx
call fcn.004843e0
push ebx
call fcn.00492b70
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x18], eax
mov ebx, edi
jmp 0x486aee
mov edi, dword [esp + 0x18]
mov dword [esp + 0x18], edi
jmp 0x486d36
push eax
call fcn.00488e10
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x18], eax
jmp 0x486aee
push 0
call fcn.00488e10
add esp, 4
mov dword [esp + 0x18], ebp
jmp 0x486aea
mov eax, dword [esi + 8]
mov ecx, 1
test eax, eax
je 0x486d00
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x486cf8
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push str.sqlite_autoindex__s__d
push ebx
call fcn.0049b7d0
mov edi, eax
add esp, 0x10
mov dword [esp + 0x18], edi
test edi, edi
je 0x486aee
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + 0x24]
cmp byte [ebx + 0xdc], 0
je 0x486d36
inc byte [edi + 7]
cmp byte [ebx + 0xdc], 2
jae 0x486d95
mov esi, dword [esi]
mov ecx, str.sqlite_temp_master
cmp dword [esp + 0x1c], 1
mov eax, str.sqlite_master
push esi
push 0
cmove eax, ecx
push eax
push 0x12
push ebx
call fcn.0047da60
add esp, 0x14
test eax, eax
jne 0x486aea
cmp dword [esp + 0x1c], 1
push esi
mov esi, dword [esp + 0x18]
sete al
push dword [esi]
lea eax, [eax*2 + 1]
push edi
push eax
push ebx
call fcn.0047da60
add esp, 0x14
test eax, eax
jne 0x486aea
jmp 0x486d99
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x88]
test edi, edi
jne 0x486e68
movsx ecx, word [esi + 0x22]
mov eax, dword [esi + 4]
add ecx, ecx
or word [eax + ecx*8 - 2], 8
mov ebx, dword [eax + ecx*8 - 0x10]
test ebx, ebx
jne 0x486dc3
xor esi, esi
jmp 0x486dd7
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x486dc8
sub esi, ecx
and esi, 0x3fffffff
lea eax, [esi + 0x35]
push 0
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.00487b10
mov edi, eax
add esp, 0xc
test edi, edi
je 0x486e2a
push 0x34
push 0
push edi
call fcn.004e7970
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 0x486e1f
push esi
push ebx
push eax
call fcn.004e73f0
mov eax, dword [edi + 8]
add esp, 0xc
mov byte [eax + esi], 0
mov dword [edi + 0x18], 1
mov eax, dword [esp + 0x78]
push edi
push dword [eax]
call fcn.0048ecb0
mov edi, eax
add esp, 8
mov dword [esp + 0x20], edi
test edi, edi
je 0x486aea
mov ecx, dword [esp + 0x98]
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
mov ebx, dword [esp + 0x78]
jmp 0x486e90
mov ecx, dword [ebx]
mov eax, dword [edi]
cmp eax, dword [ecx + 0x80]
jle 0x486e87
push str.index
push str.too_many_columns_in__s
push ebx
call fcn.00489e60
add esp, 0xc
cmp dword [ebx + 0x24], ebp
jne 0x486aea
mov esi, dword [edi]
test esi, esi
jle 0x486ecf
lea edx, [edi + 8]
nop dword [eax]
mov ecx, dword [edx]
cmp byte [ecx], 0x71
jne 0x486ec3
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x486ec0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x486eb1
sub ecx, edi
and ecx, 0x3fffffff
inc ebp
add ebp, ecx
add edx, 0x14
sub esi, 1
jne 0x486ea0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x486ed6
mov eax, dword [esp + 0x28]
sub esi, ecx
and esi, 0x3fffffff
test eax, eax
je 0x486ef3
movzx ecx, word [eax + 0x32]
jmp 0x486ef8
mov ecx, 1
lea eax, [esp + 0x30]
push eax
lea eax, [ebp + 1]
add eax, esi
push eax
mov ax, word [edi]
mov edi, dword [esp + 0x18]
add ax, cx
movzx eax, ax
push eax
push edi
call fcn.0047b310
add esp, 0x10
mov ebp, eax
cmp byte [edi + 0x57], 0
jne 0x487449
mov ecx, dword [esp + 0x30]
mov dword [ebp], ecx
lea eax, [ecx + 1]
lea ecx, [esi + 1]
add eax, esi
push ecx
push dword [esp + 0x1c]
mov dword [esp + 0x38], eax
push dword [ebp]
call fcn.004e73f0
mov eax, dword [esp + 0x98]
add esp, 0xc
mov edx, dword [esp + 0x14]
mov byte [ebp + 0x36], al
neg eax
mov esi, dword [esp + 0x94]
sbb ecx, ecx
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x38]
and ecx, 8
and eax, 0xfffffff7
or ecx, eax
movzx eax, byte [esp + 0xa0]
and eax, 3
and ecx, 0xfffffffc
or ecx, eax
mov dword [ebp + 0x38], ecx
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + eax + 0xc]
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x20]
movzx eax, word [eax]
mov word [ebp + 0x32], ax
mov ecx, eax
test esi, esi
je 0x486fc7
push 0
push esi
push 2
push edx
push ebx
call fcn.004a5ad0
movzx ecx, word [ebp + 0x32]
add esp, 0x14
mov edx, dword [esp + 0x14]
mov dword [ebp + 0x24], esi
mov dword [esp + 0x94], 0
cmp byte [ebx + 0xdc], 2
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x88], al
mov eax, dword [esp + 0x20]
lea edi, [eax + 8]
mov dword [esp + 0x34], edi
jb 0x486ff7
mov dword [ebp + 0x28], eax
mov dword [esp + 0x20], 0
xor esi, esi
xor eax, eax
mov dword [esp + 0x24], esi
cmp ax, cx
jae 0x487228
mov eax, dword [edi]
mov cl, byte [eax]
cmp cl, 0x75
je 0x48701e
cmp cl, 0x71
jne 0x487021
mov eax, dword [eax + 0xc]
cmp byte [eax], 0x75
jne 0x487021
mov byte [eax], 0x3b
push 0
push dword [edi]
push 0x20
push edx
push ebx
call fcn.004a5ad0
add esp, 0x14
cmp dword [ebx + 0x24], 0
jne 0x48721f
mov eax, dword [edi]
test eax, eax
je 0x487051
test dword [eax + 4], 0x2000
je 0x487051
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x487041
cmp byte [eax], 0xa7
je 0x48709d
mov edx, dword [esp + 0x14]
cmp edx, dword [ebx + 0xf8]
je 0x487211
cmp dword [ebp + 0x28], 0
jne 0x48707b
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x28], eax
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 4]
mov ecx, 0xfffffffe
mov ebx, ecx
mov word [eax + esi*2], bx
mov eax, dword [ebp + 0x38]
mov ebx, dword [esp + 0x78]
and eax, 0xfffffff7
or eax, 0x1000
mov dword [ebp + 0x38], eax
jmp 0x4870e5
movsx ecx, word [eax + 0x20]
test ecx, ecx
jns 0x4870af
mov edx, dword [esp + 0x14]
movsx ecx, word [edx + 0x20]
jmp 0x4870de
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 4]
mov eax, ecx
add eax, eax
test byte [edx + eax*8 + 4], 0xf
jne 0x4870cc
mov edx, dword [esp + 0x14]
and dword [ebp + 0x38], 0xfffffff7
mov edx, dword [edx + 4]
test byte [edx + eax*8 + 0xe], 0x20
mov edx, dword [esp + 0x14]
je 0x4870de
or dword [ebp + 0x38], 0x1800
mov eax, dword [ebp + 4]
mov word [eax + esi*2], cx
mov eax, dword [edi]
cmp byte [eax], 0x71
jne 0x48712c
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4870f7
xor esi, esi
jmp 0x48710f
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x487100
sub esi, edx
and esi, 0x3fffffff
mov edi, dword [esp + 0x30]
inc esi
push esi
push ecx
push edi
call fcn.004e73f0
lea eax, [esi + edi]
add esp, 0xc
mov esi, dword [esp + 0x24]
mov dword [esp + 0x30], eax
jmp 0x487169
test ecx, ecx
js 0x48716d
shl ecx, 4
add ecx, dword [edx + 4]
movzx edx, word [ecx + 0xe]
test edx, 0x200
je 0x48716d
mov eax, dword [ecx]
cmp byte [eax], 0
je 0x487156
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x487150
test dl, 4
je 0x487166
nop dword [eax + eax]
inc eax
cmp byte [eax], 0
jne 0x487160
lea edi, [eax + 1]
test edi, edi
jne 0x487172
mov edi, 0x512fbc
mov eax, dword [esp + 0x10]
cmp byte [eax + 0xb1], 0
jne 0x4871d3
mov ecx, dword [ebx]
mov al, byte [ecx + 0x54]
mov bl, byte [ecx + 0xb1]
mov byte [esp + 0x3c], al
mov esi, dword [esp + 0x3c]
movzx eax, bl
push eax
push edi
push esi
push ecx
call fcn.0048fcf0
add esp, 0x10
test bl, bl
jne 0x4871c1
test eax, eax
je 0x4871af
cmp dword [eax + 0xc], 0
jne 0x4871cb
mov ebx, dword [esp + 0x78]
push edi
push eax
push esi
push ebx
call fcn.00496510
add esp, 0x10
jmp 0x4871c5
mov ebx, dword [esp + 0x78]
test eax, eax
je 0x48721f
jmp 0x4871cf
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + 0x24]
mov eax, dword [ebp + 0x20]
mov dword [eax + esi*4], edi
xor eax, eax
mov edi, dword [esp + 0x34]
cmp byte [esp + 0x88], 4
movzx ecx, byte [edi + 8]
cmovb ecx, eax
mov eax, dword [ebp + 0x1c]
add edi, 0x14
mov dword [esp + 0x34], edi
mov byte [esi + eax], cl
inc esi
movzx eax, word [ebp + 0x32]
mov dword [esp + 0x24], esi
cmp esi, eax
jge 0x487228
mov edx, dword [esp + 0x14]
jmp 0x487008
push str.expressions_prohibited_in_PRIMARY_KEY_and_UNIQUE_constraints
push ebx
call fcn.00489e60
add esp, 8
mov ebx, dword [esp + 0x10]
jmp 0x48744b
mov edx, dword [esp + 0x28]
test edx, edx
je 0x487299
xor eax, eax
xor esi, esi
cmp ax, word [edx + 0x32]
jae 0x4872ad
mov ebx, dword [esp + 0x24]
nop
mov eax, dword [edx + 4]
push esi
push edx
movzx edi, word [eax + esi*2]
movzx eax, word [ebp + 0x32]
push eax
push ebp
call fcn.004616b0
mov edx, dword [esp + 0x38]
add esp, 0x10
test eax, eax
je 0x48726a
mov eax, 0xffff
add word [ebp + 0x34], ax
jmp 0x48728a
mov eax, dword [ebp + 4]
mov word [eax + ebx*2], di
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp + 0x20]
mov eax, dword [eax + esi*4]
mov dword [ecx + ebx*4], eax
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebp + 0x1c]
mov al, byte [esi + eax]
mov byte [ebx + ecx], al
inc ebx
movzx eax, word [edx + 0x32]
inc esi
cmp esi, eax
jl 0x487240
mov ebx, dword [esp + 0x78]
jmp 0x4872ad
mov eax, dword [ebp + 4]
or ecx, 0xffffffff
mov word [eax + esi*2], cx
mov eax, dword [ebp + 0x20]
mov dword [eax + esi*4], 0x512fbc
push ebp
call fcn.00487fe0
add esp, 4
cmp dword [ebx + 0xf8], 0
jne 0x4872c8
push ebp
call fcn.00454c90
add esp, 4
push ebp
call fcn.004737c0
mov ecx, dword [esp + 0x18]
add esp, 4
cmp dword [esp + 0x84], 0
je 0x48732e
movzx esi, word [ebp + 0x34]
movsx eax, word [ecx + 0x22]
cmp esi, eax
jl 0x48732e
or dword [ebp + 0x38], 0x20
xor edx, edx
movsx edi, word [ecx + 0x22]
test edi, edi
jle 0x48732e
movsx ebx, word [ecx + 0x20]
nop dword [eax]
cmp edx, ebx
je 0x4874b8
xor ecx, ecx
test esi, esi
je 0x487322
mov eax, dword [ebp + 4]
cmp dx, word [eax]
je 0x4874ac
inc ecx
add eax, 2
cmp ecx, esi
jl 0x487311
and dword [ebp + 0x38], 0xffffffdf
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x78]
cmp ecx, dword [ebx + 0xf8]
jne 0x4873e8
mov edx, dword [ecx + 8]
mov dword [esp + 0x88], edx
test edx, edx
je 0x4873e8
movzx eax, word [ebp + 0x32]
movzx ecx, word [edx + 0x32]
cmp cx, ax
jne 0x4873ce
xor eax, eax
xor edi, edi
mov ebx, ecx
cmp ax, cx
jae 0x4873bf
mov eax, dword [ebp + 4]
mov esi, dword [edx + 4]
sub eax, esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x3c]
mov ax, word [esi]
movzx ebx, cx
cmp ax, word [edx + esi]
mov edx, dword [esp + 0x88]
jne 0x4873bf
mov eax, dword [ebp + 0x20]
movzx ebx, cx
push dword [eax + edi*4]
mov eax, dword [edx + 0x20]
push dword [eax + edi*4]
call fcn.004abf20
mov edx, dword [esp + 0x90]
add esp, 8
test eax, eax
jne 0x4873bf
movzx ecx, word [edx + 0x32]
inc edi
add esi, 2
mov ebx, ecx
cmp edi, ecx
mov ecx, dword [esp + 0x34]
jl 0x487374
movzx eax, bx
cmp edi, eax
je 0x4874c6
movzx eax, word [ebp + 0x32]
mov edx, dword [edx + 0x14]
mov dword [esp + 0x88], edx
test edx, edx
jne 0x487350
mov ebx, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
cmp byte [ebx + 0xdc], 2
mov edi, dword [esp + 0x10]
jae 0x4876f0
cmp byte [edi + 0xb1], 0
je 0x487570
cmp dword [esp + 0x84], 0
je 0x487540
mov eax, dword [edi + 0xac]
push ebp
mov dword [ebp + 0x2c], eax
call fcn.00497cf0
add esp, 4
test eax, eax
je 0x487540
push str.invalid_rootpage
push ebx
call fcn.00489e60
push 0x1e811
call fcn.00486060
add esp, 0xc
mov dword [ebx + 0xc], eax
mov ebx, edi
test ebp, ebp
je 0x486aee
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x487464
push eax
push ebx
call fcn.0048dd70
add esp, 8
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x487475
push eax
push ebx
call fcn.00458120
add esp, 8
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x487486
push eax
push ebx
call fcn.00487a00
add esp, 8
test byte [ebp + 0x38], 0x10
je 0x48749d
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x48749d
push eax
push ebx
call fcn.00487a00
add esp, 8
push ebp
push ebx
call fcn.00487a00
add esp, 8
jmp 0x486aee
movzx eax, cx
test ax, ax
js 0x487322
inc edx
cmp edx, edi
jl 0x487300
jmp 0x487326
mov al, byte [edx + 0x36]
mov cl, byte [ebp + 0x36]
cmp al, cl
je 0x487501
cmp al, 0xb
je 0x4874fb
cmp cl, 0xb
je 0x487501
mov eax, dword [esp + 0x78]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push eax
call fcn.00489e60
mov edx, dword [esp + 0x94]
add esp, 0xc
mov al, byte [edx + 0x36]
cmp al, 0xb
jne 0x487501
mov al, byte [ebp + 0x36]
mov byte [edx + 0x36], al
cmp byte [esp + 0xa0], 2
jne 0x487517
mov eax, dword [edx + 0x38]
and eax, 0xfffffffe
or eax, 2
mov dword [edx + 0x38], eax
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x10]
cmp byte [ecx + 0xdc], 2
jb 0x48744b
mov eax, dword [ecx + 0xfc]
mov dword [ebp + 0x14], eax
mov dword [ecx + 0xfc], ebp
jmp 0x486aee
mov eax, dword [ebp + 0x18]
push ebp
push dword [ebp]
add eax, 0x18
push eax
call fcn.00497520
add esp, 0xc
test eax, eax
je 0x487567
mov ebx, edi
push ebx
call fcn.0049c250
add esp, 4
jmp 0x48744b
or dword [edi + 0x18], 1
jmp 0x4876f0
test byte [ecx + 0x1c], 0x80
je 0x487585
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4876f7
mov edi, dword [esp + 0x78]
inc dword [ebx + 0x2c]
mov ebx, dword [ebx + 0x2c]
mov esi, dword [edi + 8]
test esi, esi
jne 0x4875bd
cmp dword [edi + 0x80], esi
jne 0x4875aa
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x4875aa
mov byte [edi + 0x17], 1
push edi
call fcn.004b1580
mov esi, eax
add esp, 4
test esi, esi
je 0x48721f
push dword [esp + 0x1c]
push 1
push edi
call fcn.0047e600
push 0xbb
push esi
call fcn.004b0ce0
push 2
push ebx
push dword [esp + 0x38]
mov dword [ebp + 0x2c], eax
push 0x93
push esi
call fcn.004b0df0
add esp, 0x28
cmp dword [esp + 0x90], 0
je 0x487643
mov edx, dword [edi + 0xd4]
add edx, dword [edi + 0xd0]
mov eax, dword [esp + 0x2c]
mov ecx, edx
mov eax, dword [eax]
sub ecx, eax
cmp byte [edx - 1], 0x3b
push eax
lea eax, [ecx - 1]
cmovne eax, ecx
cmp dword [esp + 0x90], 0
push eax
mov ecx, str._UNIQUE
mov eax, 0x52a5cb
cmovne eax, ecx
push eax
push str.CREATE_s_INDEX__.s
push dword [esp + 0x20]
call fcn.0049b7d0
add esp, 0x14
mov edi, eax
jmp 0x487645
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
push edi
push ebx
push dword [eax]
mov eax, dword [esp + 0x1c]
push dword [ebp]
mov eax, dword [eax + 0x10]
push dword [ecx + eax]
mov eax, dword [esp + 0x8c]
push str.INSERT_INTO__Q.sqlite_master_VALUES_index__Q__Q__d__Q__
push eax
call fcn.0049c010
add esp, 0x1c
test edi, edi
je 0x487687
push edi
mov edi, dword [esp + 0x14]
push edi
call fcn.00487a00
add esp, 8
jmp 0x48768b
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x84], 0
je 0x4876e0
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
push ebx
call fcn.004a4cc0
push dword [esp + 0x28]
push ebx
call fcn.00482ac0
add esp, 0x14
push 0
push dword [ebp]
push str.name_q_AND_typeindex
push edi
call fcn.0049b7d0
add esp, 0xc
push eax
push dword [esp + 0x24]
push esi
call fcn.004b0ff0
push 1
push 0
push 0xa6
push esi
call fcn.004b0d90
add esp, 0x20
jmp 0x4876e4
mov ebx, dword [esp + 0x78]
push dword [ebp + 0x2c]
push esi
call fcn.004bb180
add esp, 8
mov eax, dword [esp + 0x84]
cmp byte [edi + 0xb1], 0
jne 0x48771c
test eax, eax
je 0x48771c
cmp byte [ebx + 0xdc], 2
jb 0x48721f
mov dword [ebx + 0xfc], ebp
jmp 0x486aea
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
mov dword [ebp + 0x14], eax
mov dword [ebx + 8], ebp
jmp 0x486aea
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x486b13
nop dword [eax]
cmp byte [eax + 0x36], 5
je 0x486b13
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 0x487740
jmp 0x486b13
mov edi, dword [esp + 0x88]
jmp 0x486b17
cmp esi, dword [ebx + 0x160]
jb 0x48778c
mov eax, dword [ebx + 0x150]
pop edi
mov dword [esi], eax
mov dword [ebx + 0x150], esi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
cmp dword [ebx + 0x210], 0
je 0x4877a7
push esi
push ebx
call fcn.00469e10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
cmp dword [0x5320f0], 0
je 0x4877fb
mov eax, dword [0x536de8]
test eax, eax
je 0x4877c3
push eax
call dword [0x532140]
add esp, 4
push esi
call dword [0x53211c]
sub dword [0x536d88], eax
dec dword [0x536dac]
push esi
call dword [0x532114]
mov eax, dword [0x536de8]
add esp, 8
test eax, eax
je 0x487805
push eax
call dword [0x532148]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
push esi
call dword [0x532114]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret