Function at 0x1001f8b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100755f9
mov eax, dword fs:[0]
push eax
sub esp, 0x37c
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 eax, ecx
mov dword [ebp - 0x360], eax
mov dword [ebp - 0x364], eax
lea eax, [ebp - 0x354]
push eax
push str.Module.iBrowser.Firefox
mov dword [ebp - 0x354], 0
call dword [sym.imp.isafemc.dll_long_int___cdecl_CreateDllObject_wchar_t_const___void___]
add esp, 8
test eax, eax
jne 0x1001fe65
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], eax
mov word [ebp - 0x8c], ax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x354]
lea edx, [ebp - 0x8c]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x1001fe43
push 0x20
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x1001f97e
push 0x7d7
mov ecx, eax
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.1002bd30
mov dword [ebp - 0x358], eax
jmp 0x1001f988
mov dword [ebp - 0x358], 0
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
movlpd qword [ebp - 0x28], xmm0
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push 2
push ebx
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x350]
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xbc], ebx
call fcn.1005f380
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 3
call fcn.1005f780
mov byte [ebp - 4], 4
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp - 0x4c], ebx
je 0x1001fab6
lea ecx, [ecx]
push str.Cache
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x74]
call fcn.10058b60
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1001fa3d
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x20]
call fcn.1000f0e0
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x60], 8
jb 0x1001fa4f
push dword [ebp - 0x74]
call edi
add esp, 4
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x350]
call fcn.1005f780
mov esi, eax
lea eax, [ebp - 0x5c]
cmp eax, esi
je 0x1001fa95
cmp dword [ebp - 0x48], 8
jb 0x1001fa78
push dword [ebp - 0x5c]
call edi
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
call fcn.10001c40
cmp dword [ebp - 0x90], 8
jb 0x1001faa9
push dword [ebp - 0xa4]
call edi
add esp, 4
cmp dword [ebp - 0x4c], 0
jne 0x1001fa00
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x48], 8
jb 0x1001fac8
push dword [ebp - 0x5c]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
cmp dword [ebp - 0x20], ebx
je 0x1001faf1
push esi
lea ecx, [ebp - 0x38]
call fcn.100126d0
add esi, 0x18
cmp esi, ebx
jne 0x1001fae1
mov ecx, dword [ebp - 0x358]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
push dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.1002be10
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1001fb74
mov eax, dword [ebp - 0x40]
mov esi, ecx
cmp ecx, eax
je 0x1001fb6e
cmp dword [esi + 0x14], 8
jb 0x1001fb51
push dword [esi]
call edi
mov eax, dword [ebp - 0x40]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x18
cmp esi, eax
jne 0x1001fb41
mov ecx, dword [ebp - 0x44]
push ecx
call edi
add esp, 4
lea ecx, [ebp - 0x350]
call fcn.1005f6d0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1001fbc0
mov esi, eax
cmp eax, ebx
je 0x1001fbba
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x1001fb9d
push dword [esi]
call edi
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, ebx
jne 0x1001fb90
mov eax, dword [ebp - 0x20]
push eax
call edi
add esp, 4
push str.places.sqlite
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0
call fcn.10058b60
add esp, 4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1001fe17
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 - 0x74]
lea ecx, [ebp - 0x37c]
mov byte [ebp - 4], 0xa
call fcn.10053260
add esp, 4
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x1001fc2f
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], 0xa
cmp dword [ebp - 0x368], 0x10
jb 0x1001fc53
push dword [ebp - 0x37c]
call edi
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_historyvisits_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 - 0xa4]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
call dword [sym.imp.sqlite3.dll_public:_class_CppSQLite3Query___thiscall_CppSQLite3Statement::execQuery_void_]
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xd
call dword [sym.imp.sqlite3.dll_public:_bool___thiscall_CppSQLite3Query::eof_void_]
test al, al
jne 0x1001fdba
push 0x11
xor eax, eax
push str.moz_historyvisits
lea ecx, [ebp - 0x37c]
mov dword [ebp - 0x368], 7
mov dword [ebp - 0x36c], 0
mov word [ebp - 0x37c], ax
call fcn.10003de0
push 0x40
mov byte [ebp - 4], 0xe
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
mov ecx, eax
add esp, 4
mov dword [ebp - 0x380], ecx
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x1001fd39
mov edx, dword [ebp - 0x358]
mov eax, dword [edx + 0x10]
sub eax, dword [edx + 0xc]
push dword [edx + 8]
sar eax, 2
inc eax
push 0
push eax
lea eax, [ebp - 0x37c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.1002b830
mov ebx, eax
jmp 0x1001fd3b
xor ebx, ebx
mov esi, dword [ebp - 0x358]
mov byte [ebp - 4], 0xe
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x35c]
mov dword [ebp - 0x35c], ebx
cmp ecx, eax
jae 0x1001fd8b
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 0x35c]
cmp ecx, edx
ja 0x1001fd8b
mov ebx, edx
sub ebx, ecx
sar ebx, 2
cmp eax, dword [esi + 0x14]
jne 0x1001fd7a
push ecx
lea ecx, [esi + 0xc]
call fcn.10008fc0
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
test ecx, ecx
je 0x1001fda2
mov eax, dword [eax + ebx*4]
mov dword [ecx], eax
jmp 0x1001fda2
cmp eax, dword [esi + 0x14]
jne 0x1001fd99
push ecx
lea ecx, [esi + 0xc]
call fcn.10008fc0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1001fda2
mov dword [eax], ebx
add dword [esi + 0x10], 4
cmp dword [ebp - 0x368], 8
jb 0x1001fdba
push dword [ebp - 0x37c]
call edi
add esp, 4
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xc
call dword [sym.imp.sqlite3.dll_public_virtual:_void___thiscall_CppSQLite3Query::destructor_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call dword [sym.imp.sqlite3.dll_public_virtual:_void___thiscall_CppSQLite3Statement::destructor_void_]
mov esi, dword [ebp - 0x360]
mov dword [ebp - 4], 9
jmp 0x1001fdff
lea ecx, [ebp - 0x20]
call dword [sym.imp.sqlite3.dll_public:_void___thiscall_CppSQLite3DB::close_void_]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call dword [sym.imp.sqlite3.dll_public_virtual:_void___thiscall_CppSQLite3DB::destructor_void_]
jmp 0x1001fe1d
mov esi, dword [ebp - 0x360]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x60], 8
jb 0x1001fe2f
push dword [ebp - 0x74]
call edi
add esp, 4
push dword [ebp - 0x358]
mov ecx, esi
push 0x7d7
call fcn.1001f0a0
jmp 0x1001fe49
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov ecx, dword [ebp - 0x354]
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x78], 8
jb 0x1001fe65
push dword [ebp - 0x8c]
call edi
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