Function at 0x12458330
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x12504bd4
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 0x12458ac2
mov esi, dword [ebp + 0xc]
cmp esi, ecx
je 0x12458ac2
mov edi, dword [ebp + 0x10]
cmp edi, ecx
je 0x12458ac2
mov eax, dword [0x1250f854]
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 0x12547fec
call fcn.12478010
mov ecx, dword [0x1250f854]
add esp, 0x14
mov dword [esp + 0x10], ecx
push str.SELECT
lea ecx, [esp + 0x10]
mov byte [esp + 0x67c], 2
call fcn.12486210
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x67c], 3
call fcn.124877c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12486b10
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.12487760
push 0x12525a60
lea ecx, [esp + 0x10]
call fcn.12486210
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 4
push ecx
lea ecx, [esp + 0x14]
call fcn.124877c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12486b10
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push edx
call fcn.12487760
push 0x12525a60
lea ecx, [esp + 0x10]
call fcn.12486210
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x67c], 5
call fcn.124877c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12486b10
mov ecx, dword [esi + 0x10]
push ecx
lea ecx, [esp + 0x14]
call fcn.12487760
push str._FROM
lea ecx, [esp + 0x10]
call fcn.12486210
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x67c], 6
call fcn.124877c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12486b10
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.12487760
push str._WHERE__
lea ecx, [esp + 0x10]
call fcn.12486210
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 7
push ecx
lea ecx, [esp + 0x14]
call fcn.124877c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12486b10
cmp dword [ebx + 8], 0x16
jne 0x12458542
push str.visit_count___0__AND__
lea ecx, [esp + 0x10]
call fcn.12486210
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x67c], 8
call fcn.124877c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12486b10
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.12487760
push str.______AND__
lea ecx, [esp + 0x10]
call fcn.12486210
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 9
push ecx
lea ecx, [esp + 0x14]
call fcn.124877c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12486b10
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.12487760
push str.___1__AND__
lea ecx, [esp + 0x10]
call fcn.12486210
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x67c], 0xa
call fcn.124877c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12486b10
mov ecx, dword [esi + 0x10]
push ecx
lea ecx, [esp + 0x14]
call fcn.12487760
push str.___2_
lea ecx, [esp + 0x10]
call fcn.12486210
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x67c], 0xb
call fcn.124877c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x678], 2
call fcn.12486b10
mov eax, dword [esp + 0x10]
push eax
push str.QueryFromVisitTime_wstrSQL__s_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
mov edx, dword [esp + 0x24]
add esp, 0x14
lea ecx, [esp + 0x14]
push 0
push ecx
push 0xffffffffffffffff
push edx
push edi
mov ecx, 0x12547908
call fcn.1245fd10
test eax, eax
jne 0x12458a2a
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, 0x12547908
call fcn.1245fd40
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, 0x12547908
call fcn.1245fd40
xor esi, esi
lea eax, [esp + 0x24]
push esi
push esi
push esi
push eax
mov ecx, 0x1254cfa8
mov dword [esp + 0x54], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.124763c0
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, 0x12547908
call fcn.1245fda0
cmp eax, 0x64
jne 0x12458a44
mov dword [esp + 0x30], 1
mov edx, dword [esp + 0x14]
push 0
push edx
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x1c]
call fcn.12486d90
lea eax, [esp + 0x18]
push eax
call fcn.1245cb40
mov ecx, dword [esp + 0x18]
add esp, 4
push 1
push ecx
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x20]
call fcn.12486d90
mov edx, dword [esp + 0x14]
push 2
push edx
mov ecx, 0x12547908
call fcn.1245fdc0
mov edi, eax
mov dword [esp + 0x38], edx
cmp edi, esi
mov dword [esp + 0x34], edi
jne 0x12458725
cmp edx, dword [esp + 0x44]
je 0x12458a0a
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, 0x12547938
call fcn.1245ff90
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, 0x12547938
call fcn.12460200
test eax, eax
je 0x12458a06
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.12457930
mov edx, dword [esp + 0x28]
push 0x103
lea eax, [esp + 0x60]
push edx
push eax
call fcn.1249fa35
mov ecx, dword [esp + 0x38]
push 0x103
lea edx, [esp + 0x274]
push ecx
push edx
call fcn.1249fa35
add ebx, 0x250
push 0x103
lea eax, [esp + 0x488]
push ebx
push eax
call fcn.1249fa35
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x69c], ecx
mov ecx, dword [0x1254724c]
mov esi, ecx
add esp, 0x34
cmp esi, ecx
mov dword [esp + 0x66c], edx
mov dword [esp + 0x20], esi
jl 0x124589bd
lea ebx, [esi + 1]
test ebx, ebx
jne 0x12458831
mov eax, dword [0x12547248]
test eax, eax
je 0x12458820
push eax
mov dword [esp + 0x24], ecx
call fcn.1249f776
add esp, 4
mov dword [0x12547248], ebx
xor eax, eax
mov dword [0x12547250], eax
mov dword [0x1254724c], eax
jmp 0x124589bd
mov edx, dword [0x12547248]
test edx, edx
jne 0x1245887f
lea eax, [ebx + ebx*2]
shl eax, 4
add eax, ebx
lea edi, [ebx + eax*4]
shl edi, 3
push edi
call fcn.1249f8ef
mov edx, eax
mov ecx, edi
mov dword [0x12547248], 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 [0x12547250], ebx
mov dword [0x1254724c], ebx
jmp 0x124589bd
mov edi, dword [0x12547250]
cmp ebx, edi
jg 0x124588db
cmp ecx, ebx
jge 0x124588c8
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 [0x1254724c], ebx
jmp 0x124589bd
jle 0x124588d0
sub ecx, ebx
mov dword [esp + 0x20], ecx
mov dword [0x1254724c], ebx
jmp 0x124589bd
mov eax, dword [0x12547254]
test eax, eax
jne 0x12458907
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x124588fb
mov eax, 4
jmp 0x12458907
cmp eax, 0x400
jle 0x12458907
mov eax, 0x400
add eax, edi
cmp ebx, eax
jge 0x12458913
mov dword [esp + 0xc], eax
jmp 0x12458919
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.1249f8ef
mov ecx, dword [0x1254724c]
mov esi, dword [0x12547248]
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 [0x1254724c]
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 [0x12547248]
push eax
call fcn.1249f776
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
add esp, 8
mov dword [0x12547248], ecx
mov dword [0x1254724c], ebx
mov dword [0x12547250], edx
mov edx, dword [0x12547248]
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 0x12547fec
call fcn.12478010
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, 0x12547908
mov esi, edi
call fcn.1245fda0
cmp eax, 0x64
je 0x124586b9
jmp 0x12458a44
push eax
push str.QueryFromVisitTime_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x678], 1
call fcn.12486b10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x12458a68
push eax
mov ecx, 0x12547908
call fcn.1245fee0
mov esi, dword [esp + 0x30]
push esi
push str.QueryFromVisitTime____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x678], 0
call fcn.12486b10
lea ecx, [esp + 0x18]
mov dword [esp + 0x678], 0xffffffff
call fcn.12486b10
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