Function at 0x124792b0
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12505c88
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 0x12479698
mov ebp, dword [esp + 0x48]
cmp ebp, edi
je 0x12479698
cmp dword [esp + 0x4c], edi
je 0x12479698
mov eax, dword [0x1250f854]
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.12486370
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.12486110
lea eax, [esp + 0x30]
push eax
call fcn.12459800
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 4
call fcn.12486ca0
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 3
call fcn.12486b10
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 0x12547fec
call fcn.12478010
add esp, 0x20
mov ecx, 0x12547908
call fcn.1245fb40
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, 0x12547908
call fcn.1245fcf0
cmp eax, edi
jne 0x1247963f
push 0x12547904
lea ecx, [esp + 0x18]
call fcn.12486370
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.12489a90
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, 0x12547908
call fcn.1245fd10
test eax, eax
jne 0x124795f9
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, 0x12547908
call fcn.1245fd40
mov edx, dword [esp + 0x44]
mov ecx, 0x12547908
push edx
call fcn.1245fda0
cmp eax, 0x64
jne 0x12479613
mov eax, dword [esp + 0x44]
push 0
push eax
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x28]
call fcn.12486d90
mov ecx, dword [esp + 0x44]
push 1
push ecx
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x24]
call fcn.12486d90
mov edx, dword [esp + 0x44]
push 2
push edx
mov ecx, 0x12547908
call fcn.1245fdc0
mov esi, eax
mov eax, dword [esp + 0x44]
push 3
push eax
mov ecx, 0x12547908
mov edi, edx
call fcn.1245fdc0
push 0x12547904
lea ecx, [esp + 0x2c]
mov ebx, eax
mov dword [esp + 0x34], edx
call fcn.12486370
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.12489a90
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, 0x12547908
call fcn.1245fd10
test eax, eax
jne 0x12479565
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, 0x12547908
call fcn.1245fda0
cmp eax, 0x64
jne 0x12479565
mov edx, dword [esp + 0x48]
push 0
push edx
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x20]
call fcn.12486d90
mov eax, dword [esp + 0x48]
mov ecx, 0x12547908
push eax
call fcn.1245fda0
cmp eax, 0x64
je 0x12479536
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, 0x12547908
call fcn.1245fee0
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 0x12547fec
mov dword [esp + 0x70], 0
call fcn.12478010
add esp, 0x28
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 5
call fcn.12486b10
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, 0x1254d8a0
call fcn.1247dda0
mov eax, dword [esp + 0x44]
mov ecx, 0x12547908
push eax
mov edi, 1
call fcn.1245fda0
cmp eax, 0x64
je 0x1247945e
jmp 0x12479613
push eax
push str.QueryChromeDownHistory_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 3
call fcn.12486b10
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, 0x12547908
call fcn.1245fee0
mov edx, dword [esp + 0x18]
mov ecx, 0x12547908
push edx
call fcn.1245fec0
push edi
push str.QueryChromeDownHistory____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call fcn.12486b10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 1
call fcn.12486b10
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0
call fcn.12486b10
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
call fcn.12486b10
mov eax, edi
jmp 0x1247969a
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