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

Disassembly:
sub esp, 0x420
mov eax, dword [0x1001cc50]
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.10007bec
lea eax, [esp + 0x22c]
push eax
push str.CleanHive
push dword [esp + 0x444]
call fcn.10004a10
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 0x10002889
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 0x100027cc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.10006cd8
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.10007232
push str.NTUSER.DAT
lea eax, [esp + 0x24]
push 0x104
push eax
call fcn.10007287
push str.NTUSER.LMIRescue.TMP
lea eax, [esp + 0x134]
push 0x104
push eax
call fcn.10007287
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 0x10002889
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 0x1000287e
lea eax, [esp + 0x18]
push eax
call ebx
test eax, eax
jne 0x100028a0
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.10006cd8
add esp, 0x420
ret
push ebp
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x100028c3
push str.RegSaveKeyExA
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1001dbc0], eax
push edi
push dword [esp + 0x438]
mov esi, 1
call fcn.10002f50
add esp, 8
test eax, eax
jne 0x10002935
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 0x10002935
mov eax, dword [0x1001dbc0]
test eax, eax
je 0x10002912
push 2
push 0
lea ecx, [esp + 0x24]
push ecx
push dword [esp + 0x1c]
call eax
jmp 0x10002923
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 [0x1001dbc0], 0
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
pop ebp
test esi, esi
je 0x1000287e
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.10006cd8
add esp, 0x420
ret