Function at 0x10004e80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100edbf6
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x1012d034]
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.100926b0
add esp, 0x14
test eax, eax
je 0x10004f5e
push eax
push 0x100f9940
push 1
push 0x1d2
push 0x100f9960
push 0x100f9988
call fcn.100e13e0
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.100926b0
add esp, 0x2c
test eax, eax
je 0x10004f5e
push eax
push 0x100f9814
push 1
push 0x1d8
push 0x100f9aa8
push str.CChrome::ParseHistoryDB
call fcn.100e13e0
add esp, 0x18
xor al, al
jmp 0x100053d1
push dword [ebp - 0xcc]
call fcn.10062850
add esp, 4
cmp eax, 0x64
jne 0x100053c1
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jmp 0x10004f80
push 0
push dword [ebp - 0xcc]
call fcn.10063200
push 1
push dword [ebp - 0xcc]
mov ebx, eax
mov dword [ebp - 0xdc], ebx
call fcn.10063200
push 2
push dword [ebp - 0xcc]
mov esi, eax
call fcn.100630b0
test esi, esi
mov dword [ebp - 0xd4], eax
mov edx, 0x100f90b1
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 0x10004fdd
xor ecx, ecx
jmp 0x10004ff1
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004fe2
sub ecx, ebx
mov ebx, dword [ebp - 0xdc]
push ecx
push edx
mov ecx, esi
call fcn.100080d0
lea ecx, [ebp - 0xc8]
call fcn.1003a440
mov dword [ebp - 4], 0
push 3
push dword [ebp - 0xcc]
call fcn.10063200
push 4
push dword [ebp - 0xcc]
mov dword [ebp - 0xdc], eax
call fcn.100630b0
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, 0x100f90b2
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 0x100050e4
xor ecx, ecx
jmp 0x100050f9
mov ecx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100050f0
sub ecx, esi
push ecx
push edx
mov ecx, ebx
call fcn.100080d0
mov ecx, dword [ebp - 0xd4]
call fcn.1003a440
add esp, 0x18
lea ecx, [ebp - 0x100]
call fcn.1003a1d0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0xb0]
cmp eax, esi
je 0x100051b4
cmp dword [ebp - 0x9c], 8
jb 0x10005142
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 0x10005181
mov eax, dword [esi + 0x10]
inc eax
je 0x1000518f
add eax, eax
push eax
lea eax, [ebp - 0xb0]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x1000518f
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 0x100051c8
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.10007d40
lea ecx, [ebp - 0x100]
call fcn.1003a1d0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x80]
cmp eax, esi
je 0x10005270
cmp dword [ebp - 0x6c], 8
jb 0x10005213
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 0x10005246
mov eax, dword [esi + 0x10]
inc eax
je 0x10005251
add eax, eax
push eax
lea eax, [ebp - 0x80]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x10005251
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 0x10005284
push dword [ebp - 0x100]
call edi
add esp, 4
mov eax, dword [ebp - 0xdc]
mov edx, 0x100f90b3
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 0x100052b3
xor eax, eax
jmp 0x100052c1
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100052b8
sub eax, ebx
push eax
push edx
mov ecx, esi
call fcn.100080d0
lea ecx, [ebp - 0x100]
call fcn.1003a1d0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x38]
cmp eax, esi
je 0x1000534c
cmp dword [ebp - 0x24], 8
jb 0x100052ef
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 0x10005322
mov eax, dword [esi + 0x10]
inc eax
je 0x1000532d
add eax, eax
push eax
lea eax, [ebp - 0x38]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x1000532d
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 0x10005360
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.10006bd0
lea ecx, [ebp - 0xb0]
call fcn.10005460
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xb4], 0x10
jb 0x100053aa
push dword [ebp - 0xc8]
call edi
add esp, 4
push dword [ebp - 0xcc]
call fcn.10062850
add esp, 4
cmp eax, 0x64
je 0x10004f80
push dword [ebp - 0xcc]
call fcn.10061ad0
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.100ebd7b
mov esp, ebp
pop ebp
ret 8