Function at 0x4a83c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x54aefe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [0x5ab980]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], 0x559c1c
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
push str.HKPRO.RD0
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 2
lea edi, [eax + 0x690]
push edi
push ecx
call fcn.00512b79
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 3
call fcn.00512a1d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 2
call fcn.005128e4
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edx
call ebp
mov eax, dword [esi + 0x3c]
cmp dword [eax + 0x48], 2
jne 0x4a8496
push str.NTUSER.DAT
lea ecx, [esp + 0x24]
push edi
push ecx
call fcn.00512b79
mov dword [esp + 0x14], 1
mov byte [esp + 0x68], 4
jmp 0x4a84b6
push str.USER.DAT
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00512b79
mov dword [esp + 0x14], 2
mov dword [esp + 0x68], 5
push eax
lea ecx, [esp + 0x14]
call fcn.00512a1d
mov al, byte [esp + 0x14]
mov dword [esp + 0x68], 4
test al, 2
je 0x4a84e3
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
and al, 0xfd
mov dword [esp + 0x14], eax
call fcn.005128e4
mov al, byte [esp + 0x14]
mov dword [esp + 0x68], 2
test al, 1
je 0x4a84fc
lea ecx, [esp + 0x20]
call fcn.005128e4
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push eax
call edi
mov ecx, dword [esp + 0x10]
push 0x80
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call ebp
mov edi, dword [esp + 0x74]
cmp eax, 0xffffffff
je 0x4a858d
push str.Profiles:_Backup
lea ecx, [esp + 0x24]
call fcn.00512952
lea ecx, [esp + 0x10]
lea edx, [esp + 0x74]
push ecx
push eax
push edx
mov byte [esp + 0x74], 6
call fcn.00512b13
mov eax, dword [eax]
push 0xfffffdf8
push eax
mov byte [esp + 0x70], 7
call fcn.004227e0
add esp, 8
lea ecx, [esp + 0x74]
mov byte [esp + 0x68], 6
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 2
call fcn.005128e4
lea eax, [esp + 0x10]
push edi
push eax
mov ecx, esi
call fcn.0049e260
mov dword [edi], ebx
push str.Profile_in_use:_MergeRegFileAB
lea ecx, [esp + 0x24]
call fcn.00512952
push str.TempIMP
lea ecx, [esp + 0x78]
push eax
push ecx
mov byte [esp + 0x74], 8
call fcn.00512b79
mov eax, dword [eax]
push 0xfffffdf4
push eax
mov byte [esp + 0x70], 9
call fcn.004227e0
add esp, 8
lea ecx, [esp + 0x74]
mov byte [esp + 0x68], 8
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 2
call fcn.005128e4
mov edx, dword [esi + 0x3c]
cmp dword [edx + 0x48], 2
jne 0x4a85f5
mov eax, dword [esp + 0x70]
add eax, 0x670
jmp 0x4a85ff
mov ecx, dword [esp + 0x70]
lea eax, [ecx + 0x664]
lea ebp, [esi + 0x3be8]
push eax
mov ecx, ebp
call fcn.00512a1d
mov edx, dword [esp + 0x78]
push ebx
push edx
lea eax, [esp + 0x20]
push edi
push eax
mov ecx, esi
call fcn.004a86a0
mov ecx, ebp
mov esi, eax
call fcn.0051286f
cmp dword [edi], ebx
je 0x4a8632
mov esi, 0xffffffe6
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 1
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], bl
call fcn.005128e4
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], 0xb
call fcn.005128e4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 0xa
call fcn.005128e4
lea ecx, [esp + 0x38]
mov dword [esp + 0x68], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x60]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0xc