Function at 0x5a01e6
Capabilities:
Get common file path

Disassembly:
push 0x84
mov eax, 0x60d083
call fcn.004db48b
mov eax, ecx
mov dword [ebp - 0x20], eax
push 0
push 0
push 0x1032
push dword [eax + 0x5a8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
jne 0x5a021f
mov eax, 0x80004005
jmp 0x5a0924
xor ebx, ebx
mov dword [ebp - 0x34], ebx
cmp dword [ebp + 0xc], ebx
jne 0x5a0257
push 4
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x5a0257
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
imul esi, edi, 0x208
lea eax, [esi + 0x16]
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x5a0287
test ebx, ebx
je 0x5a086c
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x5a086c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x28], eax
lea ecx, [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x28]
mov dword [eax], 0x14
mov dword [eax + 0xc], 1
call fcn.005ca213
mov ecx, dword [ebp - 0x28]
push 0
mov dword [ecx + 0x10], eax
lea eax, [ecx + 0x14]
lea ecx, [eax + esi]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x20]
add esi, 0x18c
mov dword [ebp - 0x3c], ecx
mov ecx, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], esi
call fcn.00597870
push ecx
push edi
mov ecx, esi
call fcn.0042c19c
xor esi, esi
push 2
mov dword [ebp - 0x18], esi
push 0xffffffffffffffff
jmp 0x5a04f5
mov ecx, dword [edi + 0x188]
push eax
call fcn.0042b614
mov edi, dword [eax]
mov dword [ebp - 0x38], edi
test edi, edi
je 0x5a030a
lock inc dword [edi + 4]
and dword [ebp - 4], 0
test edi, edi
jne 0x5a031b
or dword [ebp - 4], 0xffffffff
jmp 0x5a04f0
cmp dword [ebp + 0xc], 0
je 0x5a041e
mov ecx, edi
call fcn.00421f50
test eax, eax
je 0x5a0340
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00416ed3
jmp 0x5a04f0
mov eax, dword [0x668294]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.0041be56
push eax
lea ecx, [ebp - 0x24]
call fcn.0040d242
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5a0373
call fcn.00407965
mov esi, dword [ebp - 0x24]
mov ecx, esi
call fcn.00414841
test eax, eax
je 0x5a0416
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x18]
call fcn.0046feca
mov eax, dword [ebp - 0x28]
inc dword [ebp - 0x18]
cmp dword [eax + 0x10], 0
je 0x5a03cf
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040d36e
mov esi, dword [ebp - 0x44]
mov eax, dword [esi - 8]
add eax, eax
push eax
push esi
push dword [ebp - 0x14]
call fcn.004dd610
mov eax, dword [esi - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + eax*2]
add ecx, 2
jmp 0x5a03f4
push 0
mov edx, esi
lea ecx, [ebp - 0x48]
call fcn.00407a7f
mov esi, dword [ebp - 0x48]
push dword [esi - 8]
push esi
push dword [ebp - 0x14]
call fcn.004dd610
mov ecx, dword [ebp - 0x14]
add esp, 0x10
inc ecx
add ecx, dword [esi - 8]
mov dword [ebp - 0x14], ecx
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x5a0407
call fcn.00407965
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x14], eax
jae 0x5a0517
mov esi, dword [ebp - 0x24]
lea ecx, [esi - 0xc]
jmp 0x5a04d5
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.0046feca
lea eax, [ebp - 0x6c]
inc esi
push eax
mov ecx, edi
mov dword [ebp - 0x18], esi
call fcn.0041be56
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d36e
mov ecx, dword [ebp - 0x6c]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5a0456
call fcn.00407965
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x10], 0
je 0x5a048e
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040d36e
mov esi, dword [ebp - 0x4c]
mov eax, dword [esi - 8]
add eax, eax
push eax
push esi
push dword [ebp - 0x14]
call fcn.004dd610
mov eax, dword [esi - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + eax*2]
add ecx, 2
jmp 0x5a04b4
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x50]
push 0
call fcn.00407a7f
mov esi, dword [ebp - 0x50]
push dword [esi - 8]
push esi
push dword [ebp - 0x14]
call fcn.004dd610
mov ecx, dword [ebp - 0x14]
add esp, 0x10
inc ecx
add ecx, dword [esi - 8]
mov dword [ebp - 0x14], ecx
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x5a04c7
call fcn.00407965
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
add ecx, 0xfffffff4
cmp dword [ebp - 0x14], eax
jae 0x5a051d
cmp ecx, 0x668010
je 0x5a04e2
call fcn.00407965
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00416ed3
mov esi, dword [ebp - 0x18]
push 2
push dword [ebp - 0x40]
mov edi, dword [ebp - 0x20]
push 0x100c
push dword [edi + 0x5a8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
jne 0x5a02f1
jmp 0x5a0535
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5a052a
call fcn.00407965
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00416ed3
mov esi, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x30]
push esi
call fcn.0042c19c
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x5a0830
test esi, esi
jne 0x5a05c3
mov eax, dword [0x668294]
push 0x8ca0
push ecx
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
call fcn.0041129f
mov eax, dword [0x668294]
push 0x81f6
push ecx
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0041129f
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x30
push edi
push esi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0xc]
mov esi, 0x668010
cmp ecx, esi
je 0x5a05a4
call fcn.00407965
lea ecx, [edi - 0xc]
cmp ecx, esi
je 0x5a05b0
call fcn.00407965
test ebx, ebx
je 0x5a05bb
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
jmp 0x5a0924
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 2
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x5a081f
lea ecx, [ebp - 0x64]
call fcn.0041b9fb
mov ebx, esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], ebx
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 5
push eax
mov eax, dword [ebp - 0x20]
push esi
mov dword [ebp + 0xc], esi
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x5a080f
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_ILGetSize]
mov esi, eax
lea ecx, [ebp - 0x64]
push esi
call fcn.0041ba0f
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x5a066c
test esi, esi
je 0x5a066c
mov eax, esi
mov ecx, esi
and eax, 0x7ff
sub ecx, eax
add ecx, 0x800
push ecx
lea ecx, [ebp - 0x70]
call fcn.00419163
mov ebx, dword [ebp - 0x68]
test eax, eax
je 0x5a066c
mov eax, dword [ebp - 0x6c]
push esi
add eax, ebx
push edi
push eax
call fcn.004dd610
mov ebx, esi
add esp, 0xc
mov dword [ebp - 0x68], ebx
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_ILFree]
mov edi, dword [ebp - 0x18]
test edi, edi
jle 0x5a078b
mov eax, dword [ebp - 0x28]
xor esi, esi
cmp dword [eax + 0x10], esi
je 0x5a06b9
mov eax, dword [ebp - 0x2c]
lea edx, [ebp + 0xc]
push esi
push edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
push esi
push dword [ebp - 0x1c]
push esi
push dword [edx + 4]
push eax
call dword [ecx + 0xc]
push dword [ebp - 0x1c]
mov esi, eax
call fcn.00505bb3
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + eax*2]
add ecx, 2
jmp 0x5a070e
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x50]
mov esi, dword [ebp - 0x2c]
push 0
call fcn.00407b07
pop ecx
push 0
lea edx, [ebp + 0xc]
mov byte [ebp - 4], 6
mov ecx, dword [esi]
push edx
push 0
push dword [eax]
mov eax, dword [ebp - 0x20]
push 0
push dword [eax + 4]
push esi
call dword [ecx + 0xc]
mov byte [ebp - 4], 5
mov esi, eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5a06ff
call fcn.00407965
push dword [ebp - 0x1c]
call fcn.00505070
pop ecx
mov ecx, dword [ebp - 0x1c]
inc ecx
add ecx, eax
mov dword [ebp - 0x1c], ecx
test esi, esi
js 0x5a077f
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_ILGetSize]
mov esi, eax
lea ecx, [ebp - 0x64]
push esi
call fcn.0041ba0f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x5a0776
test esi, esi
je 0x5a0776
lea edi, [ebx + esi]
cmp dword [ebp - 0x70], edi
jae 0x5a075e
mov eax, edi
lea ecx, [ebp - 0x70]
and eax, 0xfffff800
add eax, 0x800
push eax
call fcn.00419163
mov ebx, dword [ebp - 0x68]
test eax, eax
je 0x5a0773
mov eax, dword [ebp - 0x4c]
push esi
push eax
mov eax, dword [ebp - 0x6c]
add eax, ebx
push eax
call fcn.004dd610
mov ebx, edi
add esp, 0xc
mov dword [ebp - 0x68], ebx
mov edi, dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_ILFree]
sub edi, 1
mov dword [ebp - 0x18], edi
jne 0x5a0680
mov eax, dword [ebp - 0x60]
lea esi, [eax*4 + 8]
lea eax, [ebx + esi]
mov dword [ebp - 0x48], esi
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x5a080f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x3c], edx
lea ecx, [eax - 1]
mov dword [edx], ecx
mov ecx, esi
xor esi, esi
mov dword [ebp - 0x40], ecx
test eax, eax
jle 0x5a07f6
mov edi, eax
mov ebx, edx
mov dword [ebx + esi*4 + 4], ecx
lea ecx, [ebp - 0x64]
push esi
call fcn.0041ba49
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
inc esi
mov dword [ebp - 0x40], ecx
cmp esi, edi
jl 0x5a07d3
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x48]
push ebx
push dword [ebp - 0x6c]
add eax, edx
push eax
call fcn.004dd610
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x70]
call fcn.00419148
lea ecx, [ebp - 0x64]
call fcn.0041ba68
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5a0830
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [ebp - 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x20
call fcn.004da873
pop ecx
mov ecx, eax
mov dword [ebp - 0x54], eax
call fcn.00415bec
mov esi, eax
test esi, esi
jne 0x5a0876
mov eax, dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x5a0862
push eax
call esi
push ebx
call esi
test edi, edi
je 0x5a086c
push edi
call esi
mov eax, 0x8007000e
jmp 0x5a0924
mov ax, word [0x673520]
xor ecx, ecx
or dword [ebp - 0x84], 0xffffffff
inc ecx
mov word [ebp - 0x90], ax
xor eax, eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], ecx
test eax, eax
je 0x5a08c3
push ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x78], eax
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0x90]
push ecx
push esi
call dword [eax + 0x1c]
test edi, edi
je 0x5a08ef
push str.Shell_IDList_Array
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push 1
lea ecx, [ebp - 0x7c]
mov word [ebp - 0x90], ax
push ecx
mov dword [ebp - 0x78], edi
lea ecx, [ebp - 0x90]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x1c]
push 0xf
pop eax
push 1
lea ecx, [ebp - 0x7c]
mov word [ebp - 0x90], ax
push ecx
mov dword [ebp - 0x78], ebx
lea ecx, [ebp - 0x90]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x1c]
mov edi, eax
test edi, edi
js 0x5a091c
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
jmp 0x5a0922
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, edi
call fcn.004db459
ret 8