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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12505cd0
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [esp + 0x34]
push edi
xor edi, edi
cmp esi, edi
je 0x12479a29
mov ebx, dword [esp + 0x3c]
cmp ebx, edi
je 0x12479a29
mov eax, dword [0x1250f854]
mov dword [esp + 0x10], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x48]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x34], 2
call fcn.12486370
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx + 8]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push str.QueryFireFoxDownHistory________wstrFilePath:__s__dwType:__d_nDownLastTime___I64u_
push str.History
push 0xffffffffffffffff
push 0x12547fec
mov byte [esp + 0x50], 3
call fcn.12478010
add esp, 0x20
mov ecx, 0x12547908
call fcn.1245fb40
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, 0x12547908
call fcn.1245fcf0
cmp eax, edi
jne 0x124799be
push 0x12547904
lea ecx, [esp + 0x10]
call fcn.12486370
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 8]
push eax
push ecx
push edx
mov edx, dword [esi + 0x18]
mov byte [esp + 0x3c], 4
push edx
push eax
mov eax, dword [esi + 0x20]
push ecx
push eax
lea ecx, [esp + 0x28]
push str.SELECT__s__s__s_FROM__s_WHERE__s__0_AND__s______AND__s____8
push ecx
call fcn.12489a90
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
add esp, 0x24
lea edx, [esp + 0x38]
push edi
push edx
push 0xffffffffffffffff
push eax
push ecx
mov ecx, 0x12547908
call fcn.1245fd10
cmp eax, edi
jne 0x12479978
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x28]
mov ecx, dword [esp + 0x38]
push edx
push eax
push 8
push ecx
mov ecx, 0x12547908
call fcn.1245fd40
mov edx, dword [esp + 0x38]
mov ecx, 0x12547908
push edx
call fcn.1245fda0
cmp eax, 0x64
jne 0x12479992
push ebp
jmp 0x12479802
xor edi, edi
mov eax, dword [esp + 0x3c]
push edi
push eax
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x20]
call fcn.12486d90
mov ecx, dword [esp + 0x3c]
push 1
push ecx
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x1c]
call fcn.12486d90
mov edx, dword [esp + 0x3c]
push 2
push edx
mov ecx, 0x12547908
call fcn.1245fdc0
push 0x12547904
lea ecx, [esp + 0x24]
mov edi, eax
mov ebp, edx
call fcn.12486370
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x18]
push eax
push ecx
push ebp
push edi
push eax
mov eax, dword [esi + 0x1c]
push edx
push eax
lea ecx, [esp + 0x3c]
push str.SELECT__s_FROM__s_WHERE__s____I64u_AND__s__1_ORDER_BY__s_DESC_LIMIT_1
push ecx
mov byte [esp + 0x58], 5
call fcn.12489a90
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
add esp, 0x24
lea edx, [esp + 0x40]
push 0
push edx
push 0xffffffffffffffff
push eax
push ecx
mov ecx, 0x12547908
call fcn.1245fd10
test eax, eax
jne 0x124798e8
mov edx, dword [esp + 0x40]
mov ecx, 0x12547908
push edx
call fcn.1245fda0
cmp eax, 0x64
jne 0x124798e8
mov eax, dword [esp + 0x40]
push 0
push eax
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x2c]
call fcn.12486d90
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, 0x12547908
call fcn.1245fda0
cmp eax, 0x64
je 0x124798b9
mov edx, dword [esp + 0x40]
mov ecx, 0x12547908
push edx
call fcn.1245fee0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
lea ecx, [ebx + 0x250]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push ebp
push edi
push 2
mov ecx, 0x1254d8a0
mov dword [esp + 0x5c], 0
call fcn.1247dda0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push ebp
push edi
push 2
push str.QueryFireFoxDownHistory__Add_Type__d__nEndTime__I64u__wstrUrl__s___wstrTargetPath__s_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x24
lea ecx, [esp + 0x20]
mov edi, 1
mov byte [esp + 0x34], 4
call fcn.12486b10
mov eax, dword [esp + 0x3c]
mov ecx, 0x12547908
push eax
call fcn.1245fda0
cmp eax, 0x64
je 0x12479800
pop ebp
jmp 0x12479992
push eax
push str.QueryFireFoxDownHistory_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 3
call fcn.12486b10
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, 0x12547908
call fcn.1245fee0
mov edx, dword [esp + 0x10]
mov ecx, 0x12547908
push edx
call fcn.1245fec0
push edi
push str.QueryFireFoxDownHistory____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 2
call fcn.12486b10
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 1
call fcn.12486b10
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.12486b10
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.12486b10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov ecx, dword [esp + 0x28]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8