Function at 0x100051a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010bf56
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x10152034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, str.SELECT_urls.url__urls.title__urls.visit_count__datetime_visits.visit_time___1000000___11644473600__unixepoch__localtime__as_visit_time__visits.visit_duration___1000000_FROM_urls__visits_WHERE_urls.id__visits.url_ORDER_BY_visit_time_DESC__visit_duration_DESC
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0
push eax
push 0
push 0
push 0xffffffffffffffff
mov dword [ebp - 0xd0], 0
call fcn.10098d70
add esp, 0x14
test eax, eax
je 0x1000527e
push eax
push 0x10118ae0
push 1
push 0x1d2
push 0x10118b00
push 0x10118b28
call fcn.100ff930
lea eax, [ebp - 0xd0]
mov edx, str.SELECT_url__title__visit_count__datetime_last_visit_time___1000000__unixepoch__localtime__as_visit_time__julianday_datetime_activity_time___1000000__unixepoch__localtime__86400___julianday_1970_01_01_08:00:00_86400__FROM_urls_ORDER_BY_visit_time_DESC
push eax
lea eax, [ebp - 0xcc]
mov ecx, esi
push eax
push 0
push 0
push 0xffffffffffffffff
call fcn.10098d70
add esp, 0x2c
test eax, eax
je 0x1000527e
push eax
push 0x101189b4
push 1
push 0x1d8
push 0x10118c48
push str.CChrome::ParseHistoryDB
call fcn.100ff930
add esp, 0x18
xor al, al
jmp 0x100056f1
push dword [ebp - 0xcc]
call fcn.10068f10
add esp, 4
cmp eax, 0x64
jne 0x100056e1
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jmp 0x100052a0
push 0
push dword [ebp - 0xcc]
call fcn.100698c0
push 1
push dword [ebp - 0xcc]
mov ebx, eax
mov dword [ebp - 0xdc], ebx
call fcn.100698c0
push 2
push dword [ebp - 0xcc]
mov esi, eax
call fcn.10069770
test esi, esi
mov dword [ebp - 0xd4], eax
mov edx, 0x10118251
cmovne edx, esi
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x100052fd
xor ecx, ecx
jmp 0x10005311
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005302
sub ecx, ebx
mov ebx, dword [ebp - 0xdc]
push ecx
push edx
mov ecx, esi
call fcn.10008550
lea ecx, [ebp - 0xc8]
call fcn.10040b80
mov dword [ebp - 4], 0
push 3
push dword [ebp - 0xcc]
call fcn.100698c0
push 4
push dword [ebp - 0xcc]
mov dword [ebp - 0xdc], eax
call fcn.10069770
cdq
mov dword [ebp - 0xe4], eax
xor eax, eax
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0x9c], 7
mov dword [ebp - 0xa0], 0
mov word [ebp - 0xb0], ax
mov dword [ebp - 0x84], 7
mov dword [ebp - 0x88], eax
mov word [ebp - 0x98], ax
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], eax
mov word [ebp - 0x80], ax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], eax
mov word [ebp - 0x68], ax
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], eax
mov word [ebp - 0x50], ax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], eax
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0xd4]
test ebx, ebx
mov edx, 0x10118252
mov byte [ebp - 4], 1
cmovne edx, ebx
mov dword [ebp - 0x18], eax
add esp, 0x10
mov dword [ebp - 0xd4], esp
sub esp, 0x18
mov ebx, esp
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp byte [edx], 0
jne 0x10005404
xor ecx, ecx
jmp 0x10005419
mov ecx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005410
sub ecx, esi
push ecx
push edx
mov ecx, ebx
call fcn.10008550
mov ecx, dword [ebp - 0xd4]
call fcn.10040b80
add esp, 0x18
lea ecx, [ebp - 0x100]
call fcn.10040910
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0xb0]
cmp eax, esi
je 0x100054d4
cmp dword [ebp - 0x9c], 8
jb 0x10005462
push dword [ebp - 0xb0]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x9c], 7
mov dword [ebp - 0xa0], 0
mov word [ebp - 0xb0], ax
cmp dword [esi + 0x14], 8
jae 0x100054a1
mov eax, dword [esi + 0x10]
inc eax
je 0x100054af
add eax, eax
push eax
lea eax, [ebp - 0xb0]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x100054af
mov eax, dword [esi]
mov dword [ebp - 0xb0], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xa0], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x9c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0xec], 8
jb 0x100054e8
push dword [ebp - 0x100]
call edi
add esp, 4
sub esp, 0x18
lea eax, [ebp - 0xc8]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.100081b0
lea ecx, [ebp - 0x100]
call fcn.10040910
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x80]
cmp eax, esi
je 0x10005590
cmp dword [ebp - 0x6c], 8
jb 0x10005533
push dword [ebp - 0x80]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
cmp dword [esi + 0x14], 8
jae 0x10005566
mov eax, dword [esi + 0x10]
inc eax
je 0x10005571
add eax, eax
push eax
lea eax, [ebp - 0x80]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x10005571
mov eax, dword [esi]
mov dword [ebp - 0x80], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0xec], 8
jb 0x100055a4
push dword [ebp - 0x100]
call edi
add esp, 4
mov eax, dword [ebp - 0xdc]
mov edx, 0x10118253
test eax, eax
cmovne edx, eax
sub esp, 0x18
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x100055d3
xor eax, eax
jmp 0x100055e1
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100055d8
sub eax, ebx
push eax
push edx
mov ecx, esi
call fcn.10008550
lea ecx, [ebp - 0x100]
call fcn.10040910
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x38]
cmp eax, esi
je 0x1000566c
cmp dword [ebp - 0x24], 8
jb 0x1000560f
push dword [ebp - 0x38]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
cmp dword [esi + 0x14], 8
jae 0x10005642
mov eax, dword [esi + 0x10]
inc eax
je 0x1000564d
add eax, eax
push eax
lea eax, [ebp - 0x38]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x1000564d
mov eax, dword [esi]
mov dword [ebp - 0x38], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0xec], 8
jb 0x10005680
push dword [ebp - 0x100]
call edi
add esp, 4
mov eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xb0]
push eax
call fcn.10006f30
lea ecx, [ebp - 0xb0]
call fcn.10005780
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xb4], 0x10
jb 0x100056ca
push dword [ebp - 0xc8]
call edi
add esp, 4
push dword [ebp - 0xcc]
call fcn.10068f10
add esp, 4
cmp eax, 0x64
je 0x100052a0
push dword [ebp - 0xcc]
call fcn.10068190
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret 8