Function at 0x445d6a
Capabilities:
Delete file
Reference sql statements

Disassembly:
push 0x58
mov eax, 0x4dff3a
call fcn.004a941b
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x1c], ebx
jne 0x445dad
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00445cdd
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x445d97
mov eax, dword [eax]
push ecx
xor edx, edx
mov ecx, eax
call fcn.0042e9fd
pop ecx
lea ecx, [ebp - 0x28]
mov dword [edi + 0x1c], eax
call fcn.00403170
mov eax, dword [edi + 0x1c]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], bl
call fcn.0042edea
lea esi, [edi + 4]
push 0xfde9
mov edx, esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.00428ed3
pop ecx
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x445de4
mov eax, dword [eax]
push ebx
lea edx, [edi + 0x20]
push 0x8006
mov ecx, eax
call fcn.004980d9
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.00404b40
test ebx, ebx
je 0x445e83
mov ecx, dword [0x513098]
and ecx, 3
cmp cl, 3
jne 0x445e63
and dword [ebp - 0x1c], 0
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
call fcn.004031c0
mov byte [ebp - 0x14], 0
push str.Cant_open_or_create_database:__i
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00404c40
lea eax, [ebp - 0x2c]
push eax
push ebx
push eax
push 0x3e
push str.Utils::CBrowserHistory::OpenDb
push 3
call fcn.00428590
add esp, 0x18
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403170
cmp byte [ebp + 8], 0
je 0x445f8f
cmp dword [esi + 0x14], 8
jb 0x445e75
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
jmp 0x445f88
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
cmp dword [esi + 0x14], 8
jb 0x445e95
mov eax, dword [esi]
jmp 0x445e97
mov eax, esi
lea ecx, [ebp - 0x50]
push ecx
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x445ecc
mov eax, dword [ebp - 0x30]
or eax, dword [ebp - 0x34]
jne 0x445ecc
mov ecx, edi
call fcn.00445fba
test al, al
jne 0x445f8f
mov ecx, edi
call fcn.00445f9f
jmp 0x445f8f
push str.SELECT_name_FROM_sqlite_master_WHERE_typetable_AND_namehistory
lea ecx, [ebp - 0x28]
call fcn.00404a40
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0x20]
push eax
lea edx, [ebp - 0x28]
call fcn.004514ac
pop ecx
test eax, eax
lea ecx, [ebp - 0x64]
setne bl
call fcn.00436462
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00404b40
test bl, bl
je 0x445f8f
mov eax, dword [0x513098]
and eax, 3
xor ebx, ebx
cmp al, 3
jne 0x445f6b
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 7
call fcn.004031c0
mov byte [ebp - 0x30], bl
push str.Invalid_database_file:__i
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00404c40
lea eax, [ebp - 0x48]
push eax
push ebx
push eax
push 0x57
push str.Utils::CBrowserHistory::OpenDb
push 3
call fcn.00428590
add esp, 0x18
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00403170
mov ecx, edi
call fcn.00445f9f
cmp byte [ebp + 8], 0
je 0x445f8f
cmp dword [esi + 0x14], 8
jb 0x445f80
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
mov ecx, edi
call fcn.00445d6a
lea ecx, [ebp - 0x58]
call fcn.0042ee11
call fcn.004a93ca
ret 4