Function at 0x46e63e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4f22c3
call fcn.004eadec
sub esp, 0x64
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 0x1032
push dword [esi + 0x504]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x46e676
mov eax, 0x80004005
jmp 0x46eb81
cmp dword [ebp + 0x10], ebx
push edi
mov dword [ebp - 0x18], ebx
jne 0x46e6ad
push 4
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x46e6ad
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push dword [ebp - 0x18]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [ebp - 0x14]
imul edi, edi, 0x208
lea eax, [edi + 0x16]
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x46e6e4
cmp dword [ebp - 0x18], ebx
je 0x46e6da
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 0x8007000e
jmp 0x46eb80
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
lea eax, [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [ebx], 0x14
mov dword [ebx + 0xc], 1
call fcn.004ae401
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0x14]
lea ecx, [eax + edi]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], eax
lea ecx, [esi + 0xf4]
or eax, 0xffffffff
xor edi, edi
call fcn.00464d77
mov edi, dword [ebp - 0x14]
or eax, 0xffffffff
lea ecx, [esi + 0xf4]
call fcn.00464d77
and dword [ebp - 0x14], 0
push 2
push 0xffffffffffffffff
jmp 0x46e84f
mov ecx, dword [esi + 0xf0]
mov eax, dword [ebp - 0x20]
call fcn.0045d964
mov edi, dword [eax]
test edi, edi
mov dword [ebp - 0x24], edi
je 0x46e764
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and dword [ebp - 4], 0
test edi, edi
jne 0x46e775
or dword [ebp - 4], 0xffffffff
jmp 0x46e84a
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x24]
add ecx, 0xf4
call fcn.00464dea
inc dword [ebp - 0x14]
push edi
lea eax, [ebp - 0x3c]
call fcn.00404868
mov ecx, eax
lea esi, [ebp - 0x1c]
call fcn.0040318a
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x46e7b3
push eax
call fcn.004013aa
cmp dword [ebx + 0x10], 0
je 0x46e7e3
lea ecx, [ebp - 0x1c]
lea esi, [ebp - 0x2c]
call fcn.0040318a
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi - 8]
mov edi, dword [ebp - 0x10]
add eax, eax
push eax
push esi
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi - 8]
add esp, 0xc
lea eax, [edi + eax*2 + 2]
jmp 0x46e80b
lea eax, [ebp - 0x30]
push 0
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00401754
mov esi, dword [ebp - 0x30]
push dword [esi - 8]
mov edi, dword [ebp - 0x10]
push esi
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi - 8]
add esp, 0x14
lea eax, [edi + eax + 1]
add esi, 0xfffffff4
cmp esi, dword [0x51a43c]
mov dword [ebp - 0x10], eax
je 0x46e81f
push esi
call fcn.004013aa
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
jae 0x46e869
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x46e83b
push eax
call fcn.004013aa
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
call fcn.00404842
mov esi, dword [ebp + 8]
push 2
push dword [ebp - 0x20]
lea eax, [esi + 0x504]
push eax
call fcn.004386a1
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x46e746
jmp 0x46e889
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x46e87a
push eax
call fcn.004013aa
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
call fcn.00404842
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
or eax, 0xffffffff
lea ecx, [esi + 0xf4]
call fcn.00464d77
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
je 0x46ea95
mov dword [ebp + 0x10], edi
mov dword [ebp - 4], 2
mov dword [ebp - 0x2c], edi
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x46ea84
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 5
push edi
push dword [esi + 4]
mov dword [ebp + 8], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, edi
jl 0x46ea72
push dword [ebp + 8]
call dword [0x5215e4]
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0x5c]
call fcn.0041c6d3
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push dword [ebp + 8]
call fcn.0040e2e9
push dword [ebp + 8]
call dword [0x5215d0]
lea eax, [ebx + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
jle 0x46e9fc
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x10], edi
push edi
je 0x46e96a
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push edi
push dword [ebp - 0x10]
push edi
push dword [esi + 4]
push eax
call dword [ecx + 0xc]
push dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax*2 + 2]
jmp 0x46e9bf
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040683d
pop ecx
pop ecx
push edi
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
lea edx, [ebp + 8]
push edx
push edi
push eax
push edi
push dword [esi + 4]
push dword [ebp + 0x10]
call dword [ecx + 0xc]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x46e9af
push eax
call fcn.004013aa
push dword [ebp - 0x10]
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax + 1]
cmp dword [ebp - 0x24], edi
mov dword [ebp - 0x10], eax
jl 0x46e9f3
push dword [ebp + 8]
call dword [0x5215e4]
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0x5c]
call fcn.0041c6d3
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push dword [ebp + 8]
call fcn.0040e2e9
push dword [ebp + 8]
call dword [0x5215d0]
dec dword [ebp - 0x20]
jne 0x46e939
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x38]
lea ebx, [esi*4 + 8]
add eax, ebx
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x46ea72
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp esi, edi
lea ecx, [esi - 1]
mov dword [eax], ecx
mov ecx, ebx
lea edx, [eax + 4]
mov dword [ebp - 0x1c], edi
jle 0x46ea58
mov edi, dword [ebp - 0x5c]
sub edx, edi
mov dword [ebp - 0x34], edx
jmp 0x46ea43
mov edx, dword [ebp - 0x34]
cmp dword [ebp - 0x1c], esi
mov dword [edx + edi], ecx
jae 0x46eab3
add ecx, dword [edi]
inc dword [ebp - 0x1c]
add edi, 4
cmp dword [ebp - 0x1c], esi
jl 0x46ea40
push dword [ebp - 0x38]
add eax, ebx
push dword [ebp - 0x3c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea esi, [ebp - 0x40]
call fcn.0040e39e
lea eax, [ebp - 0x5c]
call fcn.00421580
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x46ea95
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x20
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x46eabd
call fcn.004665b9
mov esi, eax
jmp 0x46eabf
push 0x80070057
call fcn.004010ca
xor esi, esi
cmp esi, edi
jne 0x46eaeb
cmp dword [ebp - 0x18], edi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x46ead3
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x28]
call esi
cmp dword [ebp - 0x10], edi
je 0x46e6da
push dword [ebp - 0x10]
call esi
jmp 0x46e6da
mov ax, word [0x5213f4]
or dword [ebp - 0x64], 0xffffffff
xor ebx, ebx
inc ebx
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x18]
cmp eax, edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
je 0x46eb27
push ebx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
mov dword [ebp - 0x48], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
cmp dword [ebp - 0x10], edi
je 0x46eb50
push str.Shell_IDList_Array
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push ebx
lea ecx, [ebp - 0x4c]
push ecx
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x70]
push ecx
mov dword [ebp - 0x48], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov eax, dword [ebp - 0x28]
push ebx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
mov word [ebp - 0x70], 0xf
mov dword [ebp - 0x48], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov ebx, eax
cmp ebx, edi
jl 0x46eb78
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
jmp 0x46eb7e
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc