Function at 0x4f0dec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
call fcn.00404c70
mov eax, dword [ebp - 8]
call fcn.00404c70
mov eax, dword [ebp - 0xc]
call fcn.00404c70
mov eax, dword [ebp + 0x18]
call fcn.00404c70
mov eax, dword [ebp + 0x10]
call fcn.00404c70
xor eax, eax
push ebp
push 0x4f101e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push 0x10
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x125]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x4f0fc3
mov eax, dword [ebp - 0x10]
call fcn.004f08bc
lea edx, [ebp - 0x14]
mov eax, dword [0x5048f0]
call fcn.004c3e48
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, 0x4f1030
call fcn.00406394
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov ecx, 0x4f1040
call fcn.00406394
test esi, esi
jne 0x4f0f08
mov eax, dword [ebp - 0xc]
call fcn.00404c80
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
mov eax, dword [ebp - 8]
call fcn.00404c80
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 8]
call fcn.004097a8
mov eax, dword [ebp - 0x12c]
call fcn.00404c80
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
jmp 0x4f0f12
push esi
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, dword [ebp + 0x18]
call fcn.00404c80
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
cmp dword [ebp + 0x10], 0
je 0x4f0f40
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
call fcn.00404c80
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x125]
mov ecx, 0x105
call fcn.00404a30
push dword [ebp - 0x134]
push 0x4f1058
push dword [ebp - 4]
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.00404b40
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x20]
call fcn.0040505c
push 0
mov eax, dword [ebp - 0x20]
call fcn.0040506c
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x138]
mov eax, 8
call fcn.00409220
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp + 8]
call fcn.00404814
test ebx, ebx
sete al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1025
lea eax, [ebp - 0x138]
mov edx, 4
call fcn.004047e4
lea eax, [ebp - 0x20]
call fcn.00404ef4
lea eax, [ebp - 0x1c]
call fcn.00406350
lea eax, [ebp - 0x18]
call fcn.00406350
lea eax, [ebp - 0x14]
call fcn.00406350
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004047e4
lea eax, [ebp + 0x10]
call fcn.004047c0
lea eax, [ebp + 0x18]
call fcn.004047c0
ret