Function at 0x128fe7d0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x1298a034
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xb0]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x44], ecx
je 0x128fed67
mov esi, dword [esp + 0xb4]
cmp esi, ebp
je 0x128fed67
mov ebx, dword [esp + 0xb8]
cmp ebx, ebp
je 0x128fed67
cmp dword [esp + 0xbc], ebp
je 0x128fed67
cmp dword [esp + 0xc0], ebp
je 0x128fed67
mov eax, dword [0x12993aec]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], eax
mov ecx, dword [0x12993ae8]
mov dword [esp + 0xa8], ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc4]
mov byte [esp + 0xa8], 5
push eax
push ebx
push esi
push str.QueryFireFoxDownHistory________historyPath:__s__File:__s__Times__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x1c
lea ecx, [esp + 0x30]
push ecx
push esi
mov ecx, 0x129cd048
call fcn.128e0530
cmp eax, ebp
jne 0x128fecdc
push 0x129cd044
lea ecx, [esp + 0x20]
call fcn.12907ea0
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x18]
push eax
push str.content
push eax
mov eax, dword [edi + 0x20]
push str.place_id
push edx
push str.moz_annos
push eax
push str.content
lea ecx, [esp + 0x3c]
push str.SELECT_T1._s_T2._s_FROM__s_as_T1___s_as_T2_WHERE_T1._s__T2._s_AND_T1._s_LIKE_file:______ORDER_BY_T1._s_DESC_LIMIT_20
push ecx
mov byte [esp + 0xd0], 6
call fcn.1290b5c0
mov edx, dword [esp + 0x44]
add esp, 0x28
push edx
push str.QueryFireFoxDownHistory_1_SQL:__s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
add esp, 0x14
lea eax, [esp + 0x18]
push ebp
push eax
push 0xffffffffffffffff
push ecx
push edx
mov ecx, 0x129cd048
call fcn.128e0550
cmp eax, ebp
jne 0x128fec24
lea eax, [esp + 0x48]
lea ecx, [esp + 0x3c]
push eax
push ebp
push ebp
lea edx, [esp + 0x4c]
push ecx
push edx
push ebp
push ebx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebp
call fcn.1293ee70
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
add esp, 0x1c
cmp eax, ebp
ja 0x128fe97b
cmp ecx, 0x6400000
mov dword [esp + 0x20], ebp
jbe 0x128fe983
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
push str.QueryFireFoxDownHistory_2___08x__08x____d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
push ebx
call fcn.12922b80
add esp, 0x20
mov ebx, eax
mov eax, dword [esp + 0x18]
mov ecx, 0x129cd048
push eax
call fcn.128e05e0
cmp eax, 0x64
jne 0x128fec0f
mov ecx, dword [esp + 0x18]
push 0
push ecx
mov ecx, 0x129cd048
inc ebp
call fcn.128e0630
push eax
lea ecx, [esp + 0x28]
call fcn.129088c0
mov edx, dword [esp + 0x18]
push 1
push edx
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x2c]
call fcn.129088c0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push ebp
push str.QueryFireFoxDownHistory_3__i_u__Content:__s__Url:__s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
mov edx, dword [esp + 0x40]
add esp, 0x1c
lea ecx, [esp + 0x38]
push edx
call fcn.12903600
mov eax, dword [esp + 0x38]
push eax
call fcn.128efbf0
mov edi, eax
add esp, 4
test edi, edi
je 0x128fec03
push 0xfde9
push edi
lea ecx, [esp + 0x18]
call fcn.1290ca40
mov ecx, dword [esp + 0x10]
push ecx
push str.QueryFireFoxDownHistory_4___s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
mov esi, dword [esp + 0x24]
push str.file:___
call fcn.12922b80
push eax
push str.file:___
push esi
call fcn.12922d93
add esp, 0x24
test eax, eax
jne 0x128febfa
push str.file:___
lea ecx, [esp + 0x14]
call fcn.1290c140
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
call fcn.1290a470
mov edx, dword [esp + 0x10]
push edx
push str.QueryFireFoxDownHistory_5___s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp ebx, dword [eax - 8]
jne 0x128feafb
push ebx
push eax
mov eax, dword [esp + 0xc0]
push eax
call fcn.12922d93
add esp, 0xc
test eax, eax
jne 0x128feaf7
mov dword [esp + 0x14], 1
jmp 0x128febfa
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x128febfa
cmp dword [esp + 0xc4], 3
jae 0x128feb1d
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x128febfa
mov ecx, dword [esp + 0xb8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.128ff020
test eax, eax
je 0x128febfa
mov eax, dword [esp + 0x20]
test eax, eax
je 0x128feb4c
mov dword [esp + 0x14], 1
jmp 0x128febfa
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x50]
push edx
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.1293ee70
add esp, 0x1c
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x84]
call fcn.129191d0
lea edx, [esp + 0x50]
lea ecx, [esp + 0x60]
push edx
call fcn.129191d0
lea eax, [esp + 0x60]
lea ecx, [esp + 0x70]
push eax
push ecx
lea ecx, [esp + 0x88]
call fcn.12919ef0
push 0
push 5
push 0
push 0
lea ecx, [esp + 0xa0]
call fcn.1291a260
lea ecx, [esp + 0x70]
call fcn.1291a4a0
fabs
fstp qword [esp + 0x58]
lea ecx, [esp + 0x90]
call fcn.1291a4a0
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x128febe1
mov dword [esp + 0x14], 1
jmp 0x128febfa
push str.IsSameFile_Out_5Min
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x10
push edi
call fcn.12922a56
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x128fe9ab
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8], 5
call fcn.12908640
xor ebp, ebp
jmp 0x128fec4f
push eax
push str.QueryFireFoxDownHistory_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8], 5
call fcn.12908640
mov edx, dword [esp + 0x18]
mov ecx, 0x129cd048
push edx
call fcn.128e0720
mov eax, dword [esp + 0x30]
mov ecx, 0x129cd048
push eax
call fcn.128e0700
cmp dword [esp + 0x14], ebp
je 0x128fecdc
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
call fcn.12903600
mov edx, dword [esp + 0x2c]
push edx
call fcn.128efbf0
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x128fecdc
push 0xfde9
push esi
lea ecx, [esp + 0x3c]
call fcn.1290ca40
mov edx, dword [esp + 0xc0]
mov ebp, dword [esp + 0xbc]
xor eax, eax
mov edi, ebp
lea ecx, [edx + edx]
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
dec edx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x34]
push edx
push eax
push ebp
call fcn.12922d15
push esi
call fcn.12922a56
add esp, 0x10
mov esi, dword [esp + 0x14]
push esi
push str.QueryFireFoxDownHistory____bRet:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0xa8], 4
call fcn.12908640
lea ecx, [esp + 0x38]
mov byte [esp + 0xa8], 3
call fcn.129032c0
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 2
call fcn.12908640
lea ecx, [esp + 0x34]
mov byte [esp + 0xa8], 1
call fcn.12908640
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa8], 0
call fcn.129032c0
lea ecx, [esp + 0x28]
mov dword [esp + 0xa8], 0xffffffff
call fcn.12908640
mov eax, esi
jmp 0x128fed69
xor eax, eax
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x9c
ret 0x18