Function at 0x4f7d20
Capabilities:
Check if file exists
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cbaf
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x531304]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4f8168
push 0x7c
call fcn.00418aea
add esp, 4
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x8c], 0
je 0x4f7db1
lea ecx, [ebp - 0x90]
push ecx
call fcn.004eee80
add esp, 4
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.004ef190
mov dword [ebp - 0xc8], eax
jmp 0x4f7dbb
mov dword [ebp - 0xc8], 0
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0x88], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x60], eax
push 0
lea ecx, [ebp - 0x54]
call fcn.004ebad0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.004e7500
mov byte [ebp - 4], 2
push str._DEBUGINFO__LOCK__SET__WriteUserPrefs2345_in._n
call fcn.004e4170
add esp, 4
push 0x52624c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041625a
add esp, 8
mov dword [ebp - 0x3c], eax
push 2
push 0
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00416afd
add esp, 0xc
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004169d3
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x11
push ecx
call fcn.00415d52
add esp, 4
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x58]
add edx, 0x11
push edx
push 0
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00415fc0
add esp, 0xc
push 0
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00416afd
add esp, 0xc
mov edx, dword [ebp - 0x3c]
push edx
push 1
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0041651a
add esp, 0x10
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00416bf5
add esp, 4
cmp dword [ebp - 0x58], 0x64
jle 0x4f8104
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004f7070
add esp, 0xc
push 0x526250
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00401000
add esp, 8
test eax, eax
je 0x4f7f18
push 0x526254
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00401000
add esp, 8
push eax
lea ecx, [ebp - 0xb0]
call fcn.00401e20
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xc4]
or edx, 1
mov dword [ebp - 0xc4], edx
push 1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, dword [ebp - 0x60]
call fcn.004f3df0
movzx edx, al
test edx, edx
je 0x4f7f18
mov dword [ebp - 0xcc], 1
jmp 0x4f7f22
mov dword [ebp - 0xcc], 0
mov al, byte [ebp - 0xcc]
mov byte [ebp - 0x91], al
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0xc4]
and ecx, 1
je 0x4f7f52
and dword [ebp - 0xc4], 0xfffffffe
lea ecx, [ebp - 0xb0]
call fcn.00401260
movzx edx, byte [ebp - 0x91]
test edx, edx
je 0x4f8104
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb4], esp
push 4
call fcn.004eac00
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 4
push str.restore_on_startup
push 0x526258
lea ecx, [ebp - 0x54]
call fcn.004ee360
mov ecx, eax
call fcn.004ee360
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.004eb520
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb8], esp
mov edx, dword [ebp + 0x10]
push edx
call fcn.004edc90
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 5
push str.homepage
lea ecx, [ebp - 0x54]
call fcn.004ee360
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.004eb520
push str._DEBUGINFO__LOCK__SET__WriteUserPrefs2345_root._n
call fcn.004e4170
add esp, 4
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x38]
call fcn.004ea3e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x84]
call fcn.004012e0
push eax
call fcn.00415e20
add esp, 4
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
add eax, 0x11
push eax
call fcn.00415d52
add esp, 4
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x64]
add ecx, 0x11
push ecx
push 0
mov edx, dword [ebp - 0x68]
push edx
call fcn.00415fc0
add esp, 0xc
mov eax, dword [ebp - 0x64]
sub eax, 1
push eax
lea ecx, [ebp - 0x84]
call fcn.004012e0
push eax
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00415910
add esp, 0xc
mov edx, dword [ebp - 0x68]
push edx
call fcn.00415e20
add esp, 4
push eax
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004f6fa0
add esp, 0xc
mov dword [ebp - 0x58], eax
push 0x80
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x5262b4
mov eax, dword [ebp + 8]
push eax
call fcn.0041625a
add esp, 8
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
push 1
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x68]
push eax
call fcn.004167ae
add esp, 0x10
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00416bf5
add esp, 4
mov edx, dword [ebp - 0x68]
push edx
call fcn.00415c75
add esp, 4
push str._DEBUGINFO__LOCK__SET_LockGoogleChrome_json_ok_n
call fcn.004e4170
add esp, 4
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84]
call fcn.00401260
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xbc], ecx
cmp dword [ebp - 0xbc], 0
je 0x4f8137
push 1
mov ecx, dword [ebp - 0xbc]
call fcn.00413240
mov dword [ebp - 0xe0], eax
jmp 0x4f8141
mov dword [ebp - 0xe0], 0
mov edx, dword [ebp - 0x5c]
push edx
call fcn.00415c75
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00410630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004eb3f0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004158f4
mov esp, ebp
pop ebp
ret