Function at 0x46ab50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
xor ebx, ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044b4
mov eax, dword [ebp - 8]
call fcn.004044b4
xor eax, eax
push ebp
push 0x46ada1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x46adb8
push dword [ebp - 8]
push 0x46adc4
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404384
lea edx, [ebp - 0xc]
mov eax, dword [0x46e790]
call fcn.00469cc0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, 0x46adcc
call fcn.00405938
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov ecx, 0x46addc
call fcn.00405938
mov eax, dword [ebp - 4]
call fcn.004044c4
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 4]
call fcn.004086fc
mov eax, dword [ebp - 0x130]
call fcn.004044c4
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
dec ebx
jne 0x46aca5
lea eax, [ebp - 0x18]
push eax
push 0x10
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x129]
xor ecx, ecx
mov edx, 0x105
call fcn.00402cc8
lea eax, [ebp - 0x129]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x129]
mov ecx, 0x105
call fcn.00404274
lea eax, [ebp - 0x134]
mov edx, dword [ebp - 0x20]
call fcn.004042cc
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x1c]
call fcn.00404830
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00404840
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
jmp 0x46ad49
lea eax, [ebp - 0x18]
push eax
push 2
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x129]
xor ecx, ecx
mov edx, 0x105
call fcn.00402cc8
lea eax, [ebp - 0x129]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x129]
mov ecx, 0x105
call fcn.00404274
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 0x24]
mov ecx, 0x46adf4
call fcn.00404310
mov eax, dword [ebp - 0x24]
call fcn.00408658
test al, al
jne 0x46ad16
mov eax, dword [ebp - 0x24]
call fcn.004028e4
call fcn.00402844
lea eax, [ebp - 0x13c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.00404310
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 0x1c]
call fcn.00404830
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00404840
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ada8
lea eax, [ebp - 0x13c]
mov edx, 4
call fcn.00404028
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404028
lea eax, [ebp - 0x1c]
call fcn.004046e4
lea eax, [ebp - 0x14]
call fcn.004058f4
lea eax, [ebp - 0x10]
call fcn.004058f4
lea eax, [ebp - 0xc]
call fcn.004058f4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404028
ret