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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12989aa0
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [esp + 0x34]
push edi
xor edi, edi
cmp esi, edi
je 0x128fa3a9
mov ebx, dword [esp + 0x3c]
cmp ebx, edi
je 0x128fa3a9
mov eax, dword [0x12993aec]
mov dword [esp + 0x10], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x48]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x34], 2
call fcn.12907ea0
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx + 8]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push str.QueryFireFoxDownHistory________wstrFilePath:__s__dwType:__d_nDownLastTime___I64u_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
mov byte [esp + 0x50], 3
call fcn.128f8920
add esp, 0x20
mov ecx, 0x129cd048
call fcn.128e0380
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, 0x129cd048
call fcn.128e0530
cmp eax, edi
jne 0x128fa33e
push 0x129cd044
lea ecx, [esp + 0x10]
call fcn.12907ea0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 8]
push eax
push ecx
push edx
mov edx, dword [esi + 0x18]
mov byte [esp + 0x3c], 4
push edx
push eax
mov eax, dword [esi + 0x20]
push ecx
push eax
lea ecx, [esp + 0x28]
push str.SELECT__s__s__s_FROM__s_WHERE__s__0_AND__s______AND__s____8
push ecx
call fcn.1290b5c0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
add esp, 0x24
lea edx, [esp + 0x38]
push edi
push edx
push 0xffffffffffffffff
push eax
push ecx
mov ecx, 0x129cd048
call fcn.128e0550
cmp eax, edi
jne 0x128fa2f8
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x28]
mov ecx, dword [esp + 0x38]
push edx
push eax
push 8
push ecx
mov ecx, 0x129cd048
call fcn.128e0580
mov edx, dword [esp + 0x38]
mov ecx, 0x129cd048
push edx
call fcn.128e05e0
cmp eax, 0x64
jne 0x128fa312
push ebp
jmp 0x128fa182
xor edi, edi
mov eax, dword [esp + 0x3c]
push edi
push eax
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x20]
call fcn.129088c0
mov ecx, dword [esp + 0x3c]
push 1
push ecx
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x1c]
call fcn.129088c0
mov edx, dword [esp + 0x3c]
push 2
push edx
mov ecx, 0x129cd048
call fcn.128e0600
push 0x129cd044
lea ecx, [esp + 0x24]
mov edi, eax
mov ebp, edx
call fcn.12907ea0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x18]
push eax
push ecx
push ebp
push edi
push eax
mov eax, dword [esi + 0x1c]
push edx
push eax
lea ecx, [esp + 0x3c]
push str.SELECT__s_FROM__s_WHERE__s____I64u_AND__s__1_ORDER_BY__s_DESC_LIMIT_1
push ecx
mov byte [esp + 0x58], 5
call fcn.1290b5c0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
add esp, 0x24
lea edx, [esp + 0x40]
push 0
push edx
push 0xffffffffffffffff
push eax
push ecx
mov ecx, 0x129cd048
call fcn.128e0550
test eax, eax
jne 0x128fa268
mov edx, dword [esp + 0x40]
mov ecx, 0x129cd048
push edx
call fcn.128e05e0
cmp eax, 0x64
jne 0x128fa268
mov eax, dword [esp + 0x40]
push 0
push eax
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x2c]
call fcn.129088c0
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, 0x129cd048
call fcn.128e05e0
cmp eax, 0x64
je 0x128fa239
mov edx, dword [esp + 0x40]
mov ecx, 0x129cd048
push edx
call fcn.128e0720
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
lea ecx, [ebx + 0x250]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push ebp
push edi
push 2
mov ecx, 0x129d2fe0
mov dword [esp + 0x5c], 0
call fcn.128ff690
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push ebp
push edi
push 2
push str.QueryFireFoxDownHistory__Add_Type__d__nEndTime__I64u__wstrUrl__s___wstrTargetPath__s_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x24
lea ecx, [esp + 0x20]
mov edi, 1
mov byte [esp + 0x34], 4
call fcn.12908640
mov eax, dword [esp + 0x3c]
mov ecx, 0x129cd048
push eax
call fcn.128e05e0
cmp eax, 0x64
je 0x128fa180
pop ebp
jmp 0x128fa312
push eax
push str.QueryFireFoxDownHistory_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 3
call fcn.12908640
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, 0x129cd048
call fcn.128e0720
mov edx, dword [esp + 0x10]
mov ecx, 0x129cd048
push edx
call fcn.128e0700
push edi
push str.QueryFireFoxDownHistory____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 2
call fcn.12908640
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 1
call fcn.12908640
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.12908640
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.12908640
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov ecx, dword [esp + 0x28]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8