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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x124d4ed0
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 0x1244c05a
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x1244c05a
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.12456050
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.12455df0
lea eax, [esp + 0x20]
push eax
call fcn.124297c0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.12456980
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.124567f0
mov ecx, dword [esp + 0x10]
push ecx
push str.UpdateQQWeiYunLastUpDownTime________wstrFilePath:__s_
push str.History
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x14
mov ecx, 0x12516288
call fcn.1242f850
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push eax
mov ecx, 0x12516288
call fcn.1242fa00
cmp eax, ebx
jne 0x1244c02b
push 0x12516280
lea ecx, [esp + 0x1c]
call fcn.12456050
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.12459770
add esp, 0x1c
lea ecx, [esp + 0x14]
push 0x12516280
call fcn.12456050
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.12459770
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, 0x12516288
call fcn.1242fa20
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, 0x12516288
call fcn.1242fa20
cmp eax, ebx
jne 0x1244bfc8
cmp edi, ebx
jne 0x1244bfc8
mov edx, dword [esp + 0x30]
mov ecx, 0x12516288
push edx
call fcn.1242fab0
cmp eax, 0x64
jne 0x1244bf15
mov eax, dword [esp + 0x30]
push 0
push eax
mov ecx, 0x12516288
call fcn.1242fad0
mov ecx, dword [esp + 0x30]
push 1
push ecx
mov ecx, 0x12516288
mov ebp, eax
mov edi, edx
call fcn.1242fad0
test edi, edi
jl 0x1244beec
jg 0x1244bee1
test ebp, ebp
jbe 0x1244beec
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], edi
mov ebx, 1
test edx, edx
jl 0x1244bf01
jg 0x1244bef6
test eax, eax
jbe 0x1244bf01
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
mov ebx, 1
mov edx, dword [esp + 0x30]
mov ecx, 0x12516288
push edx
call fcn.1242fab0
cmp eax, 0x64
je 0x1244beb1
mov eax, dword [esp + 0x34]
mov ecx, 0x12516288
push eax
call fcn.1242fab0
cmp eax, 0x64
jne 0x1244bf8d
mov ecx, dword [esp + 0x34]
push 0
push ecx
mov ecx, 0x12516288
call fcn.1242fad0
mov edi, edx
mov edx, dword [esp + 0x34]
push 1
push edx
mov ecx, 0x12516288
mov ebp, eax
call fcn.1242fad0
test edi, edi
jl 0x1244bf64
jg 0x1244bf59
test ebp, ebp
jbe 0x1244bf64
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], edi
mov ebx, 1
test edx, edx
jl 0x1244bf79
jg 0x1244bf6e
test eax, eax
jbe 0x1244bf79
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov ebx, 1
mov eax, dword [esp + 0x34]
mov ecx, 0x12516288
push eax
call fcn.1242fab0
cmp eax, 0x64
je 0x1244bf29
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 0x1251696c
call fcn.12447cf0
add esp, 0x30
jmp 0x1244bfe2
push ebx
push str.UpdateQQWeiYunLastUpDownTime_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.124567f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 0
call fcn.124567f0
mov eax, dword [esp + 0x30]
mov ecx, 0x12516288
push eax
call fcn.1242fbf0
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, 0x12516288
call fcn.1242fbf0
mov edx, dword [esp + 0x1c]
mov ecx, 0x12516288
push edx
call fcn.1242fbd0
push ebx
push str.UpdateQQWeiYunLastUpDownTime____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.124567f0
mov eax, ebx
jmp 0x1244c05c
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