Function at 0x10021400
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10075235
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
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 0x100218ae
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 0x100214ca
cmp dword [ebp - 0x18], 8
jb 0x100214aa
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 0x100218a7
push str.DefaultWeb_Data
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 0x1002152c
cmp dword [ebp - 0x30], 8
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x10021508
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 0x100214aa
push dword [ebp - 0x2c]
call edi
jmp 0x100214a7
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 0x10021585
lea ecx, [ebp - 0x68]
call fcn.10054990
test al, al
je 0x10021585
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 0x100218a7
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 0x100215c3
push 0x7dd
mov ecx, eax
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.1002bd30
jmp 0x100215c5
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 - 0xfc]
mov byte [ebp - 4], 5
call fcn.10053260
add esp, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x10021607
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 - 0xfc]
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 - 0xb4], str.autofill
mov dword [ebp - 0xb0], str.autofill_dates
xor edi, edi
mov dword [ebp - 0xa4], edi
cmp edi, 2
jae 0x10021820
mov eax, dword [ebp + edi*4 - 0xb4]
push eax
mov dword [ebp - 0xa8], 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 0x100217b7
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xfc]
call fcn.10001a30
push ecx
lea edx, [ebp - 0xfc]
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0xb
call fcn.10053380
add esp, 4
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
jb 0x1002171b
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xcc]
call fcn.10008e70
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x9c]
push eax
call fcn.1002c010
cmp dword [ebp - 0xb8], 8
jb 0x10021755
push dword [ebp - 0xcc]
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0xd0], 8
mov dword [ebp - 0xb8], 7
mov dword [ebp - 0xbc], 0
mov word [ebp - 0xcc], ax
jb 0x10021786
push dword [ebp - 0xe4]
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0xe8], 0x10
mov dword [ebp - 0xd0], 7
mov dword [ebp - 0xd4], 0
mov word [ebp - 0xe4], ax
jb 0x100217b7
push dword [ebp - 0xfc]
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 0x10021808
mov byte [ebp - 4], 5
cmp dword [ebp - 0x6c], 0x10
jb 0x1002181a
push dword [ebp - 0x80]
call ebx
add esp, 4
inc edi
jmp 0x1002164c
mov dword [ebp - 4], 4
jmp 0x10021842
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 0x10021866
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 0x10021888
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 0x100218ae
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