Function at 0x12428300
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x124d3a64
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x664
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
cmp ebx, ecx
push edi
je 0x12428a85
mov esi, dword [ebp + 0xc]
cmp esi, ecx
je 0x12428a85
mov edi, dword [ebp + 0x10]
cmp edi, ecx
je 0x12428a85
mov eax, dword [0x124de7fc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x678], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 8]
mov byte [esp + 0x678], 1
push eax
push str.QueryFromVisitTime________dwBroHistory:__d_
push str.History
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
mov ecx, dword [0x124de7fc]
add esp, 0x14
mov dword [esp + 0x10], ecx
push str.SELECT
lea ecx, [esp + 0x10]
mov byte [esp + 0x67c], 2
call fcn.12455ef0
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x67c], 3
call fcn.124574a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.124567f0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.12457440
push 0x124f489c
lea ecx, [esp + 0x10]
call fcn.12455ef0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 4
push ecx
lea ecx, [esp + 0x14]
call fcn.124574a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.124567f0
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push edx
call fcn.12457440
push 0x124f489c
lea ecx, [esp + 0x10]
call fcn.12455ef0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x67c], 5
call fcn.124574a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.124567f0
mov ecx, dword [esi + 0x10]
push ecx
lea ecx, [esp + 0x14]
call fcn.12457440
push str._FROM
lea ecx, [esp + 0x10]
call fcn.12455ef0
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x67c], 6
call fcn.124574a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.124567f0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.12457440
push str._WHERE__
lea ecx, [esp + 0x10]
call fcn.12455ef0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 7
push ecx
lea ecx, [esp + 0x14]
call fcn.124574a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.124567f0
cmp dword [ebx + 8], 0x16
jne 0x12428512
push str.visit_count___0__AND__
lea ecx, [esp + 0x10]
call fcn.12455ef0
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x67c], 8
call fcn.124574a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.124567f0
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.12457440
push str.______AND__
lea ecx, [esp + 0x10]
call fcn.12455ef0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 9
push ecx
lea ecx, [esp + 0x14]
call fcn.124574a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.124567f0
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.12457440
push str.___1__AND__
lea ecx, [esp + 0x10]
call fcn.12455ef0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x67c], 0xa
call fcn.124574a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.124567f0
mov ecx, dword [esi + 0x10]
push ecx
lea ecx, [esp + 0x14]
call fcn.12457440
push str.___2_
lea ecx, [esp + 0x10]
call fcn.12455ef0
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x67c], 0xb
call fcn.124574a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.124567f0
mov eax, dword [esp + 0x10]
push eax
push str.QueryFromVisitTime_wstrSQL__s_
push str.History
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
mov edx, dword [esp + 0x24]
add esp, 0x14
lea ecx, [esp + 0x14]
push 0
push ecx
push 0xffffffffffffffff
push edx
push edi
mov ecx, 0x12516288
call fcn.1242fa20
test eax, eax
jne 0x124289ed
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
mov edx, dword [esp + 0x14]
push eax
push ecx
push 1
push edx
mov ecx, 0x12516288
call fcn.1242fa50
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
mov edx, dword [esp + 0x14]
push eax
push ecx
push 2
push edx
mov ecx, 0x12516288
call fcn.1242fa50
xor esi, esi
lea eax, [esp + 0x24]
push esi
push esi
push esi
push eax
mov ecx, 0x1251b928
mov dword [esp + 0x54], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.124460a0
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, 0x12516288
call fcn.1242fab0
cmp eax, 0x64
jne 0x12428a07
mov dword [esp + 0x30], 1
mov edx, dword [esp + 0x14]
push 0
push edx
mov ecx, 0x12516288
call fcn.1242fb00
push eax
lea ecx, [esp + 0x1c]
call fcn.12456a70
mov eax, dword [esp + 0x14]
push 1
push eax
mov ecx, 0x12516288
call fcn.1242fb00
push eax
lea ecx, [esp + 0x20]
call fcn.12456a70
mov ecx, dword [esp + 0x14]
push 2
push ecx
mov ecx, 0x12516288
call fcn.1242fad0
mov edi, eax
mov dword [esp + 0x38], edx
cmp edi, esi
mov dword [esp + 0x34], edi
jne 0x124286e8
cmp edx, dword [esp + 0x44]
je 0x124289cd
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
lea esi, [ebx + 0x458]
push eax
push ecx
push esi
push edx
push edi
mov ecx, 0x125162b8
call fcn.1242fca0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 4]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
mov ecx, 0x125162b8
call fcn.1242ff00
test eax, eax
je 0x124289c9
mov ecx, 0x189
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.12427910
mov edx, dword [esp + 0x28]
push 0x103
lea eax, [esp + 0x60]
push edx
push eax
call fcn.1246f6a5
mov ecx, dword [esp + 0x38]
push 0x103
lea edx, [esp + 0x274]
push ecx
push edx
call fcn.1246f6a5
add ebx, 0x250
push 0x103
lea eax, [esp + 0x488]
push ebx
push eax
call fcn.1246f6a5
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x69c], ecx
mov ecx, dword [0x12515bcc]
mov esi, ecx
add esp, 0x34
cmp esi, ecx
mov dword [esp + 0x66c], edx
mov dword [esp + 0x20], esi
jl 0x12428980
lea ebx, [esi + 1]
test ebx, ebx
jne 0x124287f4
mov eax, dword [0x12515bc8]
test eax, eax
je 0x124287e3
push eax
mov dword [esp + 0x24], ecx
call fcn.1246f3e6
add esp, 4
mov dword [0x12515bc8], ebx
xor eax, eax
mov dword [0x12515bd0], eax
mov dword [0x12515bcc], eax
jmp 0x12428980
mov edx, dword [0x12515bc8]
test edx, edx
jne 0x12428842
lea eax, [ebx + ebx*2]
shl eax, 4
add eax, ebx
lea edi, [ebx + eax*4]
shl edi, 3
push edi
call fcn.1246f55f
mov edx, eax
mov ecx, edi
mov dword [0x12515bc8], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x12515bd0], ebx
mov dword [0x12515bcc], ebx
jmp 0x12428980
mov edi, dword [0x12515bd0]
cmp ebx, edi
jg 0x1242889e
cmp ecx, ebx
jge 0x1242888b
lea edi, [ecx + ecx*2]
mov eax, ebx
shl edi, 4
add edi, ecx
sub eax, ecx
lea ecx, [ecx + edi*4]
lea edi, [edx + ecx*8]
lea edx, [eax + eax*2]
shl edx, 4
add edx, eax
lea ecx, [eax + edx*4]
xor eax, eax
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x12515bcc], ebx
jmp 0x12428980
jle 0x12428893
sub ecx, ebx
mov dword [esp + 0x20], ecx
mov dword [0x12515bcc], ebx
jmp 0x12428980
mov eax, dword [0x12515bd4]
test eax, eax
jne 0x124288ca
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x124288be
mov eax, 4
jmp 0x124288ca
cmp eax, 0x400
jle 0x124288ca
mov eax, 0x400
add eax, edi
cmp ebx, eax
jge 0x124288d6
mov dword [esp + 0xc], eax
jmp 0x124288dc
mov dword [esp + 0xc], ebx
mov eax, ebx
lea ecx, [eax + eax*2]
shl ecx, 4
add ecx, eax
lea edx, [eax + ecx*4]
shl edx, 3
push edx
call fcn.1246f55f
mov ecx, dword [0x12515bcc]
mov esi, dword [0x12515bc8]
mov edi, eax
mov dword [esp + 0x40], eax
lea edx, [ecx + ecx*2]
shl edx, 4
add edx, ecx
lea ecx, [ecx + edx*4]
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x12515bcc]
mov ecx, ebx
sub ecx, edx
lea esi, [edx + edx*2]
shl esi, 4
add esi, edx
lea edx, [edx + esi*4]
lea edi, [eax + edx*8]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea ecx, [ecx + eax*4]
xor eax, eax
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x12515bc8]
push eax
call fcn.1246f3e6
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
add esp, 8
mov dword [0x12515bc8], ecx
mov dword [0x12515bcc], ebx
mov dword [0x12515bd0], edx
mov edx, dword [0x12515bc8]
lea eax, [esi + esi*2]
shl eax, 4
add eax, esi
lea ecx, [esi + eax*4]
lea esi, [esp + 0x48]
lea edi, [edx + ecx*8]
mov ecx, 0x18a
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push str.QueryFromVisitTime__Add_url:__s__title:__s_
push str.History
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
mov edi, dword [esp + 0x4c]
mov ebx, dword [ebp + 8]
add esp, 0x18
mov edx, dword [esp + 0x38]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x14]
push edx
mov ecx, 0x12516288
mov esi, edi
call fcn.1242fab0
cmp eax, 0x64
je 0x12428689
jmp 0x12428a07
push eax
push str.QueryFromVisitTime_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x678], 1
call fcn.124567f0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x12428a2b
push eax
mov ecx, 0x12516288
call fcn.1242fbf0
mov esi, dword [esp + 0x30]
push esi
push str.QueryFromVisitTime____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x678], 0
call fcn.124567f0
lea ecx, [esp + 0x18]
mov dword [esp + 0x678], 0xffffffff
call fcn.124567f0
mov eax, esi
mov ecx, dword [esp + 0x670]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x670]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret