Function at 0x47dfc4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x47dfcd
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ad4
mov eax, dword [ebp - 8]
call fcn.00404ad4
mov eax, dword [ebp + 0x14]
call fcn.00404ad4
mov eax, dword [ebp + 0x10]
call fcn.00404ad4
mov eax, dword [ebp + 0xc]
call fcn.00404ad4
xor eax, eax
push ebp
push 0x47e21d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x4b3e7c]
call fcn.00461fc8
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, 0x47e22c
call fcn.00406524
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov ecx, 0x47e23c
call fcn.00406524
mov eax, dword [ebp - 4]
call fcn.00404ae4
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
mov eax, dword [ebp + 0x10]
call fcn.00404ae4
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
push 0x47e24c
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x18]
mov ecx, 0x47e258
mov edx, dword [ebp + 0xc]
call fcn.00404938
cmp esi, 0xffffff17
jne 0x47e0bc
lea eax, [ebp - 0x20]
push eax
push 0x1a
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0041ae04
test al, al
je 0x47e0e7
mov eax, 0x104
call fcn.00409b88
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x20]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
jmp 0x47e0e7
lea eax, [ebp - 0x20]
push eax
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0041ae04
test al, al
je 0x47e0e7
mov eax, 0x104
call fcn.00409b88
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x20]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test ebx, ebx
je 0x47e1b1
cmp esi, 0xffffff17
jne 0x47e126
lea eax, [ebp - 0x28]
mov edx, ebx
call fcn.00404824
push dword [ebp - 0x28]
push 0x47e268
push dword [ebp - 0x18]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004049ac
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
call fcn.00404e9c
jmp 0x47e15b
lea eax, [ebp - 0x30]
mov edx, ebx
call fcn.00404824
push dword [ebp - 0x30]
push 0x47e29c
push dword [ebp - 8]
push 0x47e29c
push dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.004049ac
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
call fcn.00404e9c
cmp dword [ebp + 0x14], 0
jne 0x47e180
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.004096f8
mov eax, dword [ebp - 0x34]
call fcn.00404ae4
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
jmp 0x47e192
mov eax, dword [ebp + 0x14]
call fcn.00404ae4
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00404eac
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
call fcn.004048b4
mov eax, dword [ebp - 0x20]
call fcn.0047de78
mov eax, ebx
call fcn.00409bd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e224
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.00404658
lea eax, [ebp - 0x1c]
call fcn.00404d50
lea eax, [ebp - 0x18]
call fcn.00404634
lea eax, [ebp - 0x14]
call fcn.004064e0
lea eax, [ebp - 0x10]
call fcn.004064e0
lea eax, [ebp - 0xc]
call fcn.004064e0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404658
lea eax, [ebp + 0xc]
mov edx, 3
call fcn.00404658
ret