Function at 0x1000f370
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10119f2e
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x10165034]
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_moz_places.url_moz_places.title_moz_places.visit_count_datetime_datetime_moz_places_metadata.created_at___1000__unixepoch__localtime___AS_visit_time__updated_at___1000___created_at___1000__AS_visit_duration_FROM_moz_places__moz_places_metadata_WHERE_moz_places.visit_count___0_AND_moz_places.id__moz_places_metadata.place_id_AND_moz_places.hidden__0_ORDER_BY_moz_places.url_DESC__moz_places.visit_count_DESC__visit_time_DESC
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xe4], 0
push eax
push 0
push 0
push 0xffffffffffffffff
mov dword [ebp - 0xe8], 0
call fcn.100a6630
add esp, 0x14
test eax, eax
je 0x1000f409
push eax
push 0x1012a5fc
push 1
push 0xd5
push 0x1012a694
push str.CFirefox::ParseHistoryDB
call fcn.1010d8f0
add esp, 0x18
xor al, al
jmp 0x1000f95a
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
or eax, 0xffffffff
push dword [ebp - 0xe4]
mov dword [ebp - 0xf0], eax
call fcn.100767d0
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp eax, 0x64
jne 0x1000f93c
jmp 0x1000f450
push 0
push dword [ebp - 0xe4]
call fcn.10077180
push 1
push dword [ebp - 0xe4]
mov ebx, eax
call fcn.10077180
push 2
push dword [ebp - 0xe4]
mov dword [ebp - 0xf8], eax
call fcn.10077030
mov dword [ebp - 0xf4], eax
add esp, 0x18
mov al, byte [ebx]
mov byte [ebp - 0xe9], al
test al, al
jne 0x1000f498
xor esi, esi
jmp 0x1000f4a9
mov esi, ebx
lea ecx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000f4a0
sub esi, ecx
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
mov eax, esi
cmovae ecx, dword [ebp - 0x28]
cmp edi, esi
cmovb eax, edi
push eax
push ebx
push ecx
call fcn.10007c70
add esp, 0xc
test eax, eax
jne 0x1000f4e2
cmp edi, esi
jb 0x1000f4e2
cmp edi, esi
setne al
test eax, eax
jne 0x1000f4e2
dec dword [ebp - 0xf0]
jmp 0x1000f513
cmp byte [ebp - 0xe9], 0
jne 0x1000f4ef
xor ecx, ecx
jmp 0x1000f4fd
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f4f4
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.10008550
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf8]
mov edx, 0x1012740f
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 0x1000f542
xor ecx, ecx
jmp 0x1000f550
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f547
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.10008550
lea ecx, [ebp - 0xe0]
call fcn.1004e420
mov byte [ebp - 4], 1
push 3
push dword [ebp - 0xe4]
call fcn.10077180
push 4
push dword [ebp - 0xe4]
mov dword [ebp - 0xf8], eax
call fcn.10077030
cdq
mov dword [ebp - 0xf4], eax
xor eax, eax
mov dword [ebp - 0x100], edx
mov dword [ebp - 0xb4], 7
mov dword [ebp - 0xb8], 0
mov word [ebp - 0xc8], ax
mov dword [ebp - 0x9c], 7
mov dword [ebp - 0xa0], eax
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 eax, dword [ebp - 0xf0]
add esp, 0x10
mov edi, esp
mov byte [ebp - 4], 2
sub esp, 0x18
mov dword [ebp - 0x30], eax
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebx], 0
jne 0x1000f63b
xor ecx, ecx
jmp 0x1000f649
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f640
sub ecx, edx
push ecx
push ebx
mov ecx, esi
call fcn.10008550
mov ecx, edi
call fcn.1004e420
add esp, 0x18
lea ecx, [ebp - 0x11c]
call fcn.1004e1b0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0xc8]
cmp eax, esi
je 0x1000f704
cmp dword [ebp - 0xb4], 8
jb 0x1000f692
push dword [ebp - 0xc8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0xb4], 7
mov dword [ebp - 0xb8], 0
mov word [ebp - 0xc8], ax
cmp dword [esi + 0x14], 8
jae 0x1000f6d1
mov eax, dword [esi + 0x10]
inc eax
je 0x1000f6df
add eax, eax
push eax
lea eax, [ebp - 0xc8]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x1000f6df
mov eax, dword [esi]
mov dword [ebp - 0xc8], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xb8], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xb4], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x108], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1000f71e
push dword [ebp - 0x11c]
call ebx
add esp, 4
sub esp, 0x18
lea eax, [ebp - 0xe0]
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 - 0x11c]
call fcn.1004e1b0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x98]
cmp eax, esi
je 0x1000f7e8
cmp dword [ebp - 0x84], 8
jb 0x1000f776
push dword [ebp - 0x98]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x84], 7
mov dword [ebp - 0x88], 0
mov word [ebp - 0x98], ax
cmp dword [esi + 0x14], 8
jae 0x1000f7b5
mov eax, dword [esi + 0x10]
inc eax
je 0x1000f7c3
add eax, eax
push eax
lea eax, [ebp - 0x98]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x1000f7c3
mov eax, dword [esi]
mov dword [ebp - 0x98], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x108], 8
jb 0x1000f7fc
push dword [ebp - 0x11c]
call ebx
add esp, 4
mov eax, dword [ebp - 0xf8]
mov edx, 0x10127433
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 0x1000f82b
xor ecx, ecx
jmp 0x1000f839
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f830
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.10008550
lea ecx, [ebp - 0x11c]
call fcn.1004e1b0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x50]
cmp eax, esi
je 0x1000f8c4
cmp dword [ebp - 0x3c], 8
jb 0x1000f867
push dword [ebp - 0x50]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
cmp dword [esi + 0x14], 8
jae 0x1000f89a
mov eax, dword [esi + 0x10]
inc eax
je 0x1000f8a5
add eax, eax
push eax
lea eax, [ebp - 0x50]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x1000f8a5
mov eax, dword [esi]
mov dword [ebp - 0x50], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x108], 8
jb 0x1000f8d8
push dword [ebp - 0x11c]
call ebx
add esp, 4
cmp dword [ebp - 0x40], 0
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x34], eax
je 0x1000f902
mov ecx, dword [ebp - 0x104]
lea eax, [ebp - 0xc8]
push eax
call fcn.10006f30
lea ecx, [ebp - 0xc8]
call fcn.10005780
mov byte [ebp - 4], 0
cmp dword [ebp - 0xcc], 0x10
jb 0x1000f925
push dword [ebp - 0xe0]
call ebx
add esp, 4
push dword [ebp - 0xe4]
call fcn.100767d0
add esp, 4
cmp eax, 0x64
je 0x1000f450
push dword [ebp - 0xe4]
call fcn.10075a50
add esp, 4
cmp dword [ebp - 0x14], 0x10
jb 0x1000f958
push dword [ebp - 0x28]
call ebx
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.101176fb
mov esp, ebp
pop ebp
ret 8