Function at 0x10001ec0
Capabilities:
Copy file
Delete file
Move file
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x10020ae4]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
mov esi, dword [esp + 0x42c]
lea eax, [esp + 0x218]
push edi
mov edi, dword [esp + 0x434]
push edi
push str.CleanHive__s_
push 0x104
push eax
call fcn.10005a20
lea eax, [esp + 0x22c]
push eax
push str.CleanHive
push dword [esp + 0x444]
call fcn.10003f60
add esp, 0x1c
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002049
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x104
push eax
lea eax, [esp + 0x324]
mov dword [esp + 0x14], 2
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.ProfileImagePath
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 8]
test eax, eax
je 0x10001f8c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.10005b76
add esp, 0x420
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x11c]
push 0x104
push eax
call fcn.1000ac42
push str.NTUSER.DAT
lea eax, [esp + 0x24]
push 0x104
push eax
call fcn.1000ac9c
push str.NTUSER.LMIRescue.TMP
lea eax, [esp + 0x134]
push 0x104
push eax
call fcn.1000ac9c
add esp, 0x24
lea eax, [esp + 0x118]
push 0
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10002049
push ebx
lea eax, [esp + 0x11c]
push eax
push edi
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1000203e
lea eax, [esp + 0x18]
push eax
call ebx
test eax, eax
jne 0x10002060
push edi
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
lea eax, [esp + 0x11c]
push eax
call ebx
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.10005b76
add esp, 0x420
ret
push ebp
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x10002083
push str.RegSaveKeyExA
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10021248], eax
push edi
push dword [esp + 0x438]
mov esi, 1
call fcn.100025f0
add esp, 8
test eax, eax
jne 0x100020f5
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push edi
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100020f5
mov eax, dword [0x10021248]
test eax, eax
je 0x100020d2
push 2
push 0
lea ecx, [esp + 0x24]
push ecx
push dword [esp + 0x1c]
call eax
jmp 0x100020e3
push 0
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
push dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
push 0x80000003
mov dword [0x10021248], 0
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
pop ebp
test esi, esi
je 0x1000203e
lea eax, [esp + 0x18]
push eax
call ebx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0x428]
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.10005b76
add esp, 0x420
ret