Function at 0x40fb90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ed93
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x49d4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x1f4]
push eax
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40fbf4
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x1f4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 0x1f4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp byte [ebp - 0x118], 0
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
jne 0x40fc1c
xor ecx, ecx
jmp 0x40fc2e
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fc25
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x130]
call fcn.004070e0
lea eax, [esi + 0x388]
mov dword [ebp - 4], 0
push eax
lea edx, [esi + 0x448]
lea ecx, [ebp - 0x190]
call fcn.00412860
add esp, 4
push 0x4885b0
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x160]
call fcn.004047d0
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x17c], 0x10
jb 0x40fc97
push dword [ebp - 0x190]
call fcn.0045f8c1
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x460]
mov dword [ebp - 0x17c], 0xf
push eax
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x180], 0
mov byte [ebp - 0x190], 0
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
call fcn.00406d70
push 0xffffffffffffffff
mov byte [ebp - 4], 4
lea eax, [esi + 0x478]
push 0
push eax
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x164], 0xf
mov dword [ebp - 0x168], 0
mov byte [ebp - 0x178], 0
call fcn.00406d70
lea edi, [esi + 0x370]
mov byte [ebp - 4], 5
push str..lnk
mov edx, edi
lea ecx, [ebp - 0x1a8]
call fcn.00404320
add esp, 4
push edi
mov edx, 0x48eeb0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x190]
call fcn.004046e0
add esp, 4
push str..lnk
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c0]
call fcn.004047d0
add esp, 4
mov byte [ebp - 4], 9
cmp dword [ebp - 0x17c], 0x10
jb 0x40fd83
push dword [ebp - 0x190]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x14c], 0x10
lea esi, [ebp - 0x160]
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x17c], 0xf
cmovae esi, dword [ebp - 0x160]
lea edx, [ebp - 0x130]
cmp dword [ebp - 0x194], 0x10
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x180], 0
cmovae eax, dword [ebp - 0x1a8]
cmp dword [ebp - 0x11c], 0x10
mov byte [ebp - 0x190], 0
cmovae edx, dword [ebp - 0x130]
cmp dword [ebp - 0x134], 0x10
cmovae ecx, dword [ebp - 0x148]
sub esp, 0x10
push esi
push eax
call fcn.00402660
push 0x4885b0
lea edx, [ebp - 0x130]
mov ebx, eax
lea ecx, [ebp - 0x1f0]
call fcn.00404320
add esp, 0x1c
push edi
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1d8]
call fcn.00412920
mov esi, eax
add esp, 4
lea eax, [ebp - 0x130]
cmp eax, esi
je 0x40fe72
cmp dword [ebp - 0x11c], 0x10
jb 0x40fe4b
push dword [ebp - 0x130]
call fcn.0045f8c1
add esp, 4
push esi
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
call fcn.00407290
cmp dword [ebp - 0x1c4], 0x10
jb 0x40fe89
push dword [ebp - 0x1d8]
call fcn.0045f8c1
add esp, 4
mov byte [ebp - 4], 9
cmp dword [ebp - 0x1dc], 0x10
mov dword [ebp - 0x1c4], 0xf
mov dword [ebp - 0x1c8], 0
mov byte [ebp - 0x1d8], 0
jb 0x40febf
push dword [ebp - 0x1f0]
call fcn.0045f8c1
add esp, 4
lea ecx, [ebp - 0x130]
call fcn.00401e60
cmp dword [ebp - 0x14c], 0x10
lea esi, [ebp - 0x160]
lea eax, [ebp - 0x1a8]
cmovae esi, dword [ebp - 0x160]
lea edx, [ebp - 0x130]
cmp dword [ebp - 0x194], 0x10
lea ecx, [ebp - 0x148]
cmovae eax, dword [ebp - 0x1a8]
cmp dword [ebp - 0x11c], 0x10
cmovae edx, dword [ebp - 0x130]
cmp dword [ebp - 0x134], 0x10
cmovae ecx, dword [ebp - 0x148]
sub esp, 0x10
push esi
push eax
call fcn.00402660
or ebx, eax
lea esi, [ebp - 0x160]
cmp dword [ebp - 0x14c], 0x10
lea eax, [ebp - 0x1c0]
lea edx, [ebp - 0x130]
cmovae esi, dword [ebp - 0x160]
lea ecx, [ebp - 0x178]
cmp dword [ebp - 0x1ac], 0x10
cmovae eax, dword [ebp - 0x1c0]
cmp dword [ebp - 0x11c], 0x10
cmovae edx, dword [ebp - 0x130]
cmp dword [ebp - 0x164], 0x10
cmovae ecx, dword [ebp - 0x178]
add esp, 8
push esi
push eax
call fcn.00402660
mov esi, eax
add esp, 0x18
or esi, ebx
cmp dword [ebp - 0x1ac], 0x10
jb 0x40ff9e
push dword [ebp - 0x1c0]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x194], 0x10
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
jb 0x40ffd0
push dword [ebp - 0x1a8]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x164], 0x10
mov dword [ebp - 0x194], 0xf
mov dword [ebp - 0x198], 0
mov byte [ebp - 0x1a8], 0
jb 0x410002
push dword [ebp - 0x178]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x134], 0x10
mov dword [ebp - 0x164], 0xf
mov dword [ebp - 0x168], 0
mov byte [ebp - 0x178], 0
jb 0x410034
push dword [ebp - 0x148]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x14c], 0x10
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
jb 0x410066
push dword [ebp - 0x160]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x11c], 0x10
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
jb 0x410098
push dword [ebp - 0x130]
call fcn.0045f8c1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045f8b2
mov esp, ebp
pop ebp
ret