Function at 0x1244cc20
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x124d4ff4
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 0x1244d1b7
mov esi, dword [esp + 0xb4]
cmp esi, ebp
je 0x1244d1b7
mov ebx, dword [esp + 0xb8]
cmp ebx, ebp
je 0x1244d1b7
cmp dword [esp + 0xbc], ebp
je 0x1244d1b7
cmp dword [esp + 0xc0], ebp
je 0x1244d1b7
mov eax, dword [0x124de7fc]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], eax
mov ecx, dword [0x124de7f8]
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 0x1251696c
call fcn.12447cf0
add esp, 0x1c
lea ecx, [esp + 0x30]
push ecx
push esi
mov ecx, 0x12516288
call fcn.1242fa00
cmp eax, ebp
jne 0x1244d12c
push 0x12516280
lea ecx, [esp + 0x20]
call fcn.12456050
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.12459770
mov edx, dword [esp + 0x44]
add esp, 0x28
push edx
push str.QueryFireFoxDownHistory_1_SQL:__s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
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, 0x12516288
call fcn.1242fa20
cmp eax, ebp
jne 0x1244d074
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.1248b570
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
add esp, 0x1c
cmp eax, ebp
ja 0x1244cdcb
cmp ecx, 0x6400000
mov dword [esp + 0x20], ebp
jbe 0x1244cdd3
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 0x1251696c
call fcn.12447cf0
push ebx
call fcn.1246f510
add esp, 0x20
mov ebx, eax
mov eax, dword [esp + 0x18]
mov ecx, 0x12516288
push eax
call fcn.1242fab0
cmp eax, 0x64
jne 0x1244d05f
mov ecx, dword [esp + 0x18]
push 0
push ecx
mov ecx, 0x12516288
inc ebp
call fcn.1242fb00
push eax
lea ecx, [esp + 0x28]
call fcn.12456a70
mov edx, dword [esp + 0x18]
push 1
push edx
mov ecx, 0x12516288
call fcn.1242fb00
push eax
lea ecx, [esp + 0x2c]
call fcn.12456a70
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 0x1251696c
call fcn.12447cf0
mov edx, dword [esp + 0x40]
add esp, 0x1c
lea ecx, [esp + 0x38]
push edx
call fcn.124517b0
mov eax, dword [esp + 0x38]
push eax
call fcn.1243efd0
mov edi, eax
add esp, 4
test edi, edi
je 0x1244d053
push 0xfde9
push edi
lea ecx, [esp + 0x18]
call fcn.1245abf0
mov ecx, dword [esp + 0x10]
push ecx
push str.QueryFireFoxDownHistory_4___s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
mov esi, dword [esp + 0x24]
push str.file:___
call fcn.1246f510
push eax
push str.file:___
push esi
call fcn.1246f723
add esp, 0x24
test eax, eax
jne 0x1244d04a
push str.file:___
lea ecx, [esp + 0x14]
call fcn.1245a2f0
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
call fcn.12458620
mov edx, dword [esp + 0x10]
push edx
push str.QueryFireFoxDownHistory_5___s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp ebx, dword [eax - 8]
jne 0x1244cf4b
push ebx
push eax
mov eax, dword [esp + 0xc0]
push eax
call fcn.1246f723
add esp, 0xc
test eax, eax
jne 0x1244cf47
mov dword [esp + 0x14], 1
jmp 0x1244d04a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x1244d04a
cmp dword [esp + 0xc4], 3
jae 0x1244cf6d
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1244d04a
mov ecx, dword [esp + 0xb8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.1244d470
test eax, eax
je 0x1244d04a
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1244cf9c
mov dword [esp + 0x14], 1
jmp 0x1244d04a
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.1248b570
add esp, 0x1c
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x84]
call fcn.12465be0
lea edx, [esp + 0x50]
lea ecx, [esp + 0x60]
push edx
call fcn.12465be0
lea eax, [esp + 0x60]
lea ecx, [esp + 0x70]
push eax
push ecx
lea ecx, [esp + 0x88]
call fcn.12466900
push 0
push 5
push 0
push 0
lea ecx, [esp + 0xa0]
call fcn.12466c70
lea ecx, [esp + 0x70]
call fcn.12466eb0
fabs
fstp qword [esp + 0x58]
lea ecx, [esp + 0x90]
call fcn.12466eb0
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x1244d031
mov dword [esp + 0x14], 1
jmp 0x1244d04a
push str.IsSameFile_Out_5Min
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x10
push edi
call fcn.1246f3e6
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1244cdfb
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8], 5
call fcn.124567f0
xor ebp, ebp
jmp 0x1244d09f
push eax
push str.QueryFireFoxDownHistory_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8], 5
call fcn.124567f0
mov edx, dword [esp + 0x18]
mov ecx, 0x12516288
push edx
call fcn.1242fbf0
mov eax, dword [esp + 0x30]
mov ecx, 0x12516288
push eax
call fcn.1242fbd0
cmp dword [esp + 0x14], ebp
je 0x1244d12c
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
call fcn.124517b0
mov edx, dword [esp + 0x2c]
push edx
call fcn.1243efd0
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x1244d12c
push 0xfde9
push esi
lea ecx, [esp + 0x3c]
call fcn.1245abf0
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.1246f6a5
push esi
call fcn.1246f3e6
add esp, 0x10
mov esi, dword [esp + 0x14]
push esi
push str.QueryFireFoxDownHistory____bRet:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0xa8], 4
call fcn.124567f0
lea ecx, [esp + 0x38]
mov byte [esp + 0xa8], 3
call fcn.12451470
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 2
call fcn.124567f0
lea ecx, [esp + 0x34]
mov byte [esp + 0xa8], 1
call fcn.124567f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa8], 0
call fcn.12451470
lea ecx, [esp + 0x28]
mov dword [esp + 0xa8], 0xffffffff
call fcn.124567f0
mov eax, esi
jmp 0x1244d1b9
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