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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50af2a
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x531304]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x259], 0
mov byte [ebp - 0x12c], 0
push 0x103
push 0
lea eax, [ebp - 0x12b]
push eax
call fcn.00415fc0
add esp, 0xc
mov dword [ebp - 0x258], 0
lea ecx, [ebp - 0x148]
call fcn.004011e0
mov dword [ebp - 4], 0
cmp dword [0x55b9f4], 0
jne 0x4fc018
push 0x524c3c
call fcn.004e4170
add esp, 4
mov dword [ebp - 0x268], 0xfffffffc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.00401260
mov eax, dword [ebp - 0x268]
jmp 0x4fc37e
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f9c00
add esp, 4
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
push edx
call fcn.00415e20
add esp, 4
test eax, eax
jne 0x4fc064
mov dword [ebp - 0x26c], 0xfffffffd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.00401260
mov eax, dword [ebp - 0x26c]
jmp 0x4fc37e
push 0x524c60
call fcn.004f49c0
add esp, 4
test eax, eax
je 0x4fc082
push 0x524c74
call fcn.004349e0
add esp, 4
mov eax, dword [ebp - 0x260]
push eax
push str._DEBUGINFO__LOCK__SET_LockBaiduBrowser_url___s_n
call fcn.004e4170
add esp, 8
push 0x104
push 0
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00415fc0
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x12c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.BaiduBaiduBrowseruser_datadefault
lea eax, [ebp - 0x12c]
push eax
call fcn.00413670
add esp, 8
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x148]
call fcn.004012a0
push 0x524ce4
lea ecx, [ebp - 0x148]
call fcn.0040bb70
lea ecx, [ebp - 0x148]
call fcn.004012e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4fc12b
lea ecx, [ebp - 0x148]
call fcn.004012e0
push eax
push str._DEBUGINFO__LOCK__SET_LockBaiduBrowser_path___s_n
call fcn.004e4170
add esp, 8
mov byte [ebp - 0x259], 1
movzx edx, byte [ebp - 0x259]
test edx, edx
jne 0x4fc15d
mov dword [ebp - 0x270], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.00401260
mov eax, dword [ebp - 0x270]
jmp 0x4fc37e
mov eax, dword [ebp - 0x260]
push eax
call fcn.004f5130
add esp, 4
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004f4b10
add esp, 4
test eax, eax
jne 0x4fc1b7
push 0x80
lea ecx, [ebp - 0x148]
call fcn.004012e0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x148]
call fcn.004012e0
push eax
call fcn.004f59f0
add esp, 8
mov dword [ebp - 0x258], eax
mov byte [ebp - 0x254], 0
push 0x103
push 0
lea eax, [ebp - 0x253]
push eax
call fcn.00415fc0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00413270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.settings
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x12c]
push eax
call fcn.00434ca0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004132c0
test eax, eax
jbe 0x4fc333
mov dword [ebp - 0x264], 0
jmp 0x4fc230
mov ecx, dword [ebp - 0x264]
add ecx, 1
mov dword [ebp - 0x264], ecx
lea ecx, [ebp - 0x1c]
call fcn.004132c0
cmp dword [ebp - 0x264], eax
jae 0x4fc333
mov edx, dword [ebp - 0x264]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00413300
push eax
call fcn.004f4b10
add esp, 4
test eax, eax
jne 0x4fc32e
push 0x104
push 0
lea eax, [ebp - 0x254]
push eax
call fcn.00415fc0
add esp, 0xc
mov ecx, dword [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00413300
push eax
push 0x104
lea edx, [ebp - 0x254]
push edx
call fcn.004188fa
add esp, 0xc
push str._settingsuser_setting.db
push 0x104
lea eax, [ebp - 0x254]
push eax
call fcn.004189df
add esp, 0xc
lea ecx, [ebp - 0x254]
push ecx
push 0x524d5c
call fcn.004e4170
add esp, 8
lea edx, [ebp - 0x254]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4fc32e
push str.default_
lea eax, [ebp - 0x254]
push eax
call fcn.00401000
add esp, 8
test eax, eax
jne 0x4fc32e
push 0x80
lea ecx, [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x254]
push eax
call fcn.004f59f0
add esp, 8
mov dword [ebp - 0x258], eax
push 1
lea ecx, [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x4fc221
mov edx, dword [ebp - 0x20]
push edx
call fcn.00415c75
add esp, 4
mov eax, dword [ebp - 0x260]
push eax
call fcn.00415c75
add esp, 4
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x274], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004132a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.00401260
mov eax, dword [ebp - 0x274]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004158f4
mov esp, ebp
pop ebp
ret 4