Function at 0x4a73c0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x54ae0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c4
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor edi, edi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x20], edi
call fcn.004861d0
mov eax, dword [0x5ab980]
mov dword [esp + 0x1dc], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x3c], 0x559c1c
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1e4]
lea eax, [esp + 0xcc]
push 0x104
mov ebx, 5
push eax
push ecx
mov byte [esp + 0x1e8], bl
mov dword [esp + 0x40], edi
call fcn.00421160
add esp, 0xc
cmp eax, edi
jge 0x4a751d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x1e8]
lea ecx, [esp + 0x24]
mov byte [esp + 0x1dc], 4
mov dword [edx], eax
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x1dc], 3
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x1dc], 2
call fcn.005128e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x1dc], 1
call fcn.005128e4
lea ecx, [esp + 0x58]
mov byte [esp + 0x1dc], 7
call fcn.005128e4
lea ecx, [esp + 0x54]
mov byte [esp + 0x1dc], 6
call fcn.005128e4
lea ecx, [esp + 0x50]
mov byte [esp + 0x1dc], 0
call fcn.005128e4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00486260
mov eax, 0xfffffff6
jmp 0x4a7f22
lea eax, [esp + 0xcc]
lea ecx, [esp + 0x28]
push eax
call fcn.00512952
push str.USERDEF.TMP
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x1e8], 8
call fcn.00512b79
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1e0], 9
call fcn.00512a1d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1dc], 8
call fcn.005128e4
lea ecx, [esp + 0x28]
mov byte [esp + 0x1dc], bl
call fcn.005128e4
lea edx, [esp + 0xcc]
lea ecx, [esp + 0x2c]
push edx
call fcn.00512952
push str.HKPRO.RD0
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x1e4], 0xa
push eax
call fcn.00512b79
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1e0], 0xb
call fcn.00512a1d
lea ecx, [esp + 0x28]
mov byte [esp + 0x1dc], 0xa
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1dc], bl
call fcn.005128e4
mov ecx, dword [ebp + 0x3c]
mov esi, 0xe
cmp dword [ecx + 0x48], 2
jne 0x4a7629
lea edx, [esp + 0xcc]
lea ecx, [esp + 0x18]
push edx
call fcn.00512952
mov dword [esp + 0x20], 1
push str.NTUSER.DAT
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x1e4], 0xc
push eax
call fcn.00512b79
mov dword [esp + 0x20], 3
mov dword [esp + 0x1dc], 0xd
jmp 0x4a766c
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x30]
call fcn.00512952
mov dword [esp + 0x20], 4
push str.USER.DAT
lea edx, [esp + 0x2c]
push eax
push edx
mov dword [esp + 0x1e8], esi
call fcn.00512b79
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x1dc], 0xf
push eax
lea ecx, [esp + 0x18]
call fcn.00512a1d
mov al, byte [esp + 0x20]
mov dword [esp + 0x1dc], esi
test al, 8
je 0x4a7698
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x28]
and al, 0xf7
mov dword [esp + 0x20], eax
call fcn.005128e4
mov al, byte [esp + 0x20]
mov dword [esp + 0x1dc], 0xd
test al, 4
je 0x4a76be
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
and al, 0xfb
mov dword [esp + 0x20], eax
call fcn.005128e4
mov al, byte [esp + 0x20]
mov dword [esp + 0x1dc], 0xc
test al, 2
je 0x4a76e4
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
and al, 0xfd
mov dword [esp + 0x20], eax
call fcn.005128e4
mov al, byte [esp + 0x20]
mov dword [esp + 0x1dc], ebx
test al, 1
je 0x4a76fc
lea ecx, [esp + 0x18]
call fcn.005128e4
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push eax
call esi
mov ecx, dword [esp + 0x14]
push 0x80
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [esp + 0x1e8]
cmp eax, 0xffffffff
je 0x4a7848
push str.Profiles:_Backup
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 1
call fcn.00512952
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x1e8], 0x10
call fcn.00512b13
mov eax, dword [eax]
push 0xfffffdf8
push eax
mov byte [esp + 0x1e4], 0x11
call fcn.004227e0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x1dc], 0x10
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1dc], bl
call fcn.005128e4
lea eax, [esp + 0x14]
push esi
push eax
mov ecx, ebp
call fcn.0049e260
cmp eax, edi
jge 0x4a7846
lea ecx, [esp + 0x24]
mov byte [esp + 0x1dc], 4
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x1dc], 3
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x1dc], 2
call fcn.005128e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x1dc], 1
call fcn.005128e4
lea ecx, [esp + 0x58]
mov byte [esp + 0x1dc], 0x13
call fcn.005128e4
lea ecx, [esp + 0x54]
mov byte [esp + 0x1dc], 0x12
call fcn.005128e4
lea ecx, [esp + 0x50]
mov byte [esp + 0x1dc], 0
call fcn.005128e4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00486260
mov eax, 0xfffffff5
jmp 0x4a7f22
mov dword [esi], edi
mov ebp, dword [esp + 0x1ec]
cmp ebp, edi
je 0x4a78fe
lea ecx, [esp + 0x28]
push 0x56a0
push ecx
mov dword [esp + 0x48], 1
mov dword [esp + 0x70], 0x7265676b
call fcn.00422640
add esp, 8
push 0x5993f0
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x1e8], 0x14
call fcn.00512b79
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x1e8], 0x15
call fcn.00512b13
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1e0], 0x16
call fcn.00512a1d
lea ecx, [esp + 0x18]
mov byte [esp + 0x1dc], 0x15
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1dc], 0x14
call fcn.005128e4
lea ecx, [esp + 0x28]
mov byte [esp + 0x1dc], bl
call fcn.005128e4
mov eax, dword [ebp]
lea ecx, [esp + 0x3c]
push edi
push ecx
mov ecx, ebp
mov dword [esp + 0x6c], edi
call dword [eax]
cmp dword [esp + 0x34], edi
je 0x4a7a25
mov edx, dword [esp + 0x10]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4a7b68
push str.Profiles:_Export_.DEFAULT_to
lea ecx, [esp + 0x20]
call fcn.00512952
lea edx, [esp + 0x10]
mov byte [esp + 0x1dc], 0x17
push edx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00512b13
mov eax, dword [eax]
push 0xfffffdf7
push eax
mov byte [esp + 0x1e4], 0x18
call fcn.004227e0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x1dc], 0x17
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1dc], bl
call fcn.005128e4
lea ecx, [esp + 0x24]
mov byte [esp + 0x1dc], 4
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x1dc], 3
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x1dc], 2
call fcn.005128e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x1dc], 1
call fcn.005128e4
lea ecx, [esp + 0x58]
mov byte [esp + 0x1dc], 0x1a
call fcn.005128e4
lea ecx, [esp + 0x54]
mov byte [esp + 0x1dc], 0x19
call fcn.005128e4
lea ecx, [esp + 0x50]
mov byte [esp + 0x1dc], 0
call fcn.005128e4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00486260
mov eax, 0xfffffff1
jmp 0x4a7f22
push str.Profiles:_Export_.DEFAULT_to
lea ecx, [esp + 0x20]
call fcn.00512952
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x1e8], 0x1b
call fcn.00512b13
mov eax, dword [eax]
push 0xfffffdf7
push eax
mov byte [esp + 0x1e4], 0x1c
call fcn.004227e0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x1dc], 0x1b
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1dc], bl
call fcn.005128e4
push str..DEFAULT
lea ecx, [esp + 0x38]
call fcn.00512952
lea eax, [esp + 0x10]
push esi
lea ecx, [esp + 0x38]
push eax
push ecx
push reloc.oledlg.dll_OleUIInsertObjectA
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1ec], 0x1d
call fcn.004865a0
lea ecx, [esp + 0x34]
mov edi, eax
mov byte [esp + 0x1dc], bl
call fcn.005128e4
cmp edi, 1
jge 0x4a7b66
lea ecx, [esp + 0x24]
mov byte [esp + 0x1dc], 4
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x1dc], 3
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x1dc], 2
call fcn.005128e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x1dc], 1
call fcn.005128e4
lea ecx, [esp + 0x58]
mov byte [esp + 0x1dc], 0x1f
call fcn.005128e4
lea ecx, [esp + 0x54]
mov byte [esp + 0x1dc], 0x1e
call fcn.005128e4
lea ecx, [esp + 0x50]
mov byte [esp + 0x1dc], 0
call fcn.005128e4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00486260
mov eax, 0xfffffff4
jmp 0x4a7f22
xor edi, edi
push str.Profiles:_Import_.DEFAULT_from
lea ecx, [esp + 0x20]
call fcn.00512952
lea edx, [esp + 0x10]
mov byte [esp + 0x1dc], 0x20
push edx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00512b13
mov eax, dword [eax]
push 0xfffffdf6
push eax
mov byte [esp + 0x1e4], 0x21
call fcn.004227e0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x1dc], 0x20
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1dc], bl
call fcn.005128e4
lea ecx, [esp + 0x10]
push esi
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.TempIMP
call fcn.00512952
push reloc.oledlg.dll_OleUIInsertObjectA
lea ecx, [esp + 0x8c]
call fcn.00486470
cmp eax, 1
jge 0x4a7c8d
lea ecx, [esp + 0x24]
mov byte [esp + 0x1dc], 4
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x1dc], 3
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x1dc], 2
call fcn.005128e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x1dc], 1
call fcn.005128e4
lea ecx, [esp + 0x58]
mov byte [esp + 0x1dc], 0x23
call fcn.005128e4
lea ecx, [esp + 0x54]
mov byte [esp + 0x1dc], 0x22
call fcn.005128e4
lea ecx, [esp + 0x50]
mov byte [esp + 0x1dc], 0
call fcn.005128e4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00486260
mov eax, 0xfffffff2
jmp 0x4a7f22
push str.Profiles:_OpenKey
lea ecx, [esp + 0x20]
call fcn.00512952
push str.TempIMP
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x1e8], 0x24
call fcn.00512b79
mov eax, dword [eax]
push 0xfffffdf5
push eax
mov byte [esp + 0x1e4], 0x25
call fcn.004227e0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x1dc], 0x24
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1dc], bl
call fcn.005128e4
lea eax, [esp + 0x38]
push eax
push 0xf003f
push edi
push str.TempIMP
push reloc.oledlg.dll_OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
mov dword [esi], eax
je 0x4a7d17
mov ebp, 0xffffffe8
jmp 0x4a7da8
push str.Profiles:_MergeRegFileAB
lea ecx, [esp + 0x20]
call fcn.00512952
push str.TempIMP
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x1e8], 0x26
call fcn.00512b79
mov eax, dword [eax]
push 0xfffffdf4
push eax
mov byte [esp + 0x1e4], 0x27
call fcn.004227e0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x1dc], 0x26
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1dc], bl
call fcn.005128e4
mov ecx, dword [esp + 0x78]
push edi
push ebp
lea edx, [esp + 0x2c]
push esi
push edx
call fcn.004a86a0
cmp dword [esi], edi
je 0x4a7d92
mov ebp, 0xffffffe6
jmp 0x4a7da8
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov dword [esi], eax
neg eax
sbb eax, eax
and al, 0xe6
inc eax
mov ebp, eax
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x4a7db7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.TempIMP
push reloc.oledlg.dll_OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
cmp ebp, edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jle 0x4a7e7c
push str.Profiles:_Rename_to
lea ecx, [esp + 0x30]
call fcn.00512952
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
mov byte [esp + 0x1e8], 0x28
call fcn.00512b13
mov eax, dword [eax]
push 0xfffffdf1
push eax
mov byte [esp + 0x1e4], 0x29
call fcn.004227e0
add esp, 8
lea ecx, [esp + 0x28]
mov byte [esp + 0x1dc], 0x28
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1dc], bl
call fcn.005128e4
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push eax
call ebx
mov ecx, dword [esp + 0x10]
push 0x80
push ecx
call ebx
mov edx, dword [esp + 0x14]
push edx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4a7e95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ebp, 0xfffffff9
jmp 0x4a7e82
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x10]
push 0x80
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x1dc], 4
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x1dc], 3
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x1dc], 2
call fcn.005128e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x1dc], 1
call fcn.005128e4
lea ecx, [esp + 0x58]
mov byte [esp + 0x1dc], 0x2b
call fcn.005128e4
lea ecx, [esp + 0x54]
mov byte [esp + 0x1dc], 0x2a
call fcn.005128e4
lea ecx, [esp + 0x50]
mov byte [esp + 0x1dc], 0
call fcn.005128e4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00486260
mov eax, ebp
mov ecx, dword [esp + 0x1d4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1d0
ret 0xc