Function at 0x5d0060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68c47e
mov eax, dword fs:[0]
push eax
sub esp, 0x698
mov eax, dword [0x746694]
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 0x5d01c5
cdq
push edx
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.005b3ce0
add esp, 0xc
push 0x23
push str.SHGetSpecialFolderLocation_failed:
push 0
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.005a5ba0
mov ecx, 0x7460c8
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 0x5d016f
mov ecx, dword [ebp - 0x640]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d0165
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d0485
push edx
push ecx
call fcn.0065d157
add esp, 8
mov edx, dword [ebp - 0x644]
cmp edx, 0x10
jb 0x5d01a9
mov ecx, dword [ebp - 0x658]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d019f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d0485
push edx
push ecx
call fcn.0065d157
add esp, 8
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0x5d0468
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 0x5d02b3
push 0
lea eax, [ebp - 0x658]
push 0
push eax
call fcn.005b3ce0
add esp, 0xc
push 0x1c
mov dword [ebp - 4], 1
push str.SHGetPathFromIDList_failed:
push 0
mov ecx, eax
call fcn.005a5ba0
mov ecx, 0x7460c8
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 0x5d028c
mov ecx, dword [ebp - 0x640]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d0282
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d048a
push edx
push ecx
call fcn.0065d157
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 0x5d0468
lea eax, [ebp - 0x674]
push eax
push dword [ebp + 0x14]
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
je 0x5d02ed
cdq
push edx
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.005b3ce0
add esp, 0xc
push 0x23
mov dword [ebp - 4], 2
push str.SHGetSpecialFolderLocation_failed:
jmp 0x5d0210
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.005be920
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], 0x5d3000
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 0x5d03c1
push 0x1c
push str.SHBrowseForFolder_returned_0
mov ecx, 0x7460c8
call fcn.004484a0
mov dword [edi], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0x5d0455
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 0x5d0445
push 0
lea eax, [ebp - 0x670]
push 0
push eax
call fcn.005b3ce0
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, 0x7460c8
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 0x5d0455
lea eax, [ebp - 0x420]
push eax
push edi
call fcn.005be990
add esp, 8
mov eax, dword [ebp - 0x680]
test eax, eax
je 0x5d0468
push eax
call fcn.00663ce7
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.0065d16a
mov esp, ebp
pop ebp
ret
call fcn.00663c8b
call fcn.00663c8b
int3