Function at 0x10008500
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014e673
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x1bc
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xd4], 0
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xd0]
push ecx
push 0xffffffffffffffff
push 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 edx, dword [ebp + 8]
push edx
call fcn.100d3e10
add esp, 0x14
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0
je 0x10008601
mov eax, dword [ebp - 0xe0]
push eax
push 0x1015dde8
push 1
push 0x1d2
push 0x1015de08
push 0x1015de30
call fcn.101426f0
add esp, 0x18
lea ecx, [ebp - 0xd4]
push ecx
lea edx, [ebp - 0xd0]
push edx
push 0xffffffffffffffff
push 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
mov eax, dword [ebp + 8]
push eax
call fcn.100d3e10
add esp, 0x14
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0
je 0x10008601
mov ecx, dword [ebp - 0xe0]
push ecx
push 0x1015df50
push 1
push 0x1d8
push 0x1015df74
push str.CChrome::ParseHistoryDB
call fcn.101426f0
add esp, 0x18
xor al, al
jmp 0x10008a02
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xd0]
push edx
call fcn.100a3e10
add esp, 4
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0x64
jne 0x100089b5
mov dword [ebp - 0xd8], 0
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0xd8]
add ecx, 1
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0x150]
push edx
mov eax, dword [ebp - 0xd0]
push eax
call fcn.100a47c0
add esp, 8
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0xf8], ecx
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0xd8]
add eax, 1
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
call fcn.100a47c0
add esp, 8
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0xd8]
add edx, 1
mov dword [ebp - 0xd8], edx
mov eax, dword [ebp - 0x14c]
push eax
mov ecx, dword [ebp - 0xd0]
push ecx
call fcn.100a4670
add esp, 8
mov dword [ebp - 0x110], eax
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0xf0], 0
jne 0x10008712
mov dword [ebp - 0xe4], 0x1015d341
jmp 0x1000871e
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xe4], eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x168], esp
mov edx, dword [ebp - 0xe4]
push edx
call fcn.1000ccc0
mov dword [ebp - 0x170], eax
lea ecx, [ebp - 0x2c]
call fcn.1007bb90
add esp, 0x18
mov dword [ebp - 0x180], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0xd8]
add ecx, 1
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0x130]
push edx
mov eax, dword [ebp - 0xd0]
push eax
call fcn.100a47c0
add esp, 8
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0xf4], ecx
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0xd8]
add eax, 1
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0x140]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
call fcn.100a4670
add esp, 8
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
cdq
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], edx
lea ecx, [ebp - 0xcc]
call fcn.10008a20
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0xf8], 0
jne 0x10008810
mov dword [ebp - 0xec], 0x1015d342
jmp 0x1000881c
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xec], ecx
sub esp, 0x18
mov dword [ebp - 0x100], esp
mov dword [ebp - 0x17c], esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x164], esp
mov edx, dword [ebp - 0xec]
push edx
call fcn.1000ccc0
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x100]
call fcn.1007bb90
add esp, 0x18
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x16c], eax
lea ecx, [ebp - 0x19c]
call fcn.1007b9b0
add esp, 0x18
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x114]
push edx
lea ecx, [ebp - 0xcc]
call fcn.10002230
lea ecx, [ebp - 0x19c]
call fcn.10002d10
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x178], esp
lea eax, [ebp - 0x2c]
push eax
call fcn.1000c9d0
mov dword [ebp - 0x174], eax
lea ecx, [ebp - 0x1cc]
call fcn.1007b9b0
add esp, 0x18
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x124]
push edx
lea ecx, [ebp - 0x9c]
call fcn.10002230
lea ecx, [ebp - 0x1cc]
call fcn.10002d10
cmp dword [ebp - 0xf4], 0
jne 0x10008911
mov dword [ebp - 0xe8], 0x1015d343
jmp 0x1000891d
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xe8], eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x158], esp
mov edx, dword [ebp - 0xe8]
push edx
call fcn.1000ccc0
mov dword [ebp - 0x160], eax
lea ecx, [ebp - 0x1b4]
call fcn.1007b9b0
add esp, 0x18
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x54]
call fcn.10002230
lea ecx, [ebp - 0x1b4]
call fcn.10002d10
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0xcc]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.1000a2d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.10008ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1000cd00
jmp 0x10008608
jmp 0x100089d9
mov dword [ebp - 4], 0xffffffff
jmp 0x100089f1
mov eax, dword [ebp - 0xd0]
push eax
call fcn.100a3090
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 - 0x14]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret 8