Function at 0x1247cf40
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x12506164
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 0x1247d4d7
mov esi, dword [esp + 0xb4]
cmp esi, ebp
je 0x1247d4d7
mov ebx, dword [esp + 0xb8]
cmp ebx, ebp
je 0x1247d4d7
cmp dword [esp + 0xbc], ebp
je 0x1247d4d7
cmp dword [esp + 0xc0], ebp
je 0x1247d4d7
mov eax, dword [0x1250f854]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], eax
mov ecx, dword [0x1250f850]
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 0x12547fec
call fcn.12478010
add esp, 0x1c
lea ecx, [esp + 0x30]
push ecx
push esi
mov ecx, 0x12547908
call fcn.1245fcf0
cmp eax, ebp
jne 0x1247d44c
push 0x12547904
lea ecx, [esp + 0x20]
call fcn.12486370
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.12489a90
mov edx, dword [esp + 0x44]
add esp, 0x28
push edx
push str.QueryFireFoxDownHistory_1_SQL:__s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
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, 0x12547908
call fcn.1245fd10
cmp eax, ebp
jne 0x1247d394
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.124bbb80
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
add esp, 0x1c
cmp eax, ebp
ja 0x1247d0eb
cmp ecx, 0x6400000
mov dword [esp + 0x20], ebp
jbe 0x1247d0f3
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 0x12547fec
call fcn.12478010
push ebx
call fcn.1249f8a0
add esp, 0x20
mov ebx, eax
mov eax, dword [esp + 0x18]
mov ecx, 0x12547908
push eax
call fcn.1245fda0
cmp eax, 0x64
jne 0x1247d37f
mov ecx, dword [esp + 0x18]
push 0
push ecx
mov ecx, 0x12547908
inc ebp
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x28]
call fcn.12486d90
mov edx, dword [esp + 0x18]
push 1
push edx
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x2c]
call fcn.12486d90
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 0x12547fec
call fcn.12478010
mov edx, dword [esp + 0x40]
add esp, 0x1c
lea ecx, [esp + 0x38]
push edx
call fcn.12481ad0
mov eax, dword [esp + 0x38]
push eax
call fcn.1246f2f0
mov edi, eax
add esp, 4
test edi, edi
je 0x1247d373
push 0xfde9
push edi
lea ecx, [esp + 0x18]
call fcn.1248af10
mov ecx, dword [esp + 0x10]
push ecx
push str.QueryFireFoxDownHistory_4___s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
mov esi, dword [esp + 0x24]
push str.file:___
call fcn.1249f8a0
push eax
push str.file:___
push esi
call fcn.1249fab3
add esp, 0x24
test eax, eax
jne 0x1247d36a
push str.file:___
lea ecx, [esp + 0x14]
call fcn.1248a610
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
call fcn.12488940
mov edx, dword [esp + 0x10]
push edx
push str.QueryFireFoxDownHistory_5___s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp ebx, dword [eax - 8]
jne 0x1247d26b
push ebx
push eax
mov eax, dword [esp + 0xc0]
push eax
call fcn.1249fab3
add esp, 0xc
test eax, eax
jne 0x1247d267
mov dword [esp + 0x14], 1
jmp 0x1247d36a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x1247d36a
cmp dword [esp + 0xc4], 3
jae 0x1247d28d
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1247d36a
mov ecx, dword [esp + 0xb8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.1247d790
test eax, eax
je 0x1247d36a
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1247d2bc
mov dword [esp + 0x14], 1
jmp 0x1247d36a
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.124bbb80
add esp, 0x1c
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x84]
call fcn.12495f10
lea edx, [esp + 0x50]
lea ecx, [esp + 0x60]
push edx
call fcn.12495f10
lea eax, [esp + 0x60]
lea ecx, [esp + 0x70]
push eax
push ecx
lea ecx, [esp + 0x88]
call fcn.12496c30
push 0
push 5
push 0
push 0
lea ecx, [esp + 0xa0]
call fcn.12496fa0
lea ecx, [esp + 0x70]
call fcn.124971e0
fabs
fstp qword [esp + 0x58]
lea ecx, [esp + 0x90]
call fcn.124971e0
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x1247d351
mov dword [esp + 0x14], 1
jmp 0x1247d36a
push str.IsSameFile_Out_5Min
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x10
push edi
call fcn.1249f776
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1247d11b
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8], 5
call fcn.12486b10
xor ebp, ebp
jmp 0x1247d3bf
push eax
push str.QueryFireFoxDownHistory_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8], 5
call fcn.12486b10
mov edx, dword [esp + 0x18]
mov ecx, 0x12547908
push edx
call fcn.1245fee0
mov eax, dword [esp + 0x30]
mov ecx, 0x12547908
push eax
call fcn.1245fec0
cmp dword [esp + 0x14], ebp
je 0x1247d44c
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
call fcn.12481ad0
mov edx, dword [esp + 0x2c]
push edx
call fcn.1246f2f0
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x1247d44c
push 0xfde9
push esi
lea ecx, [esp + 0x3c]
call fcn.1248af10
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.1249fa35
push esi
call fcn.1249f776
add esp, 0x10
mov esi, dword [esp + 0x14]
push esi
push str.QueryFireFoxDownHistory____bRet:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0xa8], 4
call fcn.12486b10
lea ecx, [esp + 0x38]
mov byte [esp + 0xa8], 3
call fcn.12481790
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 2
call fcn.12486b10
lea ecx, [esp + 0x34]
mov byte [esp + 0xa8], 1
call fcn.12486b10
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa8], 0
call fcn.12481790
lea ecx, [esp + 0x28]
mov dword [esp + 0xa8], 0xffffffff
call fcn.12486b10
mov eax, esi
jmp 0x1247d4d9
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