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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x462d4f
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4a1d50]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x4a1d50]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov esi, ecx
push str.Cleanup...
lea ecx, [esp + 0x14]
call fcn.0040130b
xor edi, edi
push edi
lea eax, [esp + 0x14]
push eax
push 2
mov dword [esp + 0x254], edi
call fcn.0040fcf3
or dword [esp + 0x254], 0xffffffff
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [esi + 0xbc], edi
jne 0x405c02
push 0x104
lea eax, [esp + 0x30]
push edi
push eax
call fcn.00448000
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push edi
push edi
push 0x2b
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ebx, ebx
inc ebx
cmp eax, edi
jl 0x4059c0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.0040130b
push str.AdobeARM1.0Temp
lea ecx, [esp + 0x18]
mov dword [esp + 0x24c], ebx
call fcn.00406262
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.0040134f
call fcn.0043360a
pop ecx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.0040130b
push str.AdobeARM1.0Backup
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 2
call fcn.00406262
push ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.0040134f
call fcn.0043360a
pop ecx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004017c4
or dword [esp + 0x248], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004017c4
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push 0x46c0b0
push 0x80000002
mov dword [esp + 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405a6a
cmp dword [esi + 0xd4], edi
jne 0x405a4f
call fcn.0042f2de
test eax, eax
jne 0x405a4f
call fcn.0042f1fd
test eax, eax
je 0x405a0e
call fcn.0042f701
test eax, eax
je 0x405a4f
push str.elevated_for_the_secure_cleanup
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebx
call fcn.0040130b
push edi
lea eax, [esp + 0x14]
push eax
push 2
mov dword [esp + 0x254], 3
call fcn.0040fcf3
or dword [esp + 0x254], 0xffffffff
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
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 0x405a6f
call fcn.004337fc
call fcn.004366fe
push eax
lea ecx, [esp + 0x18]
call fcn.00411d53
mov dword [esp + 0x248], 4
call fcn.004366fe
push eax
lea ecx, [esp + 0x28]
call fcn.00411d53
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0xdc]
lea ebx, [esp + 0x18]
mov byte [esp + 0x24c], 5
call fcn.004337b6
pop ecx
lea eax, [esp + 0x10]
lea edi, [esi + 0x22c]
push eax
mov eax, edi
call fcn.00401bf3
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x24c], 6
call fcn.004337b6
pop ecx
mov byte [esp + 0x248], 5
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004017c4
lea eax, [esp + 0x10]
push eax
mov eax, edi
call fcn.00401c0e
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x24c], 7
call fcn.004337b6
pop ecx
mov byte [esp + 0x248], 5
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004017c4
lea eax, [esp + 0x1c]
push eax
mov eax, edi
call fcn.00401c29
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x24c], 8
call fcn.004337b6
pop ecx
mov byte [esp + 0x248], 5
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004017c4
xor ebx, ebx
cmp dword [esi + 0x220], ebx
je 0x405b9f
lea edi, [esi + 0x108]
cmp dword [edi + 8], ebx
mov dword [esp + 0x10], ebx
jle 0x405b9f
push dword [esp + 0x10]
mov ecx, edi
call fcn.004062c5
mov eax, dword [eax]
cmp eax, ebx
je 0x405b92
lea ecx, [esp + 0x18]
push ecx
add eax, 8
lea ebx, [esp + 0x18]
call fcn.004337b6
pop ecx
xor ebx, ebx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 8]
jl 0x405b6d
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x18], ebx
je 0x405bee
cmp dword [edi - 0xc], ebx
je 0x405bc7
push edi
push str.tFiles
push dword [0x4a65e4]
push 0x80000002
call fcn.0042ec58
add esp, 0x10
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], ebx
je 0x405be9
push eax
push str.tFolders
push dword [0x4a65e4]
push 0x80000002
call fcn.0042ec58
add esp, 0x10
call fcn.00405c26
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [edi - 0x10]
call fcn.004017c4
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004472d5
mov esp, ebp
pop ebp
ret