Function at 0x58d7ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x58d7f4
push ecx
push ebx
push esi
mov eax, 0x5836f4
call fcn.0040abec
mov ebx, dword [0x595ebc]
mov esi, 0x59c594
xor eax, eax
push ebp
push 0x58dba1
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00404674
test eax, eax
jne 0x58d834
mov eax, 1
call fcn.004061ec
mov eax, dword [0x5958a4]
xor edx, edx
call fcn.00406edc
lea edx, [ebp - 0x18]
mov eax, dword [0x595cc8]
mov eax, dword [eax]
call fcn.004c0528
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00414ecc
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00406edc
mov eax, dword [0x595b3c]
mov edx, 0x58dbbc
call fcn.00406edc
mov edx, dword [ebx]
lea eax, [ebp - 0x1c]
mov ecx, 0x58dbf4
call fcn.004073c0
mov eax, dword [ebp - 0x1c]
call fcn.0041495c
test al, al
je 0x58d8ae
mov edx, dword [ebx]
mov eax, dword [0x5958a4]
mov ecx, 0x58dbf4
call fcn.004073c0
mov eax, dword [0x596024]
mov edx, 0x58dc14
call fcn.00406edc
mov edx, dword [ebx]
lea eax, [ebp - 0x20]
mov ecx, 0x58dc4c
call fcn.004073c0
mov eax, dword [ebp - 0x20]
call fcn.0041495c
test al, al
je 0x58d8e9
mov edx, dword [ebx]
mov eax, dword [0x5958a4]
mov ecx, 0x58dc4c
call fcn.004073c0
mov eax, dword [0x596024]
mov edx, 0x58dc68
call fcn.00406edc
mov edx, dword [ebx]
lea eax, [ebp - 0x24]
mov ecx, 0x58dca4
call fcn.004073c0
mov eax, dword [ebp - 0x24]
call fcn.0041495c
test al, al
je 0x58d924
mov edx, dword [ebx]
mov eax, dword [0x5958a4]
mov ecx, 0x58dca4
call fcn.004073c0
mov eax, dword [0x596024]
mov edx, 0x58dcc0
call fcn.00406edc
mov edx, dword [ebx]
lea eax, [ebp - 0x28]
mov ecx, 0x58dd30
call fcn.004073c0
mov eax, dword [ebp - 0x28]
call fcn.0041495c
test al, al
je 0x58d95f
mov edx, dword [ebx]
mov eax, dword [0x5958a4]
mov ecx, 0x58dd30
call fcn.004073c0
mov eax, dword [0x596024]
mov edx, 0x58dd4c
call fcn.00406edc
mov edx, dword [ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x58dd90
call fcn.004073c0
mov eax, dword [ebp - 0x2c]
call fcn.0041495c
test al, al
je 0x58da43
mov edx, dword [ebx]
mov eax, dword [0x5958a4]
mov ecx, 0x58dd90
call fcn.004073c0
mov eax, dword [0x596024]
mov edx, 0x58ddac
call fcn.00406edc
mov eax, dword [0x595b3c]
mov edx, 0x58ddd4
call fcn.00406edc
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ebx]
lea eax, [ebp - 0x34]
mov ecx, 0x58de18
call fcn.004073c0
mov eax, dword [ebp - 0x34]
mov ecx, 0x58de40
mov edx, 0x58de54
call fcn.004f27c4
mov edx, dword [ebp - 0x30]
mov eax, 0x59c598
call fcn.00406edc
mov edx, dword [0x59c598]
mov eax, 0x58de84
call fcn.00407944
test eax, eax
jle 0x58da11
mov eax, dword [0x595b3c]
mov edx, 0x58dea8
call fcn.00406edc
mov eax, dword [0x596024]
mov edx, 0x58dee4
call fcn.00406edc
mov edx, dword [0x59c598]
mov eax, 0x58df24
call fcn.00407944
test eax, eax
jle 0x58da43
mov eax, dword [0x595b3c]
mov edx, 0x58df4c
call fcn.00406edc
mov eax, dword [0x596024]
mov edx, 0x58df90
call fcn.00406edc
mov edx, dword [ebx]
lea eax, [ebp - 0x38]
mov ecx, 0x58dfd4
call fcn.004073c0
mov eax, dword [ebp - 0x38]
call fcn.0041495c
test al, al
je 0x58da7e
mov edx, dword [ebx]
mov eax, dword [0x5958a4]
mov ecx, 0x58dfd4
call fcn.004073c0
mov eax, dword [0x596024]
mov edx, 0x58dff0
call fcn.00406edc
push esi
push 0x23
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [esi], 0
je 0x58dadc
push 0x59c59c
mov eax, dword [esi]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
mov eax, dword [0x595780]
mov edx, 0x59c59c
mov ecx, 0x105
call fcn.004070ec
mov eax, dword [0x595780]
push dword [eax]
push 0x58e020
mov eax, dword [0x596024]
push dword [eax]
push 0x58e020
mov eax, dword [0x5960e4]
mov edx, 4
call fcn.004074a4
mov eax, dword [esi]
call fcn.0040cb1c
push esi
push 0x24
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [esi], 0
je 0x58db23
push 0x59c59c
mov eax, dword [esi]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
lea eax, [ebp - 0x3c]
mov edx, 0x59c59c
mov ecx, 0x105
call fcn.004070ec
mov edx, dword [ebp - 0x3c]
mov eax, dword [0x595664]
mov ecx, 0x58e020
call fcn.004073c0
mov eax, dword [esi]
call fcn.0040cb1c
push 0
push 0x58e024
call sub.user32.dll_FindWindowW
test eax, eax
jbe 0x58db3d
mov eax, 2
call fcn.004061ec
mov eax, dword [0x595cc8]
mov eax, dword [eax]
call fcn.004bfad0
mov eax, dword [0x595cc8]
mov eax, dword [eax]
xor edx, edx
call fcn.004c180c
mov ecx, dword [0x59608c]
mov eax, dword [0x595cc8]
mov eax, dword [eax]
mov edx, dword [0x580f70]
call fcn.004bfae8
mov eax, dword [0x595cc8]
mov eax, dword [eax]
mov byte [eax + 0x5b], 0
mov eax, dword [0x595cc8]
mov eax, dword [eax]
call fcn.004bfc38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58dba8
lea eax, [ebp - 0x3c]
mov edx, 0xb
call fcn.00406ed4
ret