Function at 0x128d8740
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x12988944
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 0x128d8ed2
mov esi, dword [ebp + 0xc]
cmp esi, ecx
je 0x128d8ed2
mov edi, dword [ebp + 0x10]
cmp edi, ecx
je 0x128d8ed2
mov eax, dword [0x12993aec]
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 0x129cd72c
call fcn.128f8920
mov ecx, dword [0x12993aec]
add esp, 0x14
mov dword [esp + 0x10], ecx
push str.SELECT
lea ecx, [esp + 0x10]
mov byte [esp + 0x67c], 2
call fcn.12907d40
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x67c], 3
call fcn.129092f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12908640
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.12909290
push 0x129a9fd0
lea ecx, [esp + 0x10]
call fcn.12907d40
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 4
push ecx
lea ecx, [esp + 0x14]
call fcn.129092f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12908640
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push edx
call fcn.12909290
push 0x129a9fd0
lea ecx, [esp + 0x10]
call fcn.12907d40
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x67c], 5
call fcn.129092f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12908640
mov ecx, dword [esi + 0x10]
push ecx
lea ecx, [esp + 0x14]
call fcn.12909290
push str._FROM
lea ecx, [esp + 0x10]
call fcn.12907d40
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x67c], 6
call fcn.129092f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12908640
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.12909290
push str._WHERE__
lea ecx, [esp + 0x10]
call fcn.12907d40
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 7
push ecx
lea ecx, [esp + 0x14]
call fcn.129092f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12908640
cmp dword [ebx + 8], 0x16
jne 0x128d8952
push str.visit_count___0__AND__
lea ecx, [esp + 0x10]
call fcn.12907d40
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x67c], 8
call fcn.129092f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12908640
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.12909290
push str.______AND__
lea ecx, [esp + 0x10]
call fcn.12907d40
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 9
push ecx
lea ecx, [esp + 0x14]
call fcn.129092f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12908640
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.12909290
push str.___1__AND__
lea ecx, [esp + 0x10]
call fcn.12907d40
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x67c], 0xa
call fcn.129092f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12908640
mov ecx, dword [esi + 0x10]
push ecx
lea ecx, [esp + 0x14]
call fcn.12909290
push str.___2_
lea ecx, [esp + 0x10]
call fcn.12907d40
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x67c], 0xb
call fcn.129092f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12908640
mov eax, dword [esp + 0x10]
push eax
push str.QueryFromVisitTime_wstrSQL__s_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
mov edx, dword [esp + 0x24]
add esp, 0x14
lea ecx, [esp + 0x14]
push 0
push ecx
push 0xffffffffffffffff
push edx
push edi
mov ecx, 0x129cd048
call fcn.128e0550
test eax, eax
jne 0x128d8e3a
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, 0x129cd048
call fcn.128e0580
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, 0x129cd048
call fcn.128e0580
xor esi, esi
lea eax, [esp + 0x24]
push esi
push esi
push esi
push eax
mov ecx, 0x129d26e8
mov dword [esp + 0x54], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.128f6cc0
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, 0x129cd048
call fcn.128e05e0
cmp eax, 0x64
jne 0x128d8e54
mov dword [esp + 0x30], 1
mov edx, dword [esp + 0x14]
push 0
push edx
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x1c]
call fcn.129088c0
lea eax, [esp + 0x18]
push eax
call fcn.128dd380
mov ecx, dword [esp + 0x18]
add esp, 4
push 1
push ecx
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x20]
call fcn.129088c0
mov edx, dword [esp + 0x14]
push 2
push edx
mov ecx, 0x129cd048
call fcn.128e0600
mov edi, eax
mov dword [esp + 0x38], edx
cmp edi, esi
mov dword [esp + 0x34], edi
jne 0x128d8b35
cmp edx, dword [esp + 0x44]
je 0x128d8e1a
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, 0x129cd078
call fcn.128e07d0
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, 0x129cd078
call fcn.128e0a40
test eax, eax
je 0x128d8e16
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.128d7d40
mov edx, dword [esp + 0x28]
push 0x103
lea eax, [esp + 0x60]
push edx
push eax
call fcn.12922d15
mov ecx, dword [esp + 0x38]
push 0x103
lea edx, [esp + 0x274]
push ecx
push edx
call fcn.12922d15
add ebx, 0x250
push 0x103
lea eax, [esp + 0x488]
push ebx
push eax
call fcn.12922d15
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x69c], ecx
mov ecx, dword [0x129cc93c]
mov esi, ecx
add esp, 0x34
cmp esi, ecx
mov dword [esp + 0x66c], edx
mov dword [esp + 0x20], esi
jl 0x128d8dcd
lea ebx, [esi + 1]
test ebx, ebx
jne 0x128d8c41
mov eax, dword [0x129cc938]
test eax, eax
je 0x128d8c30
push eax
mov dword [esp + 0x24], ecx
call fcn.12922a56
add esp, 4
mov dword [0x129cc938], ebx
xor eax, eax
mov dword [0x129cc940], eax
mov dword [0x129cc93c], eax
jmp 0x128d8dcd
mov edx, dword [0x129cc938]
test edx, edx
jne 0x128d8c8f
lea eax, [ebx + ebx*2]
shl eax, 4
add eax, ebx
lea edi, [ebx + eax*4]
shl edi, 3
push edi
call fcn.12922bcf
mov edx, eax
mov ecx, edi
mov dword [0x129cc938], 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 [0x129cc940], ebx
mov dword [0x129cc93c], ebx
jmp 0x128d8dcd
mov edi, dword [0x129cc940]
cmp ebx, edi
jg 0x128d8ceb
cmp ecx, ebx
jge 0x128d8cd8
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 [0x129cc93c], ebx
jmp 0x128d8dcd
jle 0x128d8ce0
sub ecx, ebx
mov dword [esp + 0x20], ecx
mov dword [0x129cc93c], ebx
jmp 0x128d8dcd
mov eax, dword [0x129cc944]
test eax, eax
jne 0x128d8d17
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x128d8d0b
mov eax, 4
jmp 0x128d8d17
cmp eax, 0x400
jle 0x128d8d17
mov eax, 0x400
add eax, edi
cmp ebx, eax
jge 0x128d8d23
mov dword [esp + 0xc], eax
jmp 0x128d8d29
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.12922bcf
mov ecx, dword [0x129cc93c]
mov esi, dword [0x129cc938]
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 [0x129cc93c]
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 [0x129cc938]
push eax
call fcn.12922a56
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
add esp, 8
mov dword [0x129cc938], ecx
mov dword [0x129cc93c], ebx
mov dword [0x129cc940], edx
mov edx, dword [0x129cc938]
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 0x129cd72c
call fcn.128f8920
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x4c]
add esp, 0x18
mov edx, dword [esp + 0x38]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x14]
push edx
mov ecx, 0x129cd048
mov esi, edi
call fcn.128e05e0
cmp eax, 0x64
je 0x128d8ac9
jmp 0x128d8e54
push eax
push str.QueryFromVisitTime_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x678], 1
call fcn.12908640
mov eax, dword [esp + 0x14]
test eax, eax
je 0x128d8e78
push eax
mov ecx, 0x129cd048
call fcn.128e0720
mov esi, dword [esp + 0x30]
push esi
push str.QueryFromVisitTime____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x678], 0
call fcn.12908640
lea ecx, [esp + 0x18]
mov dword [esp + 0x678], 0xffffffff
call fcn.12908640
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