Function at 0x10028e5
Capabilities:
Delete file
Delete registry value
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd38
mov eax, dword [0x10050b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, 0x104
push edi
lea ecx, [ebp - 0xc2c]
mov dword [ebp - 0xd34], eax
mov eax, dword [ebp + 0x10]
push ecx
xor esi, esi
push eax
mov dword [ebp - 0xd1c], esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, esi
je 0x1002bc6
cmp eax, edi
ja 0x1002bc6
lea eax, [ebp - 0xd1c]
push eax
push 0x20119
push esi
push dword [0x1005004]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002bae
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0x81c]
push eax
push esi
push dword [ebp - 0xd1c]
mov dword [ebp - 0xd28], esi
mov dword [ebp - 0xd38], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1002bae
mov ebx, 0x206
mov ecx, dword [ebp - 0xd34]
lea eax, [ebp - 0x81c]
push eax
call fcn.010019ec
test al, al
je 0x1002b72
push 0x100178c
lea eax, [ebp - 0x81c]
push eax
push 0x10017a0
lea eax, [ebp - 0xa24]
push edi
push eax
mov dword [ebp - 0xd20], esi
call fcn.01001f38
add esp, 0x14
test eax, eax
jne 0x1002b72
lea eax, [ebp - 0xd20]
push eax
push 0xf013f
push esi
lea eax, [ebp - 0xa24]
push eax
push dword [ebp - 0xd1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002b72
push ebx
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push esi
push eax
mov dword [ebp - 0xd24], esi
call sub.msvcrt.dll_memset
xor eax, eax
push ebx
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push ebx
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
mov dword [ebp - 0xd2c], 0x208
call sub.msvcrt.dll_memset
add esp, 0x24
lea eax, [ebp - 0xd2c]
push eax
lea eax, [ebp - 0x61c]
push eax
push esi
push esi
lea eax, [ebp - 0xd30]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
jmp 0x1002b4c
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xc2c]
push eax
push 0x10017a0
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.01001f38
add esp, 0x14
test eax, eax
jne 0x1002b18
lea ecx, [ebp - 0xd18]
call fcn.010019c3
mov eax, dword [ebp - 0xd34]
cmp dword [eax + 0xc], esi
je 0x1002aed
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xd18]
push eax
call fcn.01001e51
test al, al
je 0x1002b18
mov eax, dword [ebp - 0xd34]
push dword [eax + 0xc]
lea ecx, [ebp - 0xd18]
call fcn.01001a1a
test al, al
je 0x1002b18
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xd20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1002b18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wremove]
dec dword [ebp - 0xd24]
pop ecx
inc dword [ebp - 0xd24]
lea eax, [ebp - 0xd2c]
push eax
lea eax, [ebp - 0x61c]
push eax
push esi
push esi
lea eax, [ebp - 0xd30]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xd24]
mov dword [ebp - 0xd2c], 0x208
push dword [ebp - 0xd20]
mov dword [ebp - 0xd30], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1002a81
push dword [ebp - 0xd20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xd28]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0x81c]
push eax
push dword [ebp - 0xd28]
mov dword [ebp - 0xd38], 0xff
push dword [ebp - 0xd1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1002996
cmp dword [ebp - 0xd1c], esi
je 0x1002bc2
push dword [ebp - 0xd1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1002bcb
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100377d
leave
ret 0xc