Function at 0x409add
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x477cb9
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4bfd60]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
mov eax, dword [0x4bfd60]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
push str.Cleanup...
lea ecx, [esp + 0x14]
call fcn.004020a6
xor esi, esi
push esi
lea eax, [esp + 0x14]
push eax
push 2
mov dword [esp + 0x24c], esi
call fcn.004152d1
or dword [esp + 0x24c], 0xffffffff
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [edi + 0xbc], esi
jne 0x409e8c
push 0x104
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00459cf0
add esp, 0xc
lea eax, [esp + 0x24]
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 0x409c2a
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
call fcn.004020a6
push str.AdobeARM1.0Temp
lea ecx, [esp + 0x18]
mov dword [esp + 0x244], ebx
call fcn.0040af5f
push esi
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.004020ea
call fcn.004423ba
pop ecx
pop ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.004020a6
push str.AdobeARM1.0Backup
lea ecx, [esp + 0x14]
mov byte [esp + 0x244], 2
call fcn.0040af5f
push esi
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.004020ea
call fcn.004423ba
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004025d2
or dword [esp + 0x240], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004025d2
mov dword [esp + 0x20], esi
call fcn.0043ddfc
test eax, eax
je 0x409c9d
cmp dword [edi + 0xd4], esi
jne 0x409ca2
call fcn.0043d897
test eax, eax
jne 0x409ca2
call fcn.0043d7b6
test eax, eax
je 0x409c5a
call fcn.0043dd59
test eax, eax
je 0x409ca2
push str.elevated__will_use_safe_cleanup
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
call fcn.004020a6
push esi
lea eax, [esp + 0x14]
push eax
push 2
mov dword [esp + 0x24c], 3
call fcn.004152d1
or dword [esp + 0x24c], 0xffffffff
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
jmp 0x409ca2
call fcn.00442655
call fcn.0044825c
push eax
lea ecx, [esp + 0x18]
call fcn.0041872d
lea eax, [esp + 0x20]
push eax
lea esi, [edi + 0xe0]
lea ebx, [esp + 0x18]
mov dword [esp + 0x244], 4
call fcn.00442615
pop ecx
lea ecx, [esp + 0x18]
lea eax, [edi + 0x27c]
push ecx
call fcn.00405295
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
mov byte [esp + 0x244], 5
call fcn.00442615
pop ecx
mov byte [esp + 0x240], 4
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0x27c]
call fcn.004052cb
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
mov byte [esp + 0x244], 6
call fcn.00442615
pop ecx
mov byte [esp + 0x240], 4
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0x27c]
call fcn.004052e6
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
mov byte [esp + 0x244], 7
call fcn.00442615
pop ecx
mov byte [esp + 0x240], 4
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004025d2
xor eax, eax
cmp dword [edi + 0x26c], eax
je 0x409def
cmp dword [edi + 0x234], eax
jne 0x409def
lea ecx, [edi + 0x10c]
cmp dword [ecx + 8], eax
mov dword [esp + 0x10], eax
jle 0x409def
push dword [esp + 0x10]
call fcn.0040b035
mov dword [esp + 0x18], eax
mov eax, dword [eax]
test eax, eax
je 0x409ddc
lea ecx, [esp + 0x20]
push ecx
lea esi, [eax + 8]
lea ebx, [esp + 0x18]
call fcn.00442615
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
cmp dword [eax + 0x1c], 4
pop ecx
jne 0x409ddc
lea ecx, [esp + 0x20]
push ecx
lea esi, [eax + 0x24]
call fcn.00442615
pop ecx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
lea ecx, [edi + 0x10c]
cmp eax, dword [ecx + 8]
jl 0x409d9d
push 0x48173c
push str.Reported
lea ecx, [edi + 0x2c8]
lea esi, [esp + 0x27]
mov byte [esp + 0x27], 0
call fcn.00416a23
cmp byte [esp + 0x1f], 0
je 0x409e53
lea eax, [edi + 0x2cc]
push eax
lea ecx, [esp + 0x1c]
call fcn.004020a6
lea eax, [esp + 0x20]
push eax
lea ebx, [esp + 0x18]
lea esi, [esp + 0x1c]
mov byte [esp + 0x244], 8
call fcn.00442615
pop ecx
mov byte [esp + 0x240], 4
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [esp + 0x20], 0
mov ebx, dword [esp + 0x14]
je 0x409e84
cmp dword [ebx - 0xc], 0
je 0x409e84
push ebx
push str.tFiles
push dword [0x4c46bc]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0043d205
add esp, 0x10
mov esi, edi
call fcn.00409eaf
lea ecx, [ebx - 0x10]
call fcn.004025d2
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00458e0e
mov esp, ebp
pop ebp
ret