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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12989ad8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
xor ebx, ebx
cmp edi, ebx
je 0x128fa682
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x128fa682
mov eax, dword [0x12993aec]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], eax
push 0x129cd044
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 1
call fcn.12907ea0
lea eax, [esi + 0x48]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x2c], 2
call fcn.12907ea0
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push str.QuerySogouDownHistory________wstrFilePath:__s__dwType:__d_iTime___I64u_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
mov byte [esp + 0x48], 3
call fcn.128f8920
add esp, 0x20
mov ecx, 0x129cd048
call fcn.128e0380
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, 0x129cd048
call fcn.128e0530
cmp eax, ebx
jne 0x128fa617
push 0x129cd044
lea ecx, [esp + 0x10]
call fcn.12907ea0
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 8]
push eax
push ecx
push edx
mov edx, dword [edi + 0x18]
mov byte [esp + 0x34], 4
push edx
push eax
mov eax, dword [edi + 0x20]
push ecx
push eax
lea ecx, [esp + 0x28]
push str.SELECT__s__s__s_FROM__s_WHERE__s__3_AND__s______ORDER_BY__s_DESC
push ecx
call fcn.1290b5c0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
add esp, 0x24
lea edx, [esp + 0x30]
push ebx
push edx
push 0xffffffffffffffff
push eax
push ecx
mov ecx, 0x129cd048
call fcn.128e0550
cmp eax, ebx
jne 0x128fa5d1
mov edx, dword [esp + 0x30]
mov ecx, 0x129cd048
push edx
call fcn.128e05e0
cmp eax, 0x64
jne 0x128fa5eb
push ebp
mov eax, dword [esp + 0x34]
push 0
push eax
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x3c]
call fcn.129088c0
mov ecx, dword [esp + 0x34]
push 1
push ecx
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x18]
call fcn.129088c0
mov edx, dword [esp + 0x34]
push 2
push edx
mov ecx, 0x129cd048
call fcn.128e0650
mov ebp, eax
mov eax, dword [esi + 0x2c]
mov edi, edx
cmp edi, eax
jl 0x128fa5ce
jg 0x128fa559
cmp ebp, dword [esi + 0x28]
jbe 0x128fa5ce
lea eax, [esp + 0x38]
push eax
call fcn.128dd380
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add esp, 4
lea edx, [esi + 0x250]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
push edi
push ebp
push 2
mov ecx, 0x129d2fe0
call fcn.128ff690
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
push edx
push eax
push edi
push ebp
push 2
push str.QuerySogouDownHistory__Add_Type__d__nEndTime__I64u__wstrUrl__s___wstrTargetPath__s_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
mov ecx, dword [esp + 0x58]
add esp, 0x24
mov ebx, 1
push ecx
mov ecx, 0x129cd048
call fcn.128e05e0
cmp eax, 0x64
je 0x128fa500
pop ebp
jmp 0x128fa5eb
push eax
push str.QuerySogouDownHistory_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 + 0x28], 3
call fcn.12908640
mov edx, dword [esp + 0x30]
mov ecx, 0x129cd048
push edx
call fcn.128e0720
mov eax, dword [esp + 0x14]
mov ecx, 0x129cd048
push eax
call fcn.128e0700
push ebx
push str.QuerySogouDownHistory____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.12908640
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 1
call fcn.12908640
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.12908640
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.12908640
pop edi
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 8
mov ecx, dword [esp + 0x20]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8