Function at 0x4809a7
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 0x4810de
mov eax, dword [ebp + 8]
cmp byte [eax + 0x214], cl
jne 0x4810de
mov edi, eax
call fcn.0047d84a
test eax, eax
jne 0x4810de
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
test edi, edi
je 0x480a98
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.00458093
mov dword [ebp - 8], eax
test eax, eax
jl 0x4810dd
mov esi, dword [ebp - 4]
cmp byte [esi + 0x7c], 0
jne 0x480a44
mov eax, dword [ebp + 8]
mov ecx, edi
call fcn.0047e408
cmp dword [ebx + 4], 0
jne 0x480a44
test eax, eax
je 0x480a44
mov ecx, dword [esi + 8]
mov eax, dword [eax + 0x44]
cmp eax, dword [ecx + 0x1c]
jne 0x480a44
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.00450a55
pop ecx
pop ecx
test eax, eax
je 0x480a6c
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.0045eccc
pop ecx
pop ecx
push dword [edi + 8]
push dword [edi + 0xc]
push 0
call fcn.0047dd5f
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x4810dd
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e], 0
jne 0x4810dd
jmp 0x480ab9
mov eax, dword [eax + 0x200]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4810dd
mov ecx, dword [ebp - 4]
mov ebx, eax
mov esi, dword [ebx + 0x44]
call fcn.004516f9
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.JHotNews.exe_sqlite3_strnicmp
add esp, 0xc
test eax, eax
jne 0x480b06
push 9
push str.altertab_
add esi, 7
push esi
call fcn.0048ea9f
add esp, 0xc
test eax, eax
je 0x480b06
push dword [ebx]
push str.table__s_may_not_be_indexed
jmp 0x480b9e
cmp dword [ebx + 0x1c], 0
je 0x480b13
push str.views_may_not_be_indexed
jmp 0x480b1e
test byte [ebx + 0x22], 0x10
je 0x480b28
push str.virtual_tables_may_not_be_indexed
mov edi, dword [ebp + 8]
call fcn.00454005
jmp 0x480ba7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x480bbd
mov ecx, dword [ebp - 4]
call fcn.00458049
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4810dd
push eax
mov eax, dword [ebp + 8]
call fcn.004580df
pop ecx
test eax, eax
jne 0x4810dd
mov esi, dword [ebp - 4]
cmp byte [esi + 0x7c], al
jne 0x480b7b
push eax
push dword [ebp - 0x10]
mov edi, esi
call fcn.00450b28
pop ecx
pop ecx
test eax, eax
je 0x480b7b
push dword [ebp - 0x10]
push str.there_is_already_a_table_named__s
jmp 0x480b9e
mov edi, dword [ebp - 0x20]
push dword [edi]
mov edx, esi
push dword [ebp - 0x10]
call fcn.00450b9f
pop ecx
pop ecx
test eax, eax
je 0x480beb
cmp dword [ebp + 0x28], 0
jne 0x480bad
push dword [ebp - 0x10]
push str.index__s_already_exists
mov edi, dword [ebp + 8]
call fcn.00454005
pop ecx
pop ecx
jmp 0x4810dd
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.004708bb
jmp 0x4810dd
mov eax, dword [ebx + 0x10]
xor ecx, ecx
inc ecx
jmp 0x480bc9
mov eax, dword [eax + 0x20]
inc ecx
test eax, eax
jne 0x480bc5
mov esi, dword [ebp - 4]
push ecx
push dword [ebx]
push str.sqlite_autoindex__s__d
call fcn.00453dc4
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4810dd
cmp dword [ebp - 8], 1
mov esi, dword [edi]
mov eax, str.sqlite_temp_master
je 0x480bfd
mov eax, str.sqlite_master
mov edi, dword [ebp + 8]
push esi
push 0
push eax
push 0x12
mov eax, edi
call fcn.00457dc9
add esp, 0x10
test eax, eax
jne 0x4810dd
inc eax
cmp dword [ebp - 8], eax
jne 0x480c21
push 3
pop eax
push esi
push dword [ebx]
push dword [ebp - 0x10]
push eax
mov eax, edi
call fcn.00457dc9
add esp, 0x10
test eax, eax
jne 0x4810dd
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x480c87
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.0044b602
mov dword [ebp - 0x34], eax
push esi
xor ecx, ecx
mov eax, edi
call fcn.0045b192
mov esi, eax
pop ecx
mov dword [ebp + 0x14], esi
test esi, esi
je 0x4810dd
push 0
push edi
lea ecx, [ebp - 0x38]
call fcn.004574a5
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 0x480cb6
mov esi, dword [esi + 0xc]
mov edx, edi
mov eax, dword [esi]
test eax, eax
je 0x480cb0
mov eax, dword [eax + 0x14]
test eax, eax
je 0x480cb0
mov ecx, dword [eax]
call fcn.0044b602
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x1c], eax
add esi, 0x14
dec edx
jne 0x480c92
mov ecx, dword [ebp - 0x10]
call fcn.0044b602
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.0045a0cc
mov ebx, eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e], 0
pop ecx
jne 0x4810c2
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.0048e160
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 0x480e57
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 0x480da4
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.0044b677
test eax, eax
je 0x480da4
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 0x480d81
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jge 0x480e78
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + edx*4], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x480df1
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x480df1
mov ecx, dword [ecx]
call fcn.0044b602
inc eax
push eax
push ecx
push dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
call fcn.0048e160
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x14], eax
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
jmp 0x480e10
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 0x480e10
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 0x480e2d
push dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.00462e53
pop ecx
test eax, eax
je 0x4810c2
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 0x480d68
mov eax, ebx
call fcn.00450d8c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x200]
jne 0x480efc
mov esi, dword [eax + 0x10]
jmp 0x480ef8
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.00454005
add esp, 0xc
mov byte [edi + 0x12], 1
jmp 0x4810c2
mov eax, dword [esi + 4]
cmp eax, dword [ebx + 4]
jne 0x480ef5
and dword [ebp - 0x14], 0
test eax, eax
jle 0x480eed
mov edi, dword [ebx + 8]
mov ecx, dword [esi + 8]
sub ecx, edi
mov dword [ebp - 0x34], ecx
jmp 0x480eb9
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 0x480eed
mov eax, dword [esi + 0x2c]
mov ecx, dword [edx + eax]
mov eax, dword [ebx + 0x2c]
mov edx, dword [edx + eax]
cmp ecx, edx
je 0x480ee2
call fcn.0044b677
test eax, eax
jne 0x480eed
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
jl 0x480eb6
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
je 0x480f2e
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x480e99
mov esi, dword [ebp - 4]
cmp byte [esi + 0x7c], 0
je 0x480f89
mov ecx, dword [ebx]
push ebx
call fcn.0044b602
push eax
mov eax, dword [ebx + 0x24]
add eax, 0x18
mov edi, ecx
call fcn.0045414f
pop ecx
pop ecx
test eax, eax
je 0x480f6b
mov byte [esi + 0x1e], 1
jmp 0x4810c2
mov al, byte [esi + 0x18]
mov cl, byte [ebx + 0x18]
cmp al, cl
je 0x4810c2
cmp al, 0x63
je 0x480f56
cmp cl, 0x63
je 0x480f56
mov edi, dword [ebp + 8]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.00454005
pop ecx
pop ecx
cmp byte [esi + 0x18], 0x63
jne 0x4810c2
mov al, byte [ebx + 0x18]
mov byte [esi + 0x18], al
jmp 0x4810c2
or dword [esi + 0xc], 0x200
cmp dword [ebp + 0x10], 0
je 0x48108f
mov eax, esi
mov eax, dword [eax + 0x78]
mov dword [ebx + 0x14], eax
jmp 0x48108f
mov edi, dword [ebp + 8]
inc dword [edi + 0x48]
mov esi, dword [edi + 0x48]
mov dword [ebp - 0x28], esi
call fcn.0045c77d
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4810c2
mov ecx, dword [ebp - 8]
push 1
mov eax, edi
call fcn.00470979
mov ecx, dword [ebp - 0x24]
push esi
push dword [ebp - 8]
push 0x61
pop eax
call fcn.0045624d
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x480ffc
cmp dword [ebp + 0x18], 0
mov ecx, 0x4c42ec
je 0x480fd9
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.00453dc4
add esp, 0x10
mov esi, eax
jmp 0x480ffe
xor esi, esi
cmp dword [ebp - 8], 1
mov eax, str.sqlite_temp_master
je 0x48100e
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.00457ee8
push esi
push dword [ebp - 4]
call fcn.0044b423
add esp, 0x24
cmp dword [ebp + 0x10], 0
je 0x48108f
push dword [ebp - 0x28]
mov esi, edi
push ebx
mov eax, esi
call fcn.00467835
push dword [ebp - 8]
call fcn.0045825f
mov esi, dword [ebp - 4]
add esp, 0xc
push 0xffffffffffffffff
push dword [ebx]
push str.name_q_AND_typeindex
call fcn.00453dc4
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.0045aa2d
mov ecx, dword [ebp - 0x24]
push esi
push 0x7a
pop eax
call fcn.0045623c
add esp, 0x1c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x7c], 0
jne 0x48109e
cmp dword [ebp + 0x10], 0
jne 0x4810c2
cmp dword [ebp + 0x18], 5
mov ecx, dword [ebp - 0xc]
jne 0x4810b4
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4810b4
cmp byte [eax + 0x18], 5
jne 0x481114
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 0x4810dd
push dword [ebx + 0x1c]
push dword [ebp - 4]
call fcn.0044b423
push ebx
push dword [ebp - 4]
call fcn.0044b423
add esp, 0x10
pop esi
push dword [ebp - 4]
mov edi, dword [ebp + 0x14]
call fcn.0045062b
push dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
call fcn.00450e8f
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0044b423
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 0x48111a
mov eax, ecx
cmp dword [eax + 0x20], 0
jne 0x481109
mov ecx, dword [eax + 0x20]
mov dword [ebx + 0x20], ecx
mov dword [eax + 0x20], ebx
jmp 0x4810bd