Function at 0x1005aad0
Capabilities:
Create directory
Delete registry key
Set registry value

Disassembly:
sub esp, 0x1c
push ebx
push esi
lea ecx, [esp + 0xc]
call fcn.10003480
mov esi, dword [esp + 0xc]
mov ebx, dword [esi - 4]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, ebx
sub ecx, 0x104
or eax, ecx
jge 0x1005ab0b
push 0x104
lea ecx, [esp + 0x10]
call fcn.100029f0
mov esi, dword [esp + 0xc]
mov edx, dword [0x10098990]
push 0x104
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test esi, esi
jne 0x1005ab26
xor eax, eax
jmp 0x1005ab3f
mov eax, esi
lea edx, [eax + 1]
jmp 0x1005ab30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005ab30
sub eax, edx
js 0x1005ad8e
cmp eax, dword [esi - 8]
jg 0x1005ad8e
push 0x5c
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.10069f52
add esp, 8
test eax, eax
jne 0x1005ab63
or eax, 0xffffffff
jmp 0x1005ab65
sub eax, esi
push ebp
push edi
push str.Plugins
inc eax
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
call fcn.10008ae0
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.100424d0
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.100034a0
mov edx, dword [esp + 0x24]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
call fcn.10021080
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
add esp, 8
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x1005abd7
mov ecx, dword [esp + 0x10]
push str.7FD094E7_C8B9_40BD_9F80_F20A7194D2E6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
push str.FindMask
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0xffffffff
call fcn.10005e50
push str.Encyclopedia
lea ecx, [esp + 0x1c]
call fcn.10005e50
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push SysReAllocStringLen
call fcn.1004a4a0
add esp, 0x10
lea ecx, [esp + 0x18]
call fcn.100034a0
lea ecx, [esp + 0x1c]
call fcn.100034a0
mov esi, dword [esp + 0x20]
push str.FindMask
lea ecx, [esp + 0x1c]
or esi, 0xfffffff0
call fcn.10005e50
push str.Encyclopedia
lea ecx, [esp + 0x20]
call fcn.10005e50
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push SysReAllocStringLen
call fcn.1004acf0
add esp, 0x10
lea ecx, [esp + 0x1c]
call fcn.100034a0
lea ecx, [esp + 0x18]
call fcn.100034a0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowseNewProcess
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x10]
push edx
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowseNewProcess
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jne 0x1005acf0
mov eax, dword [esp + 0x10]
push 5
push 0x100842f8
push 1
push 0
push str.BrowseNewProcess
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowseNewProcess
push SysReAllocStringLen
call esi
test eax, eax
jne 0x1005ad29
push 5
push 0x100842f8
push 1
push eax
mov eax, dword [esp + 0x20]
push str.BrowseNewProcess
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call edi
push 0
push 1
mov ecx, 0x10098914
call fcn.10059f80
mov esi, eax
test esi, esi
jne 0x1005ad72
lea edx, [esp + 0x1c]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerDiscardablePostSetupComponent_Categories00021493_0000_0000_C000_000000000046
push SysReAllocStringLen
call ebp
test eax, eax
jne 0x1005ad70
mov eax, dword [esp + 0x1c]
push str.Enum
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x1c]
push ecx
call edi
xor esi, esi
lea ecx, [esp + 0x24]
call fcn.100034a0
lea ecx, [esp + 0x14]
call fcn.100034a0
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
push 0x80070057
call fcn.10001330
int3