Function at 0x61d7e4
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
mov ebx, eax
xor eax, eax
push ebp
push 0x61daea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6bfb74]
cmp dword [eax], 0
je 0x61d838
mov eax, dword [ebp - 0x10]
mov edx, dword [0x6bfb74]
mov edx, dword [edx]
mov ecx, 0
call fcn.0040c54c
jmp 0x61daba
lea eax, [ebp - 4]
call fcn.0040b9c8
xor eax, eax
push ebp
push 0x61d862
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0061ca24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61d874
cmp dword [ebp - 0xc], 0
je 0x61d8e0
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 0xc]
call fcn.004292e0
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 0xc]
call fcn.0040bddc
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x61db04
call fcn.00612cf8
test eax, eax
jle 0x61d8ca
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x61db24
call fcn.00612cf8
test eax, eax
jle 0x61d8ca
lea eax, [ebp - 0xc]
call fcn.0040b9a4
cmp dword [ebp - 0xc], 0
je 0x61d8e0
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, 0
call fcn.0040c54c
cmp dword [ebp - 8], 0
jne 0x61d906
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00661c1c
cmp dword [ebp - 0xc], 0
je 0x61d906
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, 0
call fcn.0040c54c
cmp dword [ebp - 8], 0
je 0x61d917
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040be84
cmp dword [ebp - 4], 0
jne 0x61d970
xor eax, eax
push ebp
push 0x61d95e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21e]
push eax
push 0
push 0
push 0x10
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 0x61d970
cmp dword [ebp - 4], 0
jne 0x61d9c9
xor eax, eax
push ebp
push 0x61d9b7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21e]
push eax
push 0
push 0
push 0
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 0x61d9c9
cmp dword [ebp - 4], 0
jne 0x61da3c
xor eax, eax
push ebp
push 0x61da2a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0
call fcn.004b0d2c
mov eax, dword [eax + 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 0x14], 0
je 0x61da20
lea eax, [ebp - 0x21e]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
test eax, eax
je 0x61da20
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 0x61da3c
cmp dword [ebp - 4], 0
jne 0x61daaf
xor eax, eax
push ebp
push 0x61da9d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0x10
call fcn.004b0d2c
mov eax, dword [eax + 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 0x14], 0
je 0x61da93
lea eax, [ebp - 0x21e]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
test eax, eax
je 0x61da93
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 0x61daaf
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 0x61daf1
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