Function at 0x586aa5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
push edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
cmp byte [eax + 0x1e], cl
jne 0x5871dc
mov eax, dword [ebp + 8]
cmp byte [eax + 0x214], cl
jne 0x5871dc
mov edi, eax
call fcn.00583949
test eax, eax
jne 0x5871dc
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
test edi, edi
je 0x586b96
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.0055e192
mov dword [ebp - 8], eax
test eax, eax
jl 0x5871db
mov esi, dword [ebp - 4]
cmp byte [esi + 0x7c], 0
jne 0x586b42
mov eax, dword [ebp + 8]
mov ecx, edi
call fcn.00584507
cmp dword [ebx + 4], 0
jne 0x586b42
test eax, eax
je 0x586b42
mov ecx, dword [esi + 8]
mov eax, dword [eax + 0x44]
cmp eax, dword [ecx + 0x1c]
jne 0x586b42
mov dword [ebp - 8], 1
push dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp + 8]
push str.index
lea eax, [ebp - 0x48]
call fcn.00556b53
pop ecx
pop ecx
test eax, eax
je 0x586b6a
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.00564dcb
pop ecx
pop ecx
push dword [edi + 8]
push dword [edi + 0xc]
push 0
call fcn.00583e5e
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x5871db
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e], 0
jne 0x5871db
jmp 0x586bb7
mov eax, dword [eax + 0x200]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x5871db
mov ecx, dword [ebp - 4]
mov ebx, eax
mov esi, dword [ebx + 0x44]
call fcn.005577f7
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov edi, dword [ecx + 8]
mov esi, dword [ebx]
shl eax, 4
push 7
add edi, eax
push str.sqlite_
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], edi
call sym.hao123Juzi.exe_sqlite3_strnicmp
add esp, 0xc
test eax, eax
jne 0x586c04
push 9
push str.altertab_
add esi, 7
push esi
call fcn.00596eef
add esp, 0xc
test eax, eax
je 0x586c04
push dword [ebx]
push str.table__s_may_not_be_indexed
jmp 0x586c9c
cmp dword [ebx + 0x1c], 0
je 0x586c11
push str.views_may_not_be_indexed
jmp 0x586c1c
test byte [ebx + 0x22], 0x10
je 0x586c26
push str.virtual_tables_may_not_be_indexed
mov edi, dword [ebp + 8]
call fcn.0055a104
jmp 0x586ca5
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x586cbb
mov ecx, dword [ebp - 4]
call fcn.0055e148
mov dword [ebp - 0x10], eax
test eax, eax
je 0x5871db
push eax
mov eax, dword [ebp + 8]
call fcn.0055e1de
pop ecx
test eax, eax
jne 0x5871db
mov esi, dword [ebp - 4]
cmp byte [esi + 0x7c], al
jne 0x586c79
push eax
push dword [ebp - 0x10]
mov edi, esi
call fcn.00556c26
pop ecx
pop ecx
test eax, eax
je 0x586c79
push dword [ebp - 0x10]
push str.there_is_already_a_table_named__s
jmp 0x586c9c
mov edi, dword [ebp - 0x20]
push dword [edi]
mov edx, esi
push dword [ebp - 0x10]
call fcn.00556c9d
pop ecx
pop ecx
test eax, eax
je 0x586ce9
cmp dword [ebp + 0x28], 0
jne 0x586cab
push dword [ebp - 0x10]
push str.index__s_already_exists
mov edi, dword [ebp + 8]
call fcn.0055a104
pop ecx
pop ecx
jmp 0x5871db
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.005769ba
jmp 0x5871db
mov eax, dword [ebx + 0x10]
xor ecx, ecx
inc ecx
jmp 0x586cc7
mov eax, dword [eax + 0x20]
inc ecx
test eax, eax
jne 0x586cc3
mov esi, dword [ebp - 4]
push ecx
push dword [ebx]
push str.sqlite_autoindex__s__d
call fcn.00559ec3
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x5871db
cmp dword [ebp - 8], 1
mov esi, dword [edi]
mov eax, str.sqlite_temp_master
je 0x586cfb
mov eax, str.sqlite_master
mov edi, dword [ebp + 8]
push esi
push 0
push eax
push 0x12
mov eax, edi
call fcn.0055dec8
add esp, 0x10
test eax, eax
jne 0x5871db
inc eax
cmp dword [ebp - 8], eax
jne 0x586d1f
push 3
pop eax
push esi
push dword [ebx]
push dword [ebp - 0x10]
push eax
mov eax, edi
call fcn.0055dec8
add esp, 0x10
test eax, eax
jne 0x5871db
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x586d85
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
imul eax, eax, 0x18
mov ecx, dword [eax + ecx - 0x18]
mov dword [ebp - 0x38], ecx
call fcn.00551700
mov dword [ebp - 0x34], eax
push esi
xor ecx, ecx
mov eax, edi
call fcn.00561291
mov esi, eax
pop ecx
mov dword [ebp + 0x14], esi
test esi, esi
je 0x5871db
push 0
push edi
lea ecx, [ebp - 0x38]
call fcn.0055d5a4
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
mov cl, byte [ebp + 0x24]
mov byte [eax + 0xc], cl
mov edi, dword [esi]
test edi, edi
jle 0x586db4
mov esi, dword [esi + 0xc]
mov edx, edi
mov eax, dword [esi]
test eax, eax
je 0x586dae
mov eax, dword [eax + 0x14]
test eax, eax
je 0x586dae
mov ecx, dword [eax]
call fcn.00551700
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x1c], eax
add esi, 0x14
dec edx
jne 0x586d90
mov ecx, dword [ebp - 0x10]
call fcn.00551700
mov ecx, dword [ebp - 0x1c]
mov esi, eax
mov eax, edi
imul eax, eax, 0xd
add eax, esi
lea eax, [eax + ecx + 0x39]
push eax
mov eax, dword [ebp - 4]
call fcn.005601cb
mov ebx, eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e], 0
pop ecx
jne 0x5871c0
lea eax, [ebx + 0x34]
mov dword [ebx + 0x2c], eax
lea eax, [eax + edi*4]
mov dword [ebx + 8], eax
lea eax, [eax + edi*4]
mov dword [ebx + 0xc], eax
lea eax, [eax + edi*4 + 4]
mov dword [ebx + 0x28], eax
add eax, edi
lea ecx, [eax + esi + 1]
inc esi
push esi
push dword [ebp - 0x10]
mov dword [ebx], eax
push eax
mov dword [ebp - 0x24], ecx
call fcn.005965b0
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 0x2c]
mov dword [ebx + 0x10], eax
mov eax, dword [esi]
mov dword [ebx + 4], eax
mov al, byte [ebp + 0x18]
mov byte [ebx + 0x18], al
xor ecx, ecx
add esp, 0xc
cmp dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
sete al
mov byte [ebx + 0x19], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [edx + eax + 0xc]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x4c], 4
mov edi, dword [esi + 0xc]
sbb eax, eax
neg eax
dec eax
cmp dword [esi], ecx
mov dword [ebp - 0x34], eax
jle 0x586f55
mov eax, dword [edi + 4]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
jle 0x586ea2
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.00551775
test eax, eax
je 0x586ea2
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
add dword [ebp - 0x20], 0x18
cmp ecx, dword [eax + 8]
jl 0x586e7f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jge 0x586f76
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + edx*4], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x586eef
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x586eef
mov ecx, dword [ecx]
call fcn.00551700
inc eax
push eax
push ecx
push dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
call fcn.005965b0
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x14], eax
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
jmp 0x586f0e
mov ecx, dword [ebp - 0xc]
imul eax, eax, 0x18
mov ecx, dword [ecx + 0xc]
mov eax, dword [eax + ecx + 0x10]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x586f0e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x7c], 0
jne 0x586f2b
push dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.00568f52
pop ecx
test eax, eax
je 0x5871c0
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx*4], ecx
mov cl, byte [edi + 0xc]
and cl, byte [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x28]
mov byte [eax + edx], cl
inc eax
add edi, 0x14
cmp eax, dword [esi]
mov dword [ebp - 0x1c], eax
jl 0x586e66
mov eax, ebx
call fcn.00556e8a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x200]
jne 0x586ffa
mov esi, dword [eax + 0x10]
jmp 0x586ff6
push dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
push dword [eax]
mov edi, dword [ebp + 8]
push str.table__s_has_no_column_named__s
call fcn.0055a104
add esp, 0xc
mov byte [edi + 0x12], 1
jmp 0x5871c0
mov eax, dword [esi + 4]
cmp eax, dword [ebx + 4]
jne 0x586ff3
and dword [ebp - 0x14], 0
test eax, eax
jle 0x586feb
mov edi, dword [ebx + 8]
mov ecx, dword [esi + 8]
sub ecx, edi
mov dword [ebp - 0x34], ecx
jmp 0x586fb7
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
shl edx, 2
lea eax, [edx + edi]
mov ecx, dword [eax + ecx]
cmp ecx, dword [eax]
jne 0x586feb
mov eax, dword [esi + 0x2c]
mov ecx, dword [edx + eax]
mov eax, dword [ebx + 0x2c]
mov edx, dword [edx + eax]
cmp ecx, edx
je 0x586fe0
call fcn.00551775
test eax, eax
jne 0x586feb
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
jl 0x586fb4
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
je 0x58702c
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x586f97
mov esi, dword [ebp - 4]
cmp byte [esi + 0x7c], 0
je 0x587087
mov ecx, dword [ebx]
push ebx
call fcn.00551700
push eax
mov eax, dword [ebx + 0x24]
add eax, 0x18
mov edi, ecx
call fcn.0055a24e
pop ecx
pop ecx
test eax, eax
je 0x587069
mov byte [esi + 0x1e], 1
jmp 0x5871c0
mov al, byte [esi + 0x18]
mov cl, byte [ebx + 0x18]
cmp al, cl
je 0x5871c0
cmp al, 0x63
je 0x587054
cmp cl, 0x63
je 0x587054
mov edi, dword [ebp + 8]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.0055a104
pop ecx
pop ecx
cmp byte [esi + 0x18], 0x63
jne 0x5871c0
mov al, byte [ebx + 0x18]
mov byte [esi + 0x18], al
jmp 0x5871c0
or dword [esi + 0xc], 0x200
cmp dword [ebp + 0x10], 0
je 0x58718d
mov eax, esi
mov eax, dword [eax + 0x78]
mov dword [ebx + 0x14], eax
jmp 0x58718d
mov edi, dword [ebp + 8]
inc dword [edi + 0x48]
mov esi, dword [edi + 0x48]
mov dword [ebp - 0x28], esi
call fcn.0056287c
mov dword [ebp - 0x24], eax
test eax, eax
je 0x5871c0
mov ecx, dword [ebp - 8]
push 1
mov eax, edi
call fcn.00576a78
mov ecx, dword [ebp - 0x24]
push esi
push dword [ebp - 8]
push 0x61
pop eax
call fcn.0055c34c
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x5870fa
cmp dword [ebp + 0x18], 0
mov ecx, 0x5ddd69
je 0x5870d7
mov ecx, str._UNIQUE
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x20]
mov edx, dword [edx]
push dword [eax]
sub edx, dword [eax]
mov esi, dword [ebp - 4]
inc edx
push edx
push ecx
push str.CREATE_s_INDEX__.s
call fcn.00559ec3
add esp, 0x10
mov esi, eax
jmp 0x5870fc
xor esi, esi
cmp dword [ebp - 8], 1
mov eax, str.sqlite_temp_master
je 0x58710c
mov eax, str.sqlite_master
mov ecx, dword [ebp - 0xc]
push esi
push dword [ebp - 0x28]
push dword [ecx]
mov ecx, dword [ebp - 0x2c]
push dword [ebx]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push dword [ecx + eax]
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
call fcn.0055dfe7
push esi
push dword [ebp - 4]
call fcn.00551521
add esp, 0x24
cmp dword [ebp + 0x10], 0
je 0x58718d
push dword [ebp - 0x28]
mov esi, edi
push ebx
mov eax, esi
call fcn.0056d934
push dword [ebp - 8]
call fcn.0055e35e
mov esi, dword [ebp - 4]
add esp, 0xc
push 0xffffffffffffffff
push dword [ebx]
push str.name_q_AND_typeindex
call fcn.00559ec3
pop ecx
pop ecx
push eax
xor esi, esi
push esi
push esi
push dword [ebp - 8]
push dword [ebp - 0x24]
push 0x63
pop eax
call fcn.00560b2c
mov ecx, dword [ebp - 0x24]
push esi
push 0x7a
pop eax
call fcn.0055c33b
add esp, 0x1c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x7c], 0
jne 0x58719c
cmp dword [ebp + 0x10], 0
jne 0x5871c0
cmp dword [ebp + 0x18], 5
mov ecx, dword [ebp - 0xc]
jne 0x5871b2
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x5871b2
cmp byte [eax + 0x18], 5
jne 0x587212
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x20], eax
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x30], ebx
xor ebx, ebx
test ebx, ebx
je 0x5871db
push dword [ebx + 0x1c]
push dword [ebp - 4]
call fcn.00551521
push ebx
push dword [ebp - 4]
call fcn.00551521
add esp, 0x10
pop esi
push dword [ebp - 4]
mov edi, dword [ebp + 0x14]
call fcn.00556729
push dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
call fcn.00556f8d
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.00551521
mov eax, dword [ebp - 0x30]
add esp, 0x10
pop edi
pop ebx
leave
ret
mov ecx, dword [eax + 0x20]
cmp byte [ecx + 0x18], 5
je 0x587218
mov eax, ecx
cmp dword [eax + 0x20], 0
jne 0x587207
mov ecx, dword [eax + 0x20]
mov dword [ebx + 0x20], ecx
mov dword [eax + 0x20], ebx
jmp 0x5871bb