Function at 0x10020f30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10075195
mov eax, dword fs:[0]
push eax
sub esp, 0xec
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 dword [ebp - 0xa0], 0
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 4], 0
push str.Module.iBrowser.Chrome
mov dword [ebp - 0x9c], 0
call dword [sym.imp.isafemc.dll_long_int___cdecl_CreateDllObject_wchar_t_const___void___]
add esp, 8
test eax, eax
jne 0x100213d4
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
mov eax, dword [eax + 0x18]
push ecx
mov ecx, esi
call eax
test al, al
jne 0x10020ffa
cmp dword [ebp - 0x18], 8
jb 0x10020fda
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
jmp 0x100213cd
push str.DefaultCookies
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.10058b60
add esp, 4
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
je 0x1002105c
cmp dword [ebp - 0x30], 8
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x10021038
push dword [ebp - 0x44]
call edi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x10020fda
push dword [ebp - 0x2c]
call edi
jmp 0x10020fd7
xor eax, eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
mov byte [ebp - 4], 3
mov eax, dword [esi]
lea ecx, [ebp - 0x68]
mov eax, dword [eax + 0x10]
push ecx
mov ecx, esi
call eax
test al, al
je 0x100210b5
lea ecx, [ebp - 0x68]
call fcn.10054990
test al, al
je 0x100210b5
lea ecx, [ebp - 0x68]
call fcn.10001a00
lea ecx, [ebp - 0x44]
call fcn.10001a00
lea ecx, [ebp - 0x2c]
call fcn.10001a00
mov dword [ebp - 4], 0xffffffff
jmp 0x100213cd
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.10001a00
push 0x20
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x100210f3
push 0x7dc
mov ecx, eax
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.1002bd30
jmp 0x100210f5
xor eax, eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x4c], 0
call dword [sym.imp.sqlite3.dll_public:_void___thiscall_CppSQLite3DB::constructor_void_]
push 0xfde9
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 5
call fcn.10053260
add esp, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x10021137
mov eax, dword [eax]
push 1
push eax
lea ecx, [ebp - 0x50]
call dword [sym.imp.sqlite3.dll_public:_void___thiscall_CppSQLite3DB::open_char_const___bool_]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 5
call fcn.10001a90
push 0x3e8
lea ecx, [ebp - 0x50]
call dword [sym.imp.sqlite3.dll_public:_void___thiscall_CppSQLite3DB::setBusyTimeout_int_]
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0xa8], str.cookies
xor edi, edi
mov dword [ebp - 0xa4], edi
cmp edi, 1
jae 0x10021346
mov eax, dword [ebp + edi*4 - 0xa8]
push eax
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x80]
push str.select__from__s_limit_1
push eax
call fcn.10063730
add esp, 0xc
mov byte [ebp - 4], 8
cmp dword [ebp - 0x6c], 0x10
lea eax, [ebp - 0x80]
cmovae eax, dword [ebp - 0x80]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
call dword [sym.imp.sqlite3.dll_public:_class_CppSQLite3Statement___thiscall_CppSQLite3DB::compileStatement_char_const__]
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
call dword [sym.imp.sqlite3.dll_public:_class_CppSQLite3Query___thiscall_CppSQLite3Statement::execQuery_void_]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xa
call dword [sym.imp.sqlite3.dll_public:_bool___thiscall_CppSQLite3Query::eof_void_]
test al, al
jne 0x100212dd
push dword [ebp - 0xb0]
lea ecx, [ebp - 0xf8]
call fcn.10001a30
push ecx
lea edx, [ebp - 0xf8]
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xb
call fcn.10053380
add esp, 4
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
jb 0x10021241
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc8]
call fcn.10008e70
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x9c]
push eax
call fcn.1002c010
cmp dword [ebp - 0xb4], 8
jb 0x1002127b
push dword [ebp - 0xc8]
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0xcc], 8
mov dword [ebp - 0xb4], 7
mov dword [ebp - 0xb8], 0
mov word [ebp - 0xc8], ax
jb 0x100212ac
push dword [ebp - 0xe0]
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0xe4], 0x10
mov dword [ebp - 0xcc], 7
mov dword [ebp - 0xd0], 0
mov word [ebp - 0xe0], ax
jb 0x100212dd
push dword [ebp - 0xf8]
call ebx
add esp, 4
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 9
call dword [sym.imp.sqlite3.dll_public_virtual:_void___thiscall_CppSQLite3Query::destructor_void_]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 8
call dword [sym.imp.sqlite3.dll_public_virtual:_void___thiscall_CppSQLite3Statement::destructor_void_]
mov dword [ebp - 4], 7
jmp 0x1002132e
mov byte [ebp - 4], 5
cmp dword [ebp - 0x6c], 0x10
jb 0x10021340
push dword [ebp - 0x80]
call ebx
add esp, 4
inc edi
jmp 0x10021172
mov dword [ebp - 4], 4
jmp 0x10021368
lea ecx, [ebp - 0x50]
call dword [sym.imp.sqlite3.dll_public:_void___thiscall_CppSQLite3DB::close_void_]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call dword [sym.imp.sqlite3.dll_public_virtual:_void___thiscall_CppSQLite3DB::destructor_void_]
cmp dword [ebp - 0x30], 8
jb 0x1002138c
push dword [ebp - 0x44]
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x100213ae
push dword [ebp - 0x2c]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100213d4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 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