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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12505fb8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
xor ebx, ebx
cmp edi, ebx
je 0x1247ba79
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x1247ba79
lea eax, [esi + 0x48]
lea ecx, [esp + 0x10]
push eax
xor ebp, ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], ebx
call fcn.12486370
mov ecx, dword [esi + 8]
lea edx, [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov dword [esp + 0x34], ebx
call fcn.12486110
lea eax, [esp + 0x38]
push eax
call fcn.12459800
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.12486ca0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.12486b10
mov ecx, dword [esp + 0x10]
push ecx
push str.UpdateChromeLastUpDownTime_wstrFilePath:__s_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
mov ecx, 0x12547908
call fcn.1245fb40
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, 0x12547908
call fcn.1245fcf0
cmp eax, ebx
jne 0x1247ba42
push 0x12547904
lea ecx, [esp + 0x34]
call fcn.12486370
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0xc]
push ecx
mov ecx, dword [edi + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x40]
push str.SELECT_max__s____s_FROM__s_WHERE__s__1
push edx
mov byte [esp + 0x40], 2
call fcn.12489a90
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
add esp, 0x18
lea eax, [esp + 0x34]
push ebx
push eax
push 0xffffffffffffffff
push ecx
push edx
mov ecx, 0x12547908
call fcn.1245fd10
cmp eax, ebx
jne 0x1247b9f5
mov eax, dword [esp + 0x34]
mov ecx, 0x12547908
push eax
call fcn.1245fda0
cmp eax, 0x64
jne 0x1247b9fd
mov ecx, dword [esp + 0x34]
push ebx
push ecx
mov ecx, 0x12547908
call fcn.1245fdc0
mov edi, edx
mov edx, dword [esp + 0x34]
push 1
push edx
mov ecx, 0x12547908
mov dword [esp + 0x20], eax
call fcn.1245fdc0
cmp edi, ebx
jl 0x1247b9de
jg 0x1247b9cf
cmp dword [esp + 0x18], ebx
jbe 0x1247b9de
mov ecx, dword [esp + 0x18]
mov ebp, 1
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edi
cmp edx, ebx
jl 0x1247ba17
jg 0x1247b9e8
cmp eax, ebx
jb 0x1247ba17
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
mov ebp, 1
jmp 0x1247ba17
push eax
push str.UpdateChromeLastUpDownTime_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
jmp 0x1247ba03
push eax
push str.UpdateChromeLastUpDownTime_sqlite3_step__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.12486b10
mov edx, dword [esp + 0x34]
mov ecx, 0x12547908
push edx
call fcn.1245fee0
mov eax, dword [esp + 0x14]
mov ecx, 0x12547908
push eax
call fcn.1245fec0
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
push ebp
push ecx
push edx
push str.UpdateChromeLastUpDownTime_nUpDownLastTime__I64u__bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x1c
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.12486b10
mov eax, ebp
jmp 0x1247ba7b
xor eax, eax
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8