Function at 0x61d51c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
xor eax, eax
push ebp
push 0x61d7d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6bfc48]
cmp dword [eax], 0
je 0x61d56e
mov eax, dword [ebp - 0x10]
mov edx, dword [0x6bfc48]
mov edx, dword [edx]
mov ecx, 0
call fcn.0040c54c
jmp 0x61d7a6
lea eax, [ebp - 4]
call fcn.0040b9c8
lea eax, [ebp - 8]
call fcn.0040b9c8
cmp dword [ebp - 8], 0
jne 0x61d5a4
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.006623fc
cmp dword [ebp - 0xc], 0
je 0x61d5a4
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, 0
call fcn.0040c54c
cmp dword [ebp - 8], 0
je 0x61d5b5
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040be84
cmp dword [ebp - 4], 0
jne 0x61d603
xor eax, eax
push ebp
push 0x61d5f1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x224]
call fcn.004da1bc
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.0040c54c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61d603
cmp dword [ebp - 4], 0
jne 0x61d65c
xor eax, eax
push ebp
push 0x61d64a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21e]
push eax
push 0
push 0
push 5
push 0
call sub.shell32.dll_SHGetFolderPathW
lea eax, [ebp - 4]
lea edx, [ebp - 0x21e]
mov ecx, 0x105
push 0
call fcn.0040c174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61d65c
cmp dword [ebp - 4], 0
jne 0x61d6b5
xor eax, eax
push ebp
push 0x61d6a3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21e]
push eax
push 0
push 0
push 5
push 0
call sub.shell32.dll_SHGetFolderPathW
lea eax, [ebp - 4]
lea edx, [ebp - 0x21e]
mov ecx, 0x105
push 0
call fcn.0040c174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61d6b5
cmp dword [ebp - 4], 0
jne 0x61d728
xor eax, eax
push ebp
push 0x61d716
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 5
call fcn.004b0d2c
mov eax, dword [eax + 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 0x14], 0
je 0x61d70c
lea eax, [ebp - 0x21e]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
test eax, eax
je 0x61d70c
lea eax, [ebp - 4]
lea edx, [ebp - 0x21e]
mov ecx, 0x105
push 0
call fcn.0040c174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61d728
cmp dword [ebp - 4], 0
jne 0x61d79b
xor eax, eax
push ebp
push 0x61d789
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 5
call fcn.004b0d2c
mov eax, dword [eax + 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 0x14], 0
je 0x61d77f
lea eax, [ebp - 0x21e]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
test eax, eax
je 0x61d77f
lea eax, [ebp - 4]
lea edx, [ebp - 0x21e]
mov ecx, 0x105
push 0
call fcn.0040c174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61d79b
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.0040be38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61d7dd
lea eax, [ebp - 0x224]
call fcn.0040b9a4
lea eax, [ebp - 0xc]
call fcn.0040b9a4
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040ba3c
pop eax
jmp eax