Function at 0x12448f90
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x124d4b18
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
push edi
xor edi, edi
cmp esi, edi
je 0x12449378
mov ebp, dword [esp + 0x48]
cmp ebp, edi
je 0x12449378
cmp dword [esp + 0x4c], edi
je 0x12449378
mov eax, dword [0x124de7fc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x48]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x40], 2
call fcn.12456050
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x48], 3
call fcn.12455df0
lea eax, [esp + 0x30]
push eax
call fcn.124297c0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 4
call fcn.12456980
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 3
call fcn.124567f0
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
push str.QueryChromeDownHistory________wstrFilePath:__s__dwType:__d_iTime___I64u_
push str.History
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x20
mov ecx, 0x12516288
call fcn.1242f850
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, 0x12516288
call fcn.1242fa00
cmp eax, edi
jne 0x1244931f
push 0x12516280
lea ecx, [esp + 0x18]
call fcn.12456050
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
mov ebx, dword [esi + 0x10]
push eax
push eax
push ecx
push edx
push edx
mov edx, dword [esi + 8]
push eax
push eax
mov eax, dword [esi + 0x18]
push ebx
push edx
mov edx, dword [esi + 0x1c]
push ecx
mov ecx, dword [esi + 0x14]
push eax
mov eax, dword [esi + 0x20]
push ecx
push ebx
push edx
push eax
lea ecx, [esp + 0x50]
push str.SELECT_T2._s_T1._s_T1._s_T1._s__t_t_t_tFROM__s_as_T1___s_as_T2__t_t_t_tWHERE_T1._s__1_AND_T1._s____8__AND_T1._s__T2._s_AND__t_t_t_tT2._s___SELECT_MAX__s__FROM__s_as_T3_WHERE_T2._s__T3._s_
push ecx
mov byte [esp + 0x80], 5
call fcn.12459770
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
add esp, 0x44
lea edx, [esp + 0x44]
push edi
push edx
push 0xffffffffffffffff
push eax
push ecx
mov ecx, 0x12516288
call fcn.1242fa20
test eax, eax
jne 0x124492d9
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x44]
push edx
push eax
push 8
push ecx
mov ecx, 0x12516288
call fcn.1242fa50
mov edx, dword [esp + 0x44]
mov ecx, 0x12516288
push edx
call fcn.1242fab0
cmp eax, 0x64
jne 0x124492f3
mov eax, dword [esp + 0x44]
push 0
push eax
mov ecx, 0x12516288
call fcn.1242fb00
push eax
lea ecx, [esp + 0x28]
call fcn.12456a70
mov ecx, dword [esp + 0x44]
push 1
push ecx
mov ecx, 0x12516288
call fcn.1242fb00
push eax
lea ecx, [esp + 0x24]
call fcn.12456a70
mov edx, dword [esp + 0x44]
push 2
push edx
mov ecx, 0x12516288
call fcn.1242fad0
mov esi, eax
mov eax, dword [esp + 0x44]
push 3
push eax
mov ecx, 0x12516288
mov edi, edx
call fcn.1242fad0
push 0x12516280
lea ecx, [esp + 0x2c]
mov ebx, eax
mov dword [esp + 0x34], edx
call fcn.12456050
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
mov byte [esp + 0x3c], 6
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
push eax
push ecx
push edx
push ebx
push eax
mov eax, dword [esp + 0x60]
mov edx, dword [eax + 4]
lea eax, [esp + 0x3c]
push edx
push ecx
push str.SELECT__s_FROM__s_WHERE__s____I64u_AND__s_____ORDER_BY__s_DESC_LIMIT_1
push eax
call fcn.12459770
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
add esp, 0x24
lea ecx, [esp + 0x48]
push 0
push ecx
push 0xffffffffffffffff
push edx
push eax
mov ecx, 0x12516288
call fcn.1242fa20
test eax, eax
jne 0x12449245
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, 0x12516288
call fcn.1242fab0
cmp eax, 0x64
jne 0x12449245
mov edx, dword [esp + 0x48]
push 0
push edx
mov ecx, 0x12516288
call fcn.1242fb00
push eax
lea ecx, [esp + 0x20]
call fcn.12456a70
mov eax, dword [esp + 0x48]
mov ecx, 0x12516288
push eax
call fcn.1242fab0
cmp eax, 0x64
je 0x12449216
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, 0x12516288
call fcn.1242fbf0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push edi
push esi
push 2
push str.QueryChromeDownHistory__Add_Type__d__iTime__I64u__wstrUrl__s___wstrTargetPath__s__wstrTitle__s_
push str.History
push 0xffffffffffffffff
push 0x1251696c
mov dword [esp + 0x70], 0
call fcn.12447cf0
add esp, 0x28
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 5
call fcn.124567f0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea eax, [ebp + 0x250]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
push edi
push esi
push 2
mov ecx, 0x1251c220
call fcn.1244da80
mov eax, dword [esp + 0x44]
mov ecx, 0x12516288
push eax
mov edi, 1
call fcn.1242fab0
cmp eax, 0x64
je 0x1244913e
jmp 0x124492f3
push eax
push str.QueryChromeDownHistory_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 3
call fcn.124567f0
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, 0x12516288
call fcn.1242fbf0
mov edx, dword [esp + 0x18]
mov ecx, 0x12516288
push edx
call fcn.1242fbd0
push edi
push str.QueryChromeDownHistory____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call fcn.124567f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 1
call fcn.124567f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0
call fcn.124567f0
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
call fcn.124567f0
mov eax, edi
jmp 0x1244937a
xor eax, eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 0xc