Function at 0x406016
Capabilities:
Delete registry key
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x469cfe
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4add60]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
mov eax, dword [0x4add60]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
push str.Cleanup...
lea ecx, [esp + 0x14]
call fcn.004012e2
xor esi, esi
push esi
lea eax, [esp + 0x14]
push eax
push 2
mov dword [esp + 0x254], esi
call fcn.00410d56
or dword [esp + 0x254], 0xffffffff
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
cmp dword [edi + 0xbc], esi
jne 0x4063b3
push 0x104
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0044e740
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push 0x2b
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ebx, ebx
inc ebx
cmp eax, esi
jl 0x40615f
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.004012e2
push str.AdobeARM1.0Temp
lea ecx, [esp + 0x18]
mov dword [esp + 0x24c], ebx
call fcn.00406a25
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00401326
call fcn.004376c3
pop ecx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.004012e2
push str.AdobeARM1.0Backup
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 2
call fcn.00406a25
push ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00401326
call fcn.004376c3
pop ecx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004017ba
or dword [esp + 0x248], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004017ba
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x473600
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406209
cmp dword [edi + 0xd4], esi
jne 0x4061ee
call fcn.00432db4
test eax, eax
jne 0x4061ee
call fcn.00432cd3
test eax, eax
je 0x4061ad
call fcn.00433276
test eax, eax
je 0x4061ee
push str.elevated_for_the_secure_cleanup
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebx
call fcn.004012e2
push esi
lea eax, [esp + 0x14]
push eax
push 2
mov dword [esp + 0x254], 3
call fcn.00410d56
or dword [esp + 0x254], 0xffffffff
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
push str.Cleanup
push dword [esp + 0x24]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40620e
call fcn.0043793b
call fcn.0043ce9a
push eax
lea ecx, [esp + 0x18]
call fcn.00413a25
mov dword [esp + 0x248], 4
call fcn.0043ce9a
push eax
lea ecx, [esp + 0x28]
call fcn.00413a25
lea eax, [esp + 0x18]
push eax
lea esi, [edi + 0xe0]
lea ebx, [esp + 0x18]
mov byte [esp + 0x24c], 5
call fcn.004378fb
pop ecx
lea ecx, [esp + 0x10]
lea eax, [edi + 0x24c]
push ecx
call fcn.00401c07
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
mov byte [esp + 0x24c], 6
call fcn.004378fb
pop ecx
mov byte [esp + 0x248], 5
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004017ba
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 0x24c]
call fcn.00401c3d
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
mov byte [esp + 0x24c], 7
call fcn.004378fb
pop ecx
mov byte [esp + 0x248], 5
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004017ba
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0x24c]
call fcn.00401c58
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
mov byte [esp + 0x24c], 8
call fcn.004378fb
pop ecx
mov byte [esp + 0x248], 5
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004017ba
xor esi, esi
cmp dword [edi + 0x240], esi
je 0x40634e
lea ecx, [edi + 0x10c]
cmp dword [ecx + 8], esi
mov dword [esp + 0x10], esi
jle 0x40634e
push dword [esp + 0x10]
call fcn.00406a88
mov eax, dword [eax]
cmp eax, esi
je 0x40633b
lea ecx, [esp + 0x18]
push ecx
lea esi, [eax + 8]
lea ebx, [esp + 0x18]
call fcn.004378fb
pop ecx
xor esi, esi
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
lea ecx, [edi + 0x10c]
cmp eax, dword [ecx + 8]
jl 0x406318
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
je 0x40639f
cmp dword [ebx - 0xc], esi
je 0x406376
push ebx
push str.tFiles
push dword [0x4b26ac]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00432722
add esp, 0x10
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], esi
je 0x406398
push eax
push str.tFolders
push dword [0x4b26ac]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00432722
add esp, 0x10
mov esi, edi
call fcn.004063d6
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017ba
lea ecx, [ebx - 0x10]
call fcn.004017ba
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0044da13
mov esp, ebp
pop ebp
ret