Function at 0x408837
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45f041
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x497d50]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x497d50]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov edi, ecx
push str.Cleanup...
lea ecx, [esp + 0x18]
call fcn.00402060
xor esi, esi
push esi
lea eax, [esp + 0x18]
push eax
push 2
mov dword [esp + 0x24c], esi
call fcn.00411fad
or dword [esp + 0x24c], 0xffffffff
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, edi
call fcn.0040b728
cmp dword [edi + 0xbc], esi
jne 0x408bbb
lea esi, [edi + 0xd4]
call fcn.004327e8
lea eax, [esp + 0x14]
lea ebx, [edi + 0x5c4]
push eax
mov eax, ebx
call fcn.004051a4
mov esi, eax
mov dword [esp + 0x240], 1
call fcn.004327e8
or dword [esp + 0x240], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
lea eax, [esp + 0x14]
push eax
mov eax, ebx
call fcn.004051da
mov esi, eax
mov dword [esp + 0x240], 2
call fcn.004327e8
or dword [esp + 0x240], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
lea eax, [esp + 0x14]
push eax
mov eax, ebx
call fcn.004051f5
mov esi, eax
mov dword [esp + 0x240], 3
call fcn.004327e8
or dword [esp + 0x240], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
lea eax, [esp + 0x14]
push eax
mov eax, ebx
call fcn.00405210
mov esi, eax
mov dword [esp + 0x240], 4
call fcn.004327e8
or dword [esp + 0x240], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, dword [edi + 0x4b0]
xor esi, esi
cmp eax, esi
je 0x408a2a
lea esi, [eax + 8]
call fcn.004327e8
lea eax, [esp + 0x18]
push eax
mov eax, ebx
call fcn.004051bf
push 0x49c438
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24c], 5
call fcn.00401d7a
add esp, 0xc
mov byte [esp + 0x240], 7
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
lea esi, [esp + 0x14]
call fcn.004327e8
push ecx
lea eax, [edi + 0xd8]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.004020a4
call fcn.0043267a
or dword [esp + 0x244], 0xffffffff
pop ecx
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
xor esi, esi
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x24]
push eax
push esi
push esi
push 0x8023
push esi
call ebx
cmp eax, esi
jl 0x408ac8
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
call fcn.00402060
push 0x49c440
lea eax, [esp + 0x1c]
push str.AdobeARM_
push eax
mov dword [esp + 0x24c], 8
call fcn.00401dd1
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x244], 9
call fcn.00401e6a
mov byte [esp + 0x240], 8
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], esp
mov ecx, esp
push eax
call fcn.004020a4
call fcn.0043267a
or dword [esp + 0x244], 0xffffffff
pop ecx
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
push 0x104
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00445f90
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push esi
push esi
push 0x2b
push esi
call ebx
cmp eax, esi
jl 0x408b88
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
call fcn.00402060
push str.AdobeARM1.0Temp
lea ecx, [esp + 0x20]
mov dword [esp + 0x244], 0xa
call fcn.00409019
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
mov ecx, esp
push eax
call fcn.004020a4
call fcn.0043267a
pop ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
call fcn.00402060
push str.AdobeARM1.0Backup
lea ecx, [esp + 0x24]
mov byte [esp + 0x244], 0xb
call fcn.00409019
push ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], esp
mov ecx, esp
push eax
call fcn.004020a4
call fcn.0043267a
pop ecx
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040253e
or dword [esp + 0x240], 0xffffffff
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [edi + 0x5b8], esi
je 0x408bbb
add edi, 0x4b4
xor ebx, ebx
cmp dword [edi + 8], esi
jle 0x408bbb
push ebx
mov ecx, edi
call fcn.0040907c
mov eax, dword [eax]
cmp eax, esi
je 0x408bb5
lea esi, [eax + 8]
call fcn.004327e8
xor esi, esi
inc ebx
cmp ebx, dword [edi + 8]
jl 0x408b9d
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00445157
mov esp, ebp
pop ebp
ret