Function at 0x46eb3c
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4f3289
call fcn.004ebd20
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 0x46eb74
mov eax, 0x80004005
jmp 0x46f07f
cmp dword [ebp + 0x10], ebx
push edi
mov dword [ebp - 0x18], ebx
jne 0x46ebab
push 4
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x46ebab
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 0x46ebe2
cmp dword [ebp - 0x18], ebx
je 0x46ebd8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 0x8007000e
jmp 0x46f07e
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.004ae9cb
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.00464e22
mov edi, dword [ebp - 0x14]
or eax, 0xffffffff
lea ecx, [esi + 0xf4]
call fcn.00464e22
and dword [ebp - 0x14], 0
push 2
push 0xffffffffffffffff
jmp 0x46ed4d
mov ecx, dword [esi + 0xf0]
mov eax, dword [ebp - 0x20]
call fcn.0045d61b
mov edi, dword [eax]
test edi, edi
mov dword [ebp - 0x24], edi
je 0x46ec62
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and dword [ebp - 4], 0
test edi, edi
jne 0x46ec73
or dword [ebp - 4], 0xffffffff
jmp 0x46ed48
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x24]
add ecx, 0xf4
call fcn.00464edb
inc dword [ebp - 0x14]
push edi
lea eax, [ebp - 0x3c]
call fcn.004042f5
mov ecx, eax
lea esi, [ebp - 0x1c]
call fcn.0040306f
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x46ecb1
push eax
call fcn.004013b2
cmp dword [ebx + 0x10], 0
je 0x46ece1
lea ecx, [ebp - 0x1c]
lea esi, [ebp - 0x2c]
call fcn.0040306f
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 0x46ed09
lea eax, [ebp - 0x30]
push 0
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0040160b
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 [0x51b43c]
mov dword [ebp - 0x10], eax
je 0x46ed1d
push esi
call fcn.004013b2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
jae 0x46ed67
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x46ed39
push eax
call fcn.004013b2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
call fcn.004042cf
mov esi, dword [ebp + 8]
push 2
push dword [ebp - 0x20]
lea eax, [esi + 0x504]
push eax
call fcn.00438570
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x46ec44
jmp 0x46ed87
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x46ed78
push eax
call fcn.004013b2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
call fcn.004042cf
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
or eax, 0xffffffff
lea ecx, [esi + 0xf4]
call fcn.00464e22
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
je 0x46ef93
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 0x46ef82
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 0x46ef70
push dword [ebp + 8]
call dword [0x5225e4]
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0x5c]
call fcn.004c6df0
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push dword [ebp + 8]
call fcn.0040de77
push dword [ebp + 8]
call dword [0x5225d0]
lea eax, [ebx + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
jle 0x46eefa
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x10], edi
push edi
je 0x46ee68
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 0x46eebd
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004063a9
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 [0x51b43c]
je 0x46eead
push eax
call fcn.004013b2
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 0x46eef1
push dword [ebp + 8]
call dword [0x5225e4]
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0x5c]
call fcn.004c6df0
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push dword [ebp + 8]
call fcn.0040de77
push dword [ebp + 8]
call dword [0x5225d0]
dec dword [ebp - 0x20]
jne 0x46ee37
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 0x46ef70
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 0x46ef56
mov edi, dword [ebp - 0x5c]
sub edx, edi
mov dword [ebp - 0x34], edx
jmp 0x46ef41
mov edx, dword [ebp - 0x34]
cmp dword [ebp - 0x1c], esi
mov dword [edx + edi], ecx
jae 0x46efb1
add ecx, dword [edi]
inc dword [ebp - 0x1c]
add edi, 4
cmp dword [ebp - 0x1c], esi
jl 0x46ef3e
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.0040df2c
lea eax, [ebp - 0x5c]
call fcn.0045d630
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x46ef93
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 0x46efbb
call fcn.00466930
mov esi, eax
jmp 0x46efbd
push 0x80070057
call fcn.004010d2
xor esi, esi
cmp esi, edi
jne 0x46efe9
cmp dword [ebp - 0x18], edi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x46efd1
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x28]
call esi
cmp dword [ebp - 0x10], edi
je 0x46ebd8
push dword [ebp - 0x10]
call esi
jmp 0x46ebd8
mov ax, word [0x5223f4]
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 0x46f025
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 0x46f04e
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 0x46f076
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
jmp 0x46f07c
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