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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x124d4f98
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x1244cbfe
mov edi, dword [esp + 0x38]
cmp edi, ebx
je 0x1244cbfe
mov ebp, dword [esp + 0x3c]
cmp ebp, ebx
je 0x1244cbfe
cmp dword [esp + 0x40], ebx
je 0x1244cbfe
cmp dword [esp + 0x44], ebx
je 0x1244cbfe
mov eax, dword [0x124de7fc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
push ebp
push edi
push str.QueryChromeDownHistory________historyPath:__s__File:__s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
mov byte [esp + 0x44], 3
call fcn.12447cf0
add esp, 0x18
lea eax, [esp + 0x20]
mov ecx, 0x12516288
push eax
push edi
call fcn.1242fa00
cmp eax, ebx
jne 0x1244cb2d
push 0x12516280
lea ecx, [esp + 0x14]
call fcn.12456050
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
push eax
push eax
push eax
push ecx
push edx
push edx
mov edx, dword [esi + 0x1c]
push eax
push eax
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x18]
mov byte [esp + 0x50], 4
push ecx
push edx
push eax
lea ecx, [esp + 0x40]
push str.SELECT_T2._s_T1._s_T1.current_path_FROM__s_as_T1___s_as_T2_WHERE_T1._s__T2._s_AND__t_t_t_t_t_t_tT2._s___SELECT_MAX__s__FROM__s_as_T3_WHERE_T2._s__T3._s___t_t_t_t_t_t_tORDER_BY_T1._s_DESC
push ecx
call fcn.12459770
mov edx, dword [esp + 0x48]
add esp, 0x38
push edx
push str.QueryChromeDownHistory_1_SQL:__s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
add esp, 0x14
lea eax, [esp + 0x38]
push ebx
push eax
push 0xffffffffffffffff
push ecx
push edx
mov ecx, 0x12516288
call fcn.1242fa20
cmp eax, ebx
jne 0x1244cae1
push ebp
mov edi, 1
call fcn.1246f510
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x38]
mov ecx, 0x12516288
push eax
call fcn.1242fab0
cmp eax, 0x64
jne 0x1244cafb
mov ecx, dword [esp + 0x38]
push ebx
push ecx
mov ecx, 0x12516288
call fcn.1242fb00
push eax
lea ecx, [esp + 0x38]
call fcn.12456a70
mov edx, dword [esp + 0x38]
push 1
push edx
mov ecx, 0x12516288
call fcn.1242fb00
push eax
lea ecx, [esp + 0x40]
call fcn.12456a70
mov eax, dword [esp + 0x38]
push 2
push eax
mov ecx, 0x12516288
call fcn.1242fb00
push eax
lea ecx, [esp + 0x18]
call fcn.12456a70
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push str.QueryChromeDownHistory_2__r_n_Cur__s___r_nTarPath:__s___r_n_Url:__s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
mov ecx, dword [esp + 0x58]
push ecx
call fcn.1246f510
add esp, 0x20
cmp esi, eax
jne 0x1244ca59
mov edx, dword [esp + 0x3c]
push esi
push edx
push ebp
call fcn.1246f723
add esp, 0xc
test eax, eax
je 0x1244cad7
mov eax, dword [esp + 0x3c]
cmp dword [eax - 8], ebx
jne 0x1244ca75
mov ecx, dword [esp + 0x14]
push esi
push ecx
push ebp
call fcn.1246f723
add esp, 0xc
test eax, eax
je 0x1244cad7
cmp edi, ebx
je 0x1244cabb
mov edx, dword [esp + 0x3c]
cmp dword [edx - 8], ebx
jne 0x1244cabb
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
jne 0x1244cabb
mov ecx, dword [esp + 0x34]
cmp dword [ecx - 8], ebx
jle 0x1244cabb
lea edx, [esp + 0x34]
lea ecx, [esp + 0x1c]
push edx
call fcn.12456980
push str.QueryChromeDownHistory_3_MayBeUrl
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x10
mov eax, dword [esp + 0x38]
mov ecx, 0x12516288
push eax
xor edi, edi
call fcn.1242fab0
cmp eax, 0x64
je 0x1244c9c0
jmp 0x1244cafb
mov dword [esp + 0x18], 1
jmp 0x1244cafb
push eax
push str.QueryChromeDownHistory_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 3
call fcn.124567f0
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, 0x12516288
call fcn.1242fbf0
mov edx, dword [esp + 0x20]
mov ecx, 0x12516288
push edx
call fcn.1242fbd0
cmp dword [esp + 0x18], ebx
jne 0x1244cb6a
mov eax, dword [esp + 0x1c]
cmp dword [eax - 8], ebx
jle 0x1244cba2
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call fcn.12456980
mov edx, dword [esp + 0x34]
push edx
push str.QueryChromeDownHistory_4___s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x14
mov dword [esp + 0x18], 1
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x44]
mov edx, dword [esi - 8]
cmp edx, eax
jb 0x1244cb7c
lea edx, [eax - 1]
mov edi, dword [esp + 0x40]
lea ecx, [eax + eax]
mov ebp, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
push edx
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x48]
push eax
call fcn.1246f6a5
add esp, 0xc
mov esi, dword [esp + 0x18]
push esi
push str.QueryChromeDownHistory____Ret:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call fcn.124567f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 1
call fcn.124567f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.124567f0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], 0xffffffff
call fcn.124567f0
mov eax, esi
jmp 0x1244cc00
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x18