Function at 0x5d4cb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69325e
mov eax, dword fs:[0]
push eax
sub esp, 0x698
mov eax, dword [0x74e694]
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 0x5d4e15
cdq
push edx
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.005b5810
add esp, 0xc
push 0x23
push str.SHGetSpecialFolderLocation_failed:
push 0
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.005a5ba0
mov ecx, 0x74e0c8
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 0x5d4dbf
mov ecx, dword [ebp - 0x640]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d4db5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d50d5
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov edx, dword [ebp - 0x644]
cmp edx, 0x10
jb 0x5d4df9
mov ecx, dword [ebp - 0x658]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d4def
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d50d5
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0x5d50b8
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 0x5d4f03
push 0
lea eax, [ebp - 0x658]
push 0
push eax
call fcn.005b5810
add esp, 0xc
push 0x1c
mov dword [ebp - 4], 1
push str.SHGetPathFromIDList_failed:
push 0
mov ecx, eax
call fcn.005a5ba0
mov ecx, 0x74e0c8
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 0x5d4edc
mov ecx, dword [ebp - 0x640]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d4ed2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d50da
push edx
push ecx
call fcn.00663ac7
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 0x5d50b8
lea eax, [ebp - 0x674]
push eax
push dword [ebp + 0x14]
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
je 0x5d4f3d
cdq
push edx
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.005b5810
add esp, 0xc
push 0x23
mov dword [ebp - 4], 2
push str.SHGetSpecialFolderLocation_failed:
jmp 0x5d4e60
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.005c34c0
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], 0x5d8540
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 0x5d5011
push 0x1c
push str.SHBrowseForFolder_returned_0
mov ecx, 0x74e0c8
call fcn.004484a0
mov dword [edi], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0x5d50a5
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 0x5d5095
push 0
lea eax, [ebp - 0x670]
push 0
push eax
call fcn.005b5810
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, 0x74e0c8
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 0x5d50a5
lea eax, [ebp - 0x420]
push eax
push edi
call fcn.005c3530
add esp, 8
mov eax, dword [ebp - 0x680]
test eax, eax
je 0x5d50b8
push eax
call fcn.0066a657
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.00663ada
mov esp, ebp
pop ebp
ret
call fcn.0066a5fb
call fcn.0066a5fb
int3