Function at 0x1247cb80
Capabilities:
Get number of processors
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12506108
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x1247cf1e
mov edi, dword [esp + 0x38]
cmp edi, ebx
je 0x1247cf1e
mov ebp, dword [esp + 0x3c]
cmp ebp, ebx
je 0x1247cf1e
cmp dword [esp + 0x40], ebx
je 0x1247cf1e
cmp dword [esp + 0x44], ebx
je 0x1247cf1e
mov eax, dword [0x1250f854]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
push ebp
push edi
push str.QueryChromeDownHistory________historyPath:__s__File:__s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
mov byte [esp + 0x44], 3
call fcn.12478010
add esp, 0x18
lea eax, [esp + 0x20]
mov ecx, 0x12547908
push eax
push edi
call fcn.1245fcf0
cmp eax, ebx
jne 0x1247ce4d
push 0x12547904
lea ecx, [esp + 0x14]
call fcn.12486370
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
push eax
push eax
push eax
push ecx
push edx
push edx
mov edx, dword [esi + 0x1c]
push eax
push eax
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x18]
mov byte [esp + 0x50], 4
push ecx
push edx
push eax
lea ecx, [esp + 0x40]
push str.SELECT_T2._s_T1._s_T1.current_path_FROM__s_as_T1___s_as_T2_WHERE_T1._s__T2._s_AND__t_t_t_t_t_t_tT2._s___SELECT_MAX__s__FROM__s_as_T3_WHERE_T2._s__T3._s___t_t_t_t_t_t_tORDER_BY_T1._s_DESC
push ecx
call fcn.12489a90
mov edx, dword [esp + 0x48]
add esp, 0x38
push edx
push str.QueryChromeDownHistory_1_SQL:__s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
add esp, 0x14
lea eax, [esp + 0x38]
push ebx
push eax
push 0xffffffffffffffff
push ecx
push edx
mov ecx, 0x12547908
call fcn.1245fd10
cmp eax, ebx
jne 0x1247ce01
push ebp
mov edi, 1
call fcn.1249f8a0
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x38]
mov ecx, 0x12547908
push eax
call fcn.1245fda0
cmp eax, 0x64
jne 0x1247ce1b
mov ecx, dword [esp + 0x38]
push ebx
push ecx
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x38]
call fcn.12486d90
mov edx, dword [esp + 0x38]
push 1
push edx
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x40]
call fcn.12486d90
mov eax, dword [esp + 0x38]
push 2
push eax
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x18]
call fcn.12486d90
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push str.QueryChromeDownHistory_2__r_n_Cur__s___r_nTarPath:__s___r_n_Url:__s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
mov ecx, dword [esp + 0x58]
push ecx
call fcn.1249f8a0
add esp, 0x20
cmp esi, eax
jne 0x1247cd79
mov edx, dword [esp + 0x3c]
push esi
push edx
push ebp
call fcn.1249fab3
add esp, 0xc
test eax, eax
je 0x1247cdf7
mov eax, dword [esp + 0x3c]
cmp dword [eax - 8], ebx
jne 0x1247cd95
mov ecx, dword [esp + 0x14]
push esi
push ecx
push ebp
call fcn.1249fab3
add esp, 0xc
test eax, eax
je 0x1247cdf7
cmp edi, ebx
je 0x1247cddb
mov edx, dword [esp + 0x3c]
cmp dword [edx - 8], ebx
jne 0x1247cddb
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
jne 0x1247cddb
mov ecx, dword [esp + 0x34]
cmp dword [ecx - 8], ebx
jle 0x1247cddb
lea edx, [esp + 0x34]
lea ecx, [esp + 0x1c]
push edx
call fcn.12486ca0
push str.QueryChromeDownHistory_3_MayBeUrl
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x10
mov eax, dword [esp + 0x38]
mov ecx, 0x12547908
push eax
xor edi, edi
call fcn.1245fda0
cmp eax, 0x64
je 0x1247cce0
jmp 0x1247ce1b
mov dword [esp + 0x18], 1
jmp 0x1247ce1b
push eax
push str.QueryChromeDownHistory_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 3
call fcn.12486b10
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, 0x12547908
call fcn.1245fee0
mov edx, dword [esp + 0x20]
mov ecx, 0x12547908
push edx
call fcn.1245fec0
cmp dword [esp + 0x18], ebx
jne 0x1247ce8a
mov eax, dword [esp + 0x1c]
cmp dword [eax - 8], ebx
jle 0x1247cec2
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call fcn.12486ca0
mov edx, dword [esp + 0x34]
push edx
push str.QueryChromeDownHistory_4___s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
mov dword [esp + 0x18], 1
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x44]
mov edx, dword [esi - 8]
cmp edx, eax
jb 0x1247ce9c
lea edx, [eax - 1]
mov edi, dword [esp + 0x40]
lea ecx, [eax + eax]
mov ebp, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
push edx
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x48]
push eax
call fcn.1249fa35
add esp, 0xc
mov esi, dword [esp + 0x18]
push esi
push str.QueryChromeDownHistory____Ret:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call fcn.12486b10
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 1
call fcn.12486b10
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.12486b10
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], 0xffffffff
call fcn.12486b10
mov eax, esi
jmp 0x1247cf20
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x18