Function at 0x574e5a
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 0x575591
mov eax, dword [ebp + 8]
cmp byte [eax + 0x214], cl
jne 0x575591
mov edi, eax
call fcn.00571cfe
test eax, eax
jne 0x575591
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
test edi, edi
je 0x574f4b
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.0054c544
mov dword [ebp - 8], eax
test eax, eax
jl 0x575590
mov esi, dword [ebp - 4]
cmp byte [esi + 0x7c], 0
jne 0x574ef7
mov eax, dword [ebp + 8]
mov ecx, edi
call fcn.005728bc
cmp dword [ebx + 4], 0
jne 0x574ef7
test eax, eax
je 0x574ef7
mov ecx, dword [esi + 8]
mov eax, dword [eax + 0x44]
cmp eax, dword [ecx + 0x1c]
jne 0x574ef7
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.00544f06
pop ecx
pop ecx
test eax, eax
je 0x574f1f
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.0055317d
pop ecx
pop ecx
push dword [edi + 8]
push dword [edi + 0xc]
push 0
call fcn.00572213
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x575590
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e], 0
jne 0x575590
jmp 0x574f6c
mov eax, dword [eax + 0x200]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x575590
mov ecx, dword [ebp - 4]
mov ebx, eax
mov esi, dword [ebx + 0x44]
call fcn.00545baa
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 fcn.0053fb63
add esp, 0xc
test eax, eax
jne 0x574fb9
push 9
push str.altertab_
add esi, 7
push esi
call fcn.0058517f
add esp, 0xc
test eax, eax
je 0x574fb9
push dword [ebx]
push str.table__s_may_not_be_indexed
jmp 0x575051
cmp dword [ebx + 0x1c], 0
je 0x574fc6
push str.views_may_not_be_indexed
jmp 0x574fd1
test byte [ebx + 0x22], 0x10
je 0x574fdb
push str.virtual_tables_may_not_be_indexed
mov edi, dword [ebp + 8]
call fcn.005484b6
jmp 0x57505a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x575070
mov ecx, dword [ebp - 4]
call fcn.0054c4fa
mov dword [ebp - 0x10], eax
test eax, eax
je 0x575590
push eax
mov eax, dword [ebp + 8]
call fcn.0054c590
pop ecx
test eax, eax
jne 0x575590
mov esi, dword [ebp - 4]
cmp byte [esi + 0x7c], al
jne 0x57502e
push eax
push dword [ebp - 0x10]
mov edi, esi
call fcn.00544fd9
pop ecx
pop ecx
test eax, eax
je 0x57502e
push dword [ebp - 0x10]
push str.there_is_already_a_table_named__s
jmp 0x575051
mov edi, dword [ebp - 0x20]
push dword [edi]
mov edx, esi
push dword [ebp - 0x10]
call fcn.00545050
pop ecx
pop ecx
test eax, eax
je 0x57509e
cmp dword [ebp + 0x28], 0
jne 0x575060
push dword [ebp - 0x10]
push str.index__s_already_exists
mov edi, dword [ebp + 8]
call fcn.005484b6
pop ecx
pop ecx
jmp 0x575590
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.00564d6f
jmp 0x575590
mov eax, dword [ebx + 0x10]
xor ecx, ecx
inc ecx
jmp 0x57507c
mov eax, dword [eax + 0x20]
inc ecx
test eax, eax
jne 0x575078
mov esi, dword [ebp - 4]
push ecx
push dword [ebx]
push str.sqlite_autoindex__s__d
call fcn.00548275
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x575590
cmp dword [ebp - 8], 1
mov esi, dword [edi]
mov eax, str.sqlite_temp_master
je 0x5750b0
mov eax, str.sqlite_master
mov edi, dword [ebp + 8]
push esi
push 0
push eax
push 0x12
mov eax, edi
call fcn.0054c27a
add esp, 0x10
test eax, eax
jne 0x575590
inc eax
cmp dword [ebp - 8], eax
jne 0x5750d4
push 3
pop eax
push esi
push dword [ebx]
push dword [ebp - 0x10]
push eax
mov eax, edi
call fcn.0054c27a
add esp, 0x10
test eax, eax
jne 0x575590
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x57513a
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.0053fab3
mov dword [ebp - 0x34], eax
push esi
xor ecx, ecx
mov eax, edi
call fcn.0054f643
mov esi, eax
pop ecx
mov dword [ebp + 0x14], esi
test esi, esi
je 0x575590
push 0
push edi
lea ecx, [ebp - 0x38]
call fcn.0054b956
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 0x575169
mov esi, dword [esi + 0xc]
mov edx, edi
mov eax, dword [esi]
test eax, eax
je 0x575163
mov eax, dword [eax + 0x14]
test eax, eax
je 0x575163
mov ecx, dword [eax]
call fcn.0053fab3
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x1c], eax
add esi, 0x14
dec edx
jne 0x575145
mov ecx, dword [ebp - 0x10]
call fcn.0053fab3
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.0054e57d
mov ebx, eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e], 0
pop ecx
jne 0x575575
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.00584840
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 0x57530a
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 0x575257
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.0053fb28
test eax, eax
je 0x575257
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 0x575234
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jge 0x57532b
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + edx*4], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x5752a4
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x5752a4
mov ecx, dword [ecx]
call fcn.0053fab3
inc eax
push eax
push ecx
push dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
call fcn.00584840
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x14], eax
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
jmp 0x5752c3
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 0x5752c3
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 0x5752e0
push dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.00557304
pop ecx
test eax, eax
je 0x575575
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 0x57521b
mov eax, ebx
call fcn.0054523d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x200]
jne 0x5753af
mov esi, dword [eax + 0x10]
jmp 0x5753ab
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.005484b6
add esp, 0xc
mov byte [edi + 0x12], 1
jmp 0x575575
mov eax, dword [esi + 4]
cmp eax, dword [ebx + 4]
jne 0x5753a8
and dword [ebp - 0x14], 0
test eax, eax
jle 0x5753a0
mov edi, dword [ebx + 8]
mov ecx, dword [esi + 8]
sub ecx, edi
mov dword [ebp - 0x34], ecx
jmp 0x57536c
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 0x5753a0
mov eax, dword [esi + 0x2c]
mov ecx, dword [edx + eax]
mov eax, dword [ebx + 0x2c]
mov edx, dword [edx + eax]
cmp ecx, edx
je 0x575395
call fcn.0053fb28
test eax, eax
jne 0x5753a0
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
jl 0x575369
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
je 0x5753e1
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x57534c
mov esi, dword [ebp - 4]
cmp byte [esi + 0x7c], 0
je 0x57543c
mov ecx, dword [ebx]
push ebx
call fcn.0053fab3
push eax
mov eax, dword [ebx + 0x24]
add eax, 0x18
mov edi, ecx
call fcn.00548600
pop ecx
pop ecx
test eax, eax
je 0x57541e
mov byte [esi + 0x1e], 1
jmp 0x575575
mov al, byte [esi + 0x18]
mov cl, byte [ebx + 0x18]
cmp al, cl
je 0x575575
cmp al, 0x63
je 0x575409
cmp cl, 0x63
je 0x575409
mov edi, dword [ebp + 8]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.005484b6
pop ecx
pop ecx
cmp byte [esi + 0x18], 0x63
jne 0x575575
mov al, byte [ebx + 0x18]
mov byte [esi + 0x18], al
jmp 0x575575
or dword [esi + 0xc], 0x200
cmp dword [ebp + 0x10], 0
je 0x575542
mov eax, esi
mov eax, dword [eax + 0x78]
mov dword [ebx + 0x14], eax
jmp 0x575542
mov edi, dword [ebp + 8]
inc dword [edi + 0x48]
mov esi, dword [edi + 0x48]
mov dword [ebp - 0x28], esi
call fcn.00550c2e
mov dword [ebp - 0x24], eax
test eax, eax
je 0x575575
mov ecx, dword [ebp - 8]
push 1
mov eax, edi
call fcn.00564e2d
mov ecx, dword [ebp - 0x24]
push esi
push dword [ebp - 8]
push 0x61
pop eax
call fcn.0054a6fe
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x5754af
cmp dword [ebp + 0x18], 0
mov ecx, 0x5caab9
je 0x57548c
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.00548275
add esp, 0x10
mov esi, eax
jmp 0x5754b1
xor esi, esi
cmp dword [ebp - 8], 1
mov eax, str.sqlite_temp_master
je 0x5754c1
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.0054c399
push esi
push dword [ebp - 4]
call fcn.0053f8d4
add esp, 0x24
cmp dword [ebp + 0x10], 0
je 0x575542
push dword [ebp - 0x28]
mov esi, edi
push ebx
mov eax, esi
call fcn.0055bce6
push dword [ebp - 8]
call fcn.0054c710
mov esi, dword [ebp - 4]
add esp, 0xc
push 0xffffffffffffffff
push dword [ebx]
push str.name_q_AND_typeindex
call fcn.00548275
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.0054eede
mov ecx, dword [ebp - 0x24]
push esi
push 0x7a
pop eax
call fcn.0054a6ed
add esp, 0x1c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x7c], 0
jne 0x575551
cmp dword [ebp + 0x10], 0
jne 0x575575
cmp dword [ebp + 0x18], 5
mov ecx, dword [ebp - 0xc]
jne 0x575567
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x575567
cmp byte [eax + 0x18], 5
jne 0x5755c7
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 0x575590
push dword [ebx + 0x1c]
push dword [ebp - 4]
call fcn.0053f8d4
push ebx
push dword [ebp - 4]
call fcn.0053f8d4
add esp, 0x10
pop esi
push dword [ebp - 4]
mov edi, dword [ebp + 0x14]
call fcn.00544adc
push dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
call fcn.00545340
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0053f8d4
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 0x5755cd
mov eax, ecx
cmp dword [eax + 0x20], 0
jne 0x5755bc
mov ecx, dword [eax + 0x20]
mov dword [ebx + 0x20], ecx
mov dword [eax + 0x20], ebx
jmp 0x575570