Function at 0x5cfcd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68bf0e
mov eax, dword fs:[0]
push eax
sub esp, 0x698
mov eax, dword [0x745694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x678], edi
mov dword [ebp - 0x678], eax
mov eax, dword [ebp + 0x18]
push 0
mov dword [ebp - 0x684], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x674]
mov dword [ebp - 0x674], 0
push eax
push dword [ebp + 0x10]
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
je 0x5cfe35
cdq
push edx
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.005b3cc0
add esp, 0xc
push 0x23
push str.SHGetSpecialFolderLocation_failed:
push 0
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.005a5ba0
mov ecx, 0x7450c8
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x640], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x640]
push eax
movq qword [ebp - 0x630], xmm0
call fcn.005a3660
mov edx, dword [ebp - 0x62c]
cmp edx, 0x10
jb 0x5cfddf
mov ecx, dword [ebp - 0x640]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5cfdd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d00f5
push edx
push ecx
call fcn.0065cc27
add esp, 8
mov edx, dword [ebp - 0x644]
cmp edx, 0x10
jb 0x5cfe19
mov ecx, dword [ebp - 0x658]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5cfe0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d00f5
push edx
push ecx
call fcn.0065cc27
add esp, 8
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0x5d00d8
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x674]
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp esi, 1
je 0x5cff23
push 0
lea eax, [ebp - 0x658]
push 0
push eax
call fcn.005b3cc0
add esp, 0xc
push 0x1c
mov dword [ebp - 4], 1
push str.SHGetPathFromIDList_failed:
push 0
mov ecx, eax
call fcn.005a5ba0
mov ecx, 0x7450c8
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x640], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x640]
push eax
movq qword [ebp - 0x630], xmm0
call fcn.005a3660
mov edx, dword [ebp - 0x62c]
cmp edx, 0x10
jb 0x5cfefc
mov ecx, dword [ebp - 0x640]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5cfef2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d00fa
push edx
push ecx
call fcn.0065cc27
add esp, 8
lea ecx, [ebp - 0x658]
call fcn.00448860
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0x5d00d8
lea eax, [ebp - 0x674]
push eax
push dword [ebp + 0x14]
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
je 0x5cff5d
cdq
push edx
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.005b3cc0
add esp, 0xc
push 0x23
mov dword [ebp - 4], 2
push str.SHGetSpecialFolderLocation_failed:
jmp 0x5cfe80
mov eax, dword [ebp - 0x684]
mov dword [ebp - 0x6a4], eax
mov eax, dword [ebp - 0x674]
mov dword [ebp - 0x6a0], eax
mov dword [ebp - 0x680], 0
mov dword [ebp - 0x67c], 0
lea eax, [ebp - 0x680]
mov dword [ebp - 4], 3
push eax
push dword [ebp - 0x678]
call fcn.005be590
mov eax, dword [ebp - 0x680]
add esp, 8
mov dword [ebp - 0x698], eax
lea eax, [ebp - 0x628]
mov dword [ebp - 0x69c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x68c], eax
lea eax, [ebp - 0x6a4]
push eax
mov dword [ebp - 0x694], 0x41
mov dword [ebp - 0x690], 0x5d2c70
mov dword [ebp - 0x688], 0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
push dword [ebp - 0x674]
mov esi, eax
mov dword [ebp - 0x678], esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
jne 0x5d0031
push 0x1c
push str.SHBrowseForFolder_returned_0
mov ecx, 0x7450c8
call fcn.004484a0
mov dword [edi], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0x5d00c5
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x678]
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp esi, 1
je 0x5d00b5
push 0
lea eax, [ebp - 0x670]
push 0
push eax
call fcn.005b3cc0
push eax
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 4
push str.SHGetPathFromIDList_failed:
push eax
call fcn.005a1e50
add esp, 0x18
mov ecx, 0x7450c8
push eax
call fcn.005a3660
lea ecx, [ebp - 0x640]
call fcn.00448860
lea ecx, [ebp - 0x670]
call fcn.00448860
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0x5d00c5
lea eax, [ebp - 0x420]
push eax
push edi
call fcn.005be600
add esp, 8
mov eax, dword [ebp - 0x680]
test eax, eax
je 0x5d00d8
push eax
call fcn.006637b7
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0065cc3a
mov esp, ebp
pop ebp
ret
call fcn.0066375b
call fcn.0066375b
int3