Function at 0x5ab570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5463
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x638fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, edx
mov dword [ebp - 0x20], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
test eax, eax
je 0x5ab821
push str.Shell32.dll
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x5ab60c
push str.SHGetKnownFolderIDList
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5ab60c
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push edi
call eax
test eax, eax
je 0x5ab603
push 0x62e4b0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 2
push eax
call fcn.005479aa
mov dword [ebp - 4], 0xffffffff
jmp 0x5ab634
push 0x62e4b0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push eax
call fcn.005479aa
mov eax, 0x5ab627
ret
test esi, esi
je 0x5ab63f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x5ab7b2
lea ecx, [ebp - 0x14]
call fcn.00402be0
mov dword [ebp - 4], 2
mov ecx, edi
mov edx, 0x603ea0
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5ab6ab
add ecx, 4
add edx, 4
sub esi, 4
jae 0x5ab665
mov esi, dword [ebp - 0x14]
mov ebx, 1
mov ecx, ebx
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x5ab69f
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402cf0
mov esi, dword [ebp - 0x14]
push esi
push 0
push 0
push 5
jmp 0x5ab73c
mov ecx, edi
mov edx, 0x603ed0
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5ab6fa
add ecx, 4
add edx, 4
sub esi, 4
jae 0x5ab6b7
mov esi, dword [ebp - 0x14]
mov ebx, 1
mov ecx, ebx
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x5ab6f1
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402cf0
mov esi, dword [ebp - 0x14]
push esi
push 0
push 0
push 0x27
jmp 0x5ab73c
push 0x603ec0
push edi
call fcn.00405920
mov esi, dword [ebp - 0x14]
add esp, 8
mov ebx, 1
test eax, eax
je 0x5ab744
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x5ab735
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402cf0
mov esi, dword [ebp - 0x14]
push esi
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [esi - 8]
push esi
call fcn.0054c667
add esp, 8
test eax, eax
js 0x5ab7a8
cmp eax, dword [esi - 8]
jg 0x5ab7a8
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x5ab777
push esi
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00402b90
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x5ab7b7
mov ecx, dword [ebp - 0x20]
push 0x60ab98
call fcn.004031d0
push dword [ebp - 0x18]
call dword [sym.imp.SHELL32.dll_ILFree]
jmp 0x5ab826
push 0x80070057
call fcn.00402650
mov ebx, 1
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHCreateShellItem]
test eax, eax
jne 0x5ab816
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
call fcn.00403280
mov ecx, dword [ebp - 0x20]
push eax
mov dword [ebp - 4], 3
call fcn.00403220
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00402b90
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 0x18]
call dword [sym.imp.SHELL32.dll_ILFree]
jmp 0x5ab826
mov ebx, 1
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x5ab9fd
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x5ab846
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5ab85b
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x5ab85d
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 4
mov ecx, edi
mov edx, 0x603ea0
mov dword [ebp - 0x20], 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5ab8b5
add ecx, 4
add edx, 4
sub dword [ebp - 0x20], 4
jae 0x5ab878
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, 0x104
or eax, ebx
jge 0x5ab8a9
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402cf0
mov esi, dword [ebp - 0x14]
push esi
push 0
push 0
push 5
jmp 0x5ab93e
mov ecx, edi
mov dword [ebp - 0x20], 0xc
mov edx, 0x603ed0
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5ab8fd
add ecx, 4
add edx, 4
sub dword [ebp - 0x20], 4
jae 0x5ab8c3
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, 0x104
or eax, ebx
jge 0x5ab8f4
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402cf0
mov esi, dword [ebp - 0x14]
push esi
push 0
push 0
push 0x27
jmp 0x5ab93e
mov ecx, 0x603ec0
mov edx, 0xc
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x5ab946
add edi, 4
add ecx, 4
sub edx, 4
jae 0x5ab907
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, 0x104
or eax, ebx
jge 0x5ab937
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402cf0
mov esi, dword [ebp - 0x14]
push esi
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [esi - 8]
push esi
call fcn.0054c667
add esp, 8
test eax, eax
js 0x5ab7a8
cmp eax, dword [esi - 8]
jg 0x5ab7a8
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edi, [esi - 0x10]
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
sub ebx, 0x10
cmp edi, ebx
je 0x5ab9ac
cmp dword [ebx + 0xc], 0
jl 0x5ab9a3
mov eax, dword [edi]
cmp eax, dword [ebx]
jne 0x5ab9a3
push edi
call fcn.004035b0
add esp, 4
mov ecx, ebx
mov esi, eax
call fcn.00402670
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x10]
mov dword [ecx], eax
jmp 0x5ab9ac
push dword [esi - 0xc]
push esi
call fcn.00403620
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x5ab9fd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5ab9fb
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5ab9fb
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret