Function at 0x4a7662
Capabilities:
Reference sql statements

Disassembly:
push 0xd8
mov eax, 0x5205ae
call fcn.0044c7df
push dword [ebp + 0xc]
call fcn.0043a4ca
test al, al
pop ecx
jne 0x4a7bef
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [edi], eax
mov dword [ebp - 0x20], 0x544a3c
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x32
mov dword [ebp - 4], ebx
mov eax, edi
mov byte [ebp - 4], 1
call fcn.004a6dd0
test al, al
je 0x4a7be3
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
call fcn.004a6b79
lea ecx, [ebp - 0x20]
call fcn.004a7484
sub eax, 0xf
je 0x4a7bf9
dec eax
jne 0x4a7be3
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
call fcn.00412c0a
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004364fc
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00412a2a
add eax, 0x10
mov dword [ebp - 0x34], eax
push str.Bookmarks
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00413537
lea eax, [ebp - 0xe0]
push eax
call fcn.0050bb0f
mov byte [ebp - 4], 4
push dword [ebp - 0x34]
lea ecx, [ebp - 0xe0]
call fcn.0050b9ed
cmp eax, ebx
jne 0x4a7bbd
push str.begin_transaction_
lea eax, [ebp - 0x20]
call fcn.004a6ca9
mov eax, dword [0x575038]
mov esi, 0x575038
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
push str.select_id__url__favicon_id_from_urls
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.0041910b
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x20]
call fcn.004a6c28
lea ecx, [ebp - 0x68]
call fcn.004a6a8b
push dword [ebp + 0x10]
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0x20]
call fcn.004a6c28
mov byte [ebp - 4], 6
mov eax, dword [0x575038]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 7
mov eax, dword [0x575038]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
lea esi, [ebp - 0x78]
mov byte [ebp - 4], 8
call fcn.0042a71b
lea esi, [ebp - 0x84]
mov byte [ebp - 4], 9
call fcn.0042a71b
mov byte [ebp - 4], 0xa
lea esi, [ebp - 0xc0]
call fcn.004a67df
test al, al
jne 0x4a78d5
mov eax, edi
call fcn.004a6dd0
test al, al
je 0x4a78d5
push 0x54419c
mov eax, esi
call fcn.004a69af
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00412116
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 0xc], ebx
je 0x4a78c5
push eax
lea ecx, [ebp - 0xe0]
call fcn.0050b8b4
test al, al
jne 0x4a78c5
push 0x53e920
mov eax, esi
call fcn.004a69af
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00412116
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], ebx
je 0x4a78c5
push eax
push str.delete_from_urls_where_id___s
lea eax, [ebp + 0x10]
call fcn.0041910b
pop ecx
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x20]
call fcn.004a6c28
lea ecx, [ebp - 0x68]
call fcn.004a6a8b
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x78]
push eax
lea ebx, [ebp - 0x40]
call fcn.0041fee1
push str.favicon_id
mov eax, esi
call fcn.004a69af
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00412c0a
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x84]
push eax
lea ebx, [ebp - 0xa8]
mov byte [ebp - 4], 0xb
call fcn.0041fee1
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
call fcn.00410d34
xor ebx, ebx
lea esi, [ebp - 0xc0]
call fcn.004a6bc9
jmp 0x4a77d8
mov eax, edi
call fcn.004a6dd0
test al, al
je 0x4a7b72
push str.delete_from_visits
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x20]
call fcn.004a6c28
lea ecx, [ebp - 0x68]
call fcn.004a6a8b
push str.delete_from_segments_where_url_id_not_in__Select_id_from_urls_
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x20]
call fcn.004a6c28
lea ecx, [ebp - 0x68]
call fcn.004a6a8b
push str.delete_from_segment_usage_where_segment_id_not_in__select_id_from_segments_
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x20]
call fcn.004a6c28
lea ecx, [ebp - 0x68]
call fcn.004a6a8b
push str.delete_from_keyword_search_terms
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x20]
call fcn.004a6c28
lea ecx, [ebp - 0x68]
call fcn.004a6a8b
mov eax, edi
call fcn.004a6dd0
test al, al
je 0x4a7b72
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00412a2a
add eax, 0x10
mov dword [ebp - 0x30], eax
push str.Thumbnails
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call fcn.00413537
mov dword [ebp - 0x40], 0x544a3c
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0x32
mov byte [ebp - 4], 0xd
push dword [ebp - 0x30]
lea eax, [ebp - 0x40]
call fcn.004a6b79
cmp dword [ebp - 0x70], ebx
jbe 0x4a7b42
lea ecx, [ebp - 0x40]
call fcn.004a7484
cmp eax, 3
jne 0x4a7b42
push str.begin_transaction_
lea eax, [ebp - 0x40]
call fcn.004a6ca9
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
lea edx, [ebp - 0x78]
mov dword [ebp - 0x44], ecx
mov ecx, edx
mov dword [ebp - 0x48], edx
lea esi, [ebp - 0x48]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
lea edi, [ebp - 0x50]
mov bl, 1
test bl, bl
je 0x4a7a36
call fcn.00411e4b
test al, al
jne 0x4a7a36
xor bl, bl
call fcn.00408586
mov dword [ebp + 0xc], eax
test bl, bl
jne 0x4a7a2f
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp + 0x10]
push str.DELETE_FROM_thumbnails_WHERE_url_id___s
call fcn.0041910b
pop ecx
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x40]
call fcn.004a6c28
lea ecx, [ebp - 0x68]
call fcn.004a6a8b
mov eax, dword [ebp + 8]
call fcn.004a6dd0
test al, al
je 0x4a79da
inc bl
jmp 0x4a79f1
call fcn.00410235
jmp 0x4a79da
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
lea edx, [ebp - 0x84]
mov dword [ebp - 0x4c], ecx
mov ecx, edx
mov dword [ebp - 0x50], edx
lea ebx, [ebp - 0x50]
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], eax
lea edi, [ebp - 0xa4]
mov byte [ebp + 0xf], 1
cmp byte [ebp + 0xf], 0
je 0x4a7b29
mov esi, ebx
call fcn.00411e4b
test al, al
jne 0x4a7b29
mov byte [ebp + 0xf], al
call fcn.00408586
mov dword [ebp - 0x44], eax
cmp byte [ebp + 0xf], 0
jne 0x4a7b1d
mov eax, dword [ebp - 0x44]
push dword [eax]
lea eax, [ebp + 0x10]
push str.SELECT_id_FROM_urls_WHERE_favicon_id_s_LIMIT_1
call fcn.0041910b
pop ecx
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x20]
call fcn.004a6c28
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 0xe
call fcn.004a67df
test al, al
je 0x4a7af2
mov eax, dword [ebp - 0x44]
push dword [eax]
lea eax, [ebp + 0x10]
push str.DELETE_FROM_favicons_WHERE_id___s
call fcn.0041910b
pop ecx
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x40]
call fcn.004a6c28
lea ecx, [ebp - 0x9c]
call fcn.004a6a8b
mov eax, dword [ebp + 8]
call fcn.004a6dd0
test al, al
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x68]
jne 0x4a7b0f
call fcn.004a6a8b
jmp 0x4a7a62
call fcn.004a6a8b
mov byte [ebp + 0xf], 1
jmp 0x4a7a86
mov esi, ebx
call fcn.00410235
jmp 0x4a7a62
mov eax, dword [ebp + 8]
call fcn.004a6dd0
test al, al
je 0x4a7b42
push str.commit_transaction_
lea eax, [ebp - 0x40]
call fcn.004a6ca9
mov eax, dword [ebp + 8]
call fcn.004a6dd0
test al, al
je 0x4a7b5b
push str.commit_transaction_
lea eax, [ebp - 0x20]
call fcn.004a6ca9
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
call fcn.004a6939
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.00410d34
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 9
call fcn.0040fdde
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 8
call fcn.0040fdde
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00410d34
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.00410d34
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.004a6a8b
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00410d34
lea eax, [ebp - 0xe0]
push eax
mov byte [ebp - 4], 3
call fcn.0050baa9
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.00410d34
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00410d34
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004a6939
mov al, 1
call fcn.0044c884
ret 0xc
push str.begin_transaction_
lea eax, [ebp - 0x20]
call fcn.004a6ca9
push str.delete_from_urls_where_starred_id_NOT_in__select_id_from_starred__or_starred_id__0
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x20]
call fcn.004a6c28
lea ecx, [ebp - 0x9c]
call fcn.004a6a8b
push str.delete_from_visits
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x20]
call fcn.004a6c28
lea ecx, [ebp - 0x9c]
call fcn.004a6a8b
push str.delete_from_segments_where_url_id_not_in__Select_id_from_urls_
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x20]
call fcn.004a6c28
lea ecx, [ebp - 0x9c]
call fcn.004a6a8b
push str.delete_from_segment_usage_where_segment_id_not_in__select_id_from_segments_
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x20]
call fcn.004a6c28
lea ecx, [ebp - 0x9c]
call fcn.004a6a8b
push str.delete_from_keyword_search_terms
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x20]
call fcn.004a6c28
lea ecx, [ebp - 0x9c]
call fcn.004a6a8b
mov eax, edi
call fcn.004a6dd0
test al, al
je 0x4a7be3
push str.commit_transaction_
lea eax, [ebp - 0x20]
call fcn.004a6ca9
jmp 0x4a7be3