Function at 0x1000f1a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010c8ce
mov eax, dword fs:[0]
push eax
sub esp, 0x114
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_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.10098d70
add esp, 0x14
test eax, eax
je 0x1000f239
push eax
push 0x1011b55c
push 1
push 0xd5
push 0x1011b5f4
push str.CFirefox::ParseHistoryDB
call fcn.100ff930
add esp, 0x18
xor al, al
jmp 0x1000f78a
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.10068f10
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp eax, 0x64
jne 0x1000f76c
jmp 0x1000f280
push 0
push dword [ebp - 0xe4]
call fcn.100698c0
push 1
push dword [ebp - 0xe4]
mov ebx, eax
call fcn.100698c0
push 2
push dword [ebp - 0xe4]
mov dword [ebp - 0xf8], eax
call fcn.10069770
mov dword [ebp - 0xf4], eax
add esp, 0x18
mov al, byte [ebx]
mov byte [ebp - 0xe9], al
test al, al
jne 0x1000f2c8
xor esi, esi
jmp 0x1000f2d9
mov esi, ebx
lea ecx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000f2d0
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 0x1000f312
cmp edi, esi
jb 0x1000f312
cmp edi, esi
setne al
test eax, eax
jne 0x1000f312
dec dword [ebp - 0xf0]
jmp 0x1000f343
cmp byte [ebp - 0xe9], 0
jne 0x1000f31f
xor ecx, ecx
jmp 0x1000f32d
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f324
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, 0x1011836f
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 0x1000f372
xor ecx, ecx
jmp 0x1000f380
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f377
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.10008550
lea ecx, [ebp - 0xe0]
call fcn.10040b80
mov byte [ebp - 4], 1
push 3
push dword [ebp - 0xe4]
call fcn.100698c0
push 4
push dword [ebp - 0xe4]
mov dword [ebp - 0xf8], eax
call fcn.10069770
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 0x1000f46b
xor ecx, ecx
jmp 0x1000f479
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f470
sub ecx, edx
push ecx
push ebx
mov ecx, esi
call fcn.10008550
mov ecx, edi
call fcn.10040b80
add esp, 0x18
lea ecx, [ebp - 0x11c]
call fcn.10040910
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0xc8]
cmp eax, esi
je 0x1000f534
cmp dword [ebp - 0xb4], 8
jb 0x1000f4c2
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 0x1000f501
mov eax, dword [esi + 0x10]
inc eax
je 0x1000f50f
add eax, eax
push eax
lea eax, [ebp - 0xc8]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x1000f50f
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 0x1000f54e
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.10040910
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x98]
cmp eax, esi
je 0x1000f618
cmp dword [ebp - 0x84], 8
jb 0x1000f5a6
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 0x1000f5e5
mov eax, dword [esi + 0x10]
inc eax
je 0x1000f5f3
add eax, eax
push eax
lea eax, [ebp - 0x98]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x1000f5f3
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 0x1000f62c
push dword [ebp - 0x11c]
call ebx
add esp, 4
mov eax, dword [ebp - 0xf8]
mov edx, 0x10118393
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 0x1000f65b
xor ecx, ecx
jmp 0x1000f669
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f660
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.10008550
lea ecx, [ebp - 0x11c]
call fcn.10040910
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x50]
cmp eax, esi
je 0x1000f6f4
cmp dword [ebp - 0x3c], 8
jb 0x1000f697
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 0x1000f6ca
mov eax, dword [esi + 0x10]
inc eax
je 0x1000f6d5
add eax, eax
push eax
lea eax, [ebp - 0x50]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x1000f6d5
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 0x1000f708
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 0x1000f732
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 0x1000f755
push dword [ebp - 0xe0]
call ebx
add esp, 4
push dword [ebp - 0xe4]
call fcn.10068f10
add esp, 4
cmp eax, 0x64
je 0x1000f280
push dword [ebp - 0xe4]
call fcn.10068190
add esp, 4
cmp dword [ebp - 0x14], 0x10
jb 0x1000f788
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.1010a06b
mov esp, ebp
pop ebp
ret 8