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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12506040
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 0x1247c37a
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x1247c37a
lea eax, [esi + 0x48]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
call fcn.12486370
mov ecx, dword [esi + 8]
lea edx, [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov dword [esp + 0x34], ebx
call fcn.12486110
lea eax, [esp + 0x20]
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 + 0x18]
mov byte [esp + 0x28], bl
call fcn.12486b10
mov ecx, dword [esp + 0x10]
push ecx
push str.UpdateQQWeiYunLastUpDownTime________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 + 0x1c]
push edx
push eax
mov ecx, 0x12547908
call fcn.1245fcf0
cmp eax, ebx
jne 0x1247c34b
push 0x12547904
lea ecx, [esp + 0x1c]
call fcn.12486370
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push 6
push ecx
mov ecx, dword [edi + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x2c]
push str.SELECT_max__s___count___FROM__s_WHERE__s______AND__s___lu
push edx
mov byte [esp + 0x44], 2
call fcn.12489a90
add esp, 0x1c
lea ecx, [esp + 0x14]
push 0x12547904
call fcn.12486370
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x18]
push 5
push eax
mov eax, dword [edi + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push str.SELECT_max__s___count___FROM__s_WHERE__s______AND__s___lu
push ecx
mov byte [esp + 0x44], 3
call fcn.12489a90
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 0x30]
push ebx
push edx
push 0xffffffffffffffff
push eax
push ecx
mov ecx, 0x12547908
call fcn.1245fd10
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x34]
mov edi, eax
mov eax, dword [esp + 0x14]
push ebx
push edx
push 0xffffffffffffffff
push eax
push ecx
mov ecx, 0x12547908
call fcn.1245fd10
cmp eax, ebx
jne 0x1247c2e8
cmp edi, ebx
jne 0x1247c2e8
mov edx, dword [esp + 0x30]
mov ecx, 0x12547908
push edx
call fcn.1245fda0
cmp eax, 0x64
jne 0x1247c235
mov eax, dword [esp + 0x30]
push 0
push eax
mov ecx, 0x12547908
call fcn.1245fdc0
mov ecx, dword [esp + 0x30]
push 1
push ecx
mov ecx, 0x12547908
mov ebp, eax
mov edi, edx
call fcn.1245fdc0
test edi, edi
jl 0x1247c20c
jg 0x1247c201
test ebp, ebp
jbe 0x1247c20c
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], edi
mov ebx, 1
test edx, edx
jl 0x1247c221
jg 0x1247c216
test eax, eax
jbe 0x1247c221
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
mov ebx, 1
mov edx, dword [esp + 0x30]
mov ecx, 0x12547908
push edx
call fcn.1245fda0
cmp eax, 0x64
je 0x1247c1d1
mov eax, dword [esp + 0x34]
mov ecx, 0x12547908
push eax
call fcn.1245fda0
cmp eax, 0x64
jne 0x1247c2ad
mov ecx, dword [esp + 0x34]
push 0
push ecx
mov ecx, 0x12547908
call fcn.1245fdc0
mov edi, edx
mov edx, dword [esp + 0x34]
push 1
push edx
mov ecx, 0x12547908
mov ebp, eax
call fcn.1245fdc0
test edi, edi
jl 0x1247c284
jg 0x1247c279
test ebp, ebp
jbe 0x1247c284
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], edi
mov ebx, 1
test edx, edx
jl 0x1247c299
jg 0x1247c28e
test eax, eax
jbe 0x1247c299
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov ebx, 1
mov eax, dword [esp + 0x34]
mov ecx, 0x12547908
push eax
call fcn.1245fda0
cmp eax, 0x64
je 0x1247c249
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x38]
push edx
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x30]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [esi + 0x28]
push eax
push ecx
push edx
push str.UpdateQQWeiYunLastUpDownTime__UpdateTime__nDownLastTime:__I64u__nLastDownId__I64u__nUpLastTime:__I64u__nUpLastId__I64u_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x30
jmp 0x1247c302
push ebx
push str.UpdateQQWeiYunLastUpDownTime_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.12486b10
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 0
call fcn.12486b10
mov eax, dword [esp + 0x30]
mov ecx, 0x12547908
push eax
call fcn.1245fee0
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, 0x12547908
call fcn.1245fee0
mov edx, dword [esp + 0x1c]
mov ecx, 0x12547908
push edx
call fcn.1245fec0
push ebx
push str.UpdateQQWeiYunLastUpDownTime____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.12486b10
mov eax, ebx
jmp 0x1247c37c
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