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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12989fd8
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 0x128fe7ae
mov edi, dword [esp + 0x38]
cmp edi, ebx
je 0x128fe7ae
mov ebp, dword [esp + 0x3c]
cmp ebp, ebx
je 0x128fe7ae
cmp dword [esp + 0x40], ebx
je 0x128fe7ae
cmp dword [esp + 0x44], ebx
je 0x128fe7ae
mov eax, dword [0x12993aec]
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 0x129cd72c
mov byte [esp + 0x44], 3
call fcn.128f8920
add esp, 0x18
lea eax, [esp + 0x20]
mov ecx, 0x129cd048
push eax
push edi
call fcn.128e0530
cmp eax, ebx
jne 0x128fe6dd
push 0x129cd044
lea ecx, [esp + 0x14]
call fcn.12907ea0
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.1290b5c0
mov edx, dword [esp + 0x48]
add esp, 0x38
push edx
push str.QueryChromeDownHistory_1_SQL:__s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
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, 0x129cd048
call fcn.128e0550
cmp eax, ebx
jne 0x128fe691
push ebp
mov edi, 1
call fcn.12922b80
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x38]
mov ecx, 0x129cd048
push eax
call fcn.128e05e0
cmp eax, 0x64
jne 0x128fe6ab
mov ecx, dword [esp + 0x38]
push ebx
push ecx
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x38]
call fcn.129088c0
mov edx, dword [esp + 0x38]
push 1
push edx
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x40]
call fcn.129088c0
mov eax, dword [esp + 0x38]
push 2
push eax
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x18]
call fcn.129088c0
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 0x129cd72c
call fcn.128f8920
mov ecx, dword [esp + 0x58]
push ecx
call fcn.12922b80
add esp, 0x20
cmp esi, eax
jne 0x128fe609
mov edx, dword [esp + 0x3c]
push esi
push edx
push ebp
call fcn.12922d93
add esp, 0xc
test eax, eax
je 0x128fe687
mov eax, dword [esp + 0x3c]
cmp dword [eax - 8], ebx
jne 0x128fe625
mov ecx, dword [esp + 0x14]
push esi
push ecx
push ebp
call fcn.12922d93
add esp, 0xc
test eax, eax
je 0x128fe687
cmp edi, ebx
je 0x128fe66b
mov edx, dword [esp + 0x3c]
cmp dword [edx - 8], ebx
jne 0x128fe66b
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
jne 0x128fe66b
mov ecx, dword [esp + 0x34]
cmp dword [ecx - 8], ebx
jle 0x128fe66b
lea edx, [esp + 0x34]
lea ecx, [esp + 0x1c]
push edx
call fcn.129087d0
push str.QueryChromeDownHistory_3_MayBeUrl
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x10
mov eax, dword [esp + 0x38]
mov ecx, 0x129cd048
push eax
xor edi, edi
call fcn.128e05e0
cmp eax, 0x64
je 0x128fe570
jmp 0x128fe6ab
mov dword [esp + 0x18], 1
jmp 0x128fe6ab
push eax
push str.QueryChromeDownHistory_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 3
call fcn.12908640
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, 0x129cd048
call fcn.128e0720
mov edx, dword [esp + 0x20]
mov ecx, 0x129cd048
push edx
call fcn.128e0700
cmp dword [esp + 0x18], ebx
jne 0x128fe71a
mov eax, dword [esp + 0x1c]
cmp dword [eax - 8], ebx
jle 0x128fe752
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call fcn.129087d0
mov edx, dword [esp + 0x34]
push edx
push str.QueryChromeDownHistory_4___s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
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 0x128fe72c
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.12922d15
add esp, 0xc
mov esi, dword [esp + 0x18]
push esi
push str.QueryChromeDownHistory____Ret:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call fcn.12908640
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 1
call fcn.12908640
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.12908640
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], 0xffffffff
call fcn.12908640
mov eax, esi
jmp 0x128fe7b0
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