Function at 0x10020110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10075541
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
lea eax, [ebp - 0x78]
push eax
push str.Module.iBrowser.Firefox
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x78], 0
call dword [sym.imp.isafemc.dll_long_int___cdecl_CreateDllObject_wchar_t_const___void___]
add esp, 8
test eax, eax
jne 0x1002036b
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x5c], ax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x78]
lea edx, [ebp - 0x5c]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x10020351
push str.formhistory.sqlite
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x44]
call fcn.10058b60
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1002033b
push 0x20
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x100201f7
push 0x7d9
mov ecx, eax
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.1002bd30
mov esi, eax
mov dword [ebp - 0x7c], eax
jmp 0x100201fc
xor esi, esi
mov dword [ebp - 0x7c], esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
call dword [sym.imp.sqlite3.dll_public:_void___thiscall_CppSQLite3DB::constructor_void_]
push 0xfde9
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 3
call fcn.10053260
add esp, 4
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x10020232
mov eax, dword [eax]
push 1
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.sqlite3.dll_public:_void___thiscall_CppSQLite3DB::open_char_const___bool_]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x84], 0x10
jb 0x1002025a
push dword [ebp - 0x98]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 0x3e8
lea ecx, [ebp - 0x20]
call dword [sym.imp.sqlite3.dll_public:_void___thiscall_CppSQLite3DB::setBusyTimeout_int_]
push str.select__from_moz_formhistory_limit_1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.sqlite3.dll_public:_class_CppSQLite3Statement___thiscall_CppSQLite3DB::compileStatement_char_const__]
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
call dword [sym.imp.sqlite3.dll_public:_class_CppSQLite3Query___thiscall_CppSQLite3Statement::execQuery_void_]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 6
call dword [sym.imp.sqlite3.dll_public:_bool___thiscall_CppSQLite3Query::eof_void_]
test al, al
jne 0x100202e9
push str.moz_formhistory
lea ecx, [ebp - 0x98]
call fcn.10008e70
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.1002c010
lea ecx, [ebp - 0x98]
call fcn.10001a00
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
call dword [sym.imp.sqlite3.dll_public_virtual:_void___thiscall_CppSQLite3Query::destructor_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call dword [sym.imp.sqlite3.dll_public_virtual:_void___thiscall_CppSQLite3Statement::destructor_void_]
jmp 0x10020311
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call dword [sym.imp.sqlite3.dll_public:_void___thiscall_CppSQLite3DB::close_void_]
push esi
push 0x7d9
mov ecx, edi
call fcn.1001f0a0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.sqlite3.dll_public_virtual:_void___thiscall_CppSQLite3DB::destructor_void_]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x30], 8
jb 0x10020351
push dword [ebp - 0x44]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0x78]
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x48], 8
jb 0x1002036b
push dword [ebp - 0x5c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret