Function at 0x4cda84
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 0x4ce1bb
mov eax, dword [ebp + 8]
cmp byte [eax + 0x214], cl
jne 0x4ce1bb
mov edi, eax
call fcn.004ca928
test eax, eax
jne 0x4ce1bb
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
test edi, edi
je 0x4cdb75
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.004a5171
mov dword [ebp - 8], eax
test eax, eax
jl 0x4ce1ba
mov esi, dword [ebp - 4]
cmp byte [esi + 0x7c], 0
jne 0x4cdb21
mov eax, dword [ebp + 8]
mov ecx, edi
call fcn.004cb4e6
cmp dword [ebx + 4], 0
jne 0x4cdb21
test eax, eax
je 0x4cdb21
mov ecx, dword [esi + 8]
mov eax, dword [eax + 0x44]
cmp eax, dword [ecx + 0x1c]
jne 0x4cdb21
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.0049db33
pop ecx
pop ecx
test eax, eax
je 0x4cdb49
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.004abdaa
pop ecx
pop ecx
push dword [edi + 8]
push dword [edi + 0xc]
push 0
call fcn.004cae3d
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x4ce1ba
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e], 0
jne 0x4ce1ba
jmp 0x4cdb96
mov eax, dword [eax + 0x200]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4ce1ba
mov ecx, dword [ebp - 4]
mov ebx, eax
mov esi, dword [ebx + 0x44]
call fcn.0049e7d7
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 0x4cdbe3
push 9
push str.altertab_
add esi, 7
push esi
call fcn.004dc67f
add esp, 0xc
test eax, eax
je 0x4cdbe3
push dword [ebx]
push str.table__s_may_not_be_indexed
jmp 0x4cdc7b
cmp dword [ebx + 0x1c], 0
je 0x4cdbf0
push str.views_may_not_be_indexed
jmp 0x4cdbfb
test byte [ebx + 0x22], 0x10
je 0x4cdc05
push str.virtual_tables_may_not_be_indexed
mov edi, dword [ebp + 8]
call fcn.004a10e3
jmp 0x4cdc84
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4cdc9a
mov ecx, dword [ebp - 4]
call fcn.004a5127
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4ce1ba
push eax
mov eax, dword [ebp + 8]
call fcn.004a51bd
pop ecx
test eax, eax
jne 0x4ce1ba
mov esi, dword [ebp - 4]
cmp byte [esi + 0x7c], al
jne 0x4cdc58
push eax
push dword [ebp - 0x10]
mov edi, esi
call fcn.0049dc06
pop ecx
pop ecx
test eax, eax
je 0x4cdc58
push dword [ebp - 0x10]
push str.there_is_already_a_table_named__s
jmp 0x4cdc7b
mov edi, dword [ebp - 0x20]
push dword [edi]
mov edx, esi
push dword [ebp - 0x10]
call fcn.0049dc7d
pop ecx
pop ecx
test eax, eax
je 0x4cdcc8
cmp dword [ebp + 0x28], 0
jne 0x4cdc8a
push dword [ebp - 0x10]
push str.index__s_already_exists
mov edi, dword [ebp + 8]
call fcn.004a10e3
pop ecx
pop ecx
jmp 0x4ce1ba
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.004bd999
jmp 0x4ce1ba
mov eax, dword [ebx + 0x10]
xor ecx, ecx
inc ecx
jmp 0x4cdca6
mov eax, dword [eax + 0x20]
inc ecx
test eax, eax
jne 0x4cdca2
mov esi, dword [ebp - 4]
push ecx
push dword [ebx]
push str.sqlite_autoindex__s__d
call fcn.004a0ea2
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4ce1ba
cmp dword [ebp - 8], 1
mov esi, dword [edi]
mov eax, str.sqlite_temp_master
je 0x4cdcda
mov eax, str.sqlite_master
mov edi, dword [ebp + 8]
push esi
push 0
push eax
push 0x12
mov eax, edi
call fcn.004a4ea7
add esp, 0x10
test eax, eax
jne 0x4ce1ba
inc eax
cmp dword [ebp - 8], eax
jne 0x4cdcfe
push 3
pop eax
push esi
push dword [ebx]
push dword [ebp - 0x10]
push eax
mov eax, edi
call fcn.004a4ea7
add esp, 0x10
test eax, eax
jne 0x4ce1ba
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x4cdd64
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.004986de
mov dword [ebp - 0x34], eax
push esi
xor ecx, ecx
mov eax, edi
call fcn.004a8270
mov esi, eax
pop ecx
mov dword [ebp + 0x14], esi
test esi, esi
je 0x4ce1ba
push 0
push edi
lea ecx, [ebp - 0x38]
call fcn.004a4583
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 0x4cdd93
mov esi, dword [esi + 0xc]
mov edx, edi
mov eax, dword [esi]
test eax, eax
je 0x4cdd8d
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4cdd8d
mov ecx, dword [eax]
call fcn.004986de
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x1c], eax
add esi, 0x14
dec edx
jne 0x4cdd6f
mov ecx, dword [ebp - 0x10]
call fcn.004986de
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.004a71aa
mov ebx, eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e], 0
pop ecx
jne 0x4ce19f
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.004dbd40
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 0x4cdf34
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 0x4cde81
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.00498753
test eax, eax
je 0x4cde81
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 0x4cde5e
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jge 0x4cdf55
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + edx*4], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x4cdece
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x4cdece
mov ecx, dword [ecx]
call fcn.004986de
inc eax
push eax
push ecx
push dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
call fcn.004dbd40
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x14], eax
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
jmp 0x4cdeed
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 0x4cdeed
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 0x4cdf0a
push dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004aff31
pop ecx
test eax, eax
je 0x4ce19f
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 0x4cde45
mov eax, ebx
call fcn.0049de6a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x200]
jne 0x4cdfd9
mov esi, dword [eax + 0x10]
jmp 0x4cdfd5
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.004a10e3
add esp, 0xc
mov byte [edi + 0x12], 1
jmp 0x4ce19f
mov eax, dword [esi + 4]
cmp eax, dword [ebx + 4]
jne 0x4cdfd2
and dword [ebp - 0x14], 0
test eax, eax
jle 0x4cdfca
mov edi, dword [ebx + 8]
mov ecx, dword [esi + 8]
sub ecx, edi
mov dword [ebp - 0x34], ecx
jmp 0x4cdf96
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 0x4cdfca
mov eax, dword [esi + 0x2c]
mov ecx, dword [edx + eax]
mov eax, dword [ebx + 0x2c]
mov edx, dword [edx + eax]
cmp ecx, edx
je 0x4cdfbf
call fcn.00498753
test eax, eax
jne 0x4cdfca
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
jl 0x4cdf93
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
je 0x4ce00b
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x4cdf76
mov esi, dword [ebp - 4]
cmp byte [esi + 0x7c], 0
je 0x4ce066
mov ecx, dword [ebx]
push ebx
call fcn.004986de
push eax
mov eax, dword [ebx + 0x24]
add eax, 0x18
mov edi, ecx
call fcn.004a122d
pop ecx
pop ecx
test eax, eax
je 0x4ce048
mov byte [esi + 0x1e], 1
jmp 0x4ce19f
mov al, byte [esi + 0x18]
mov cl, byte [ebx + 0x18]
cmp al, cl
je 0x4ce19f
cmp al, 0x63
je 0x4ce033
cmp cl, 0x63
je 0x4ce033
mov edi, dword [ebp + 8]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.004a10e3
pop ecx
pop ecx
cmp byte [esi + 0x18], 0x63
jne 0x4ce19f
mov al, byte [ebx + 0x18]
mov byte [esi + 0x18], al
jmp 0x4ce19f
or dword [esi + 0xc], 0x200
cmp dword [ebp + 0x10], 0
je 0x4ce16c
mov eax, esi
mov eax, dword [eax + 0x78]
mov dword [ebx + 0x14], eax
jmp 0x4ce16c
mov edi, dword [ebp + 8]
inc dword [edi + 0x48]
mov esi, dword [edi + 0x48]
mov dword [ebp - 0x28], esi
call fcn.004a985b
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4ce19f
mov ecx, dword [ebp - 8]
push 1
mov eax, edi
call fcn.004bda57
mov ecx, dword [ebp - 0x24]
push esi
push dword [ebp - 8]
push 0x61
pop eax
call fcn.004a332b
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x4ce0d9
cmp dword [ebp + 0x18], 0
mov ecx, 0x511450
je 0x4ce0b6
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.004a0ea2
add esp, 0x10
mov esi, eax
jmp 0x4ce0db
xor esi, esi
cmp dword [ebp - 8], 1
mov eax, str.sqlite_temp_master
je 0x4ce0eb
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.004a4fc6
push esi
push dword [ebp - 4]
call fcn.004984ff
add esp, 0x24
cmp dword [ebp + 0x10], 0
je 0x4ce16c
push dword [ebp - 0x28]
mov esi, edi
push ebx
mov eax, esi
call fcn.004b4913
push dword [ebp - 8]
call fcn.004a533d
mov esi, dword [ebp - 4]
add esp, 0xc
push 0xffffffffffffffff
push dword [ebx]
push str.name_q_AND_typeindex
call fcn.004a0ea2
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.004a7b0b
mov ecx, dword [ebp - 0x24]
push esi
push 0x7a
pop eax
call fcn.004a331a
add esp, 0x1c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x7c], 0
jne 0x4ce17b
cmp dword [ebp + 0x10], 0
jne 0x4ce19f
cmp dword [ebp + 0x18], 5
mov ecx, dword [ebp - 0xc]
jne 0x4ce191
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4ce191
cmp byte [eax + 0x18], 5
jne 0x4ce1f1
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 0x4ce1ba
push dword [ebx + 0x1c]
push dword [ebp - 4]
call fcn.004984ff
push ebx
push dword [ebp - 4]
call fcn.004984ff
add esp, 0x10
pop esi
push dword [ebp - 4]
mov edi, dword [ebp + 0x14]
call fcn.0049d709
push dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
call fcn.0049df6d
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.004984ff
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 0x4ce1f7
mov eax, ecx
cmp dword [eax + 0x20], 0
jne 0x4ce1e6
mov ecx, dword [eax + 0x20]
mov dword [ebx + 0x20], ecx
mov dword [eax + 0x20], ebx
jmp 0x4ce19a