Function at 0x128f9c30
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12989a58
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 0x128fa018
mov ebp, dword [esp + 0x48]
cmp ebp, edi
je 0x128fa018
cmp dword [esp + 0x4c], edi
je 0x128fa018
mov eax, dword [0x12993aec]
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.12907ea0
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.12907c40
lea eax, [esp + 0x30]
push eax
call fcn.128d9e00
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 4
call fcn.129087d0
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 3
call fcn.12908640
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 0x129cd72c
call fcn.128f8920
add esp, 0x20
mov ecx, 0x129cd048
call fcn.128e0380
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, 0x129cd048
call fcn.128e0530
cmp eax, edi
jne 0x128f9fbf
push 0x129cd044
lea ecx, [esp + 0x18]
call fcn.12907ea0
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.1290b5c0
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, 0x129cd048
call fcn.128e0550
test eax, eax
jne 0x128f9f79
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, 0x129cd048
call fcn.128e0580
mov edx, dword [esp + 0x44]
mov ecx, 0x129cd048
push edx
call fcn.128e05e0
cmp eax, 0x64
jne 0x128f9f93
mov eax, dword [esp + 0x44]
push 0
push eax
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x28]
call fcn.129088c0
mov ecx, dword [esp + 0x44]
push 1
push ecx
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x24]
call fcn.129088c0
mov edx, dword [esp + 0x44]
push 2
push edx
mov ecx, 0x129cd048
call fcn.128e0600
mov esi, eax
mov eax, dword [esp + 0x44]
push 3
push eax
mov ecx, 0x129cd048
mov edi, edx
call fcn.128e0600
push 0x129cd044
lea ecx, [esp + 0x2c]
mov ebx, eax
mov dword [esp + 0x34], edx
call fcn.12907ea0
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.1290b5c0
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, 0x129cd048
call fcn.128e0550
test eax, eax
jne 0x128f9ee5
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, 0x129cd048
call fcn.128e05e0
cmp eax, 0x64
jne 0x128f9ee5
mov edx, dword [esp + 0x48]
push 0
push edx
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x20]
call fcn.129088c0
mov eax, dword [esp + 0x48]
mov ecx, 0x129cd048
push eax
call fcn.128e05e0
cmp eax, 0x64
je 0x128f9eb6
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, 0x129cd048
call fcn.128e0720
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 0x129cd72c
mov dword [esp + 0x70], 0
call fcn.128f8920
add esp, 0x28
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 5
call fcn.12908640
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, 0x129d2fe0
call fcn.128ff690
mov eax, dword [esp + 0x44]
mov ecx, 0x129cd048
push eax
mov edi, 1
call fcn.128e05e0
cmp eax, 0x64
je 0x128f9dde
jmp 0x128f9f93
push eax
push str.QueryChromeDownHistory_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 3
call fcn.12908640
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, 0x129cd048
call fcn.128e0720
mov edx, dword [esp + 0x18]
mov ecx, 0x129cd048
push edx
call fcn.128e0700
push edi
push str.QueryChromeDownHistory____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call fcn.12908640
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 1
call fcn.12908640
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0
call fcn.12908640
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
call fcn.12908640
mov eax, edi
jmp 0x128fa01a
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