Function at 0x46217d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4c7126
call fcn.004c2540
sub esp, 0x64
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 0x1032
push dword [esi + 0x4f8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x4621b5
mov eax, 0x80004005
jmp 0x4626c0
cmp dword [ebp + 0x10], ebx
push edi
mov dword [ebp - 0x18], ebx
jne 0x4621ec
push 4
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x4621ec
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 0x462223
cmp dword [ebp - 0x18], ebx
je 0x462219
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 0x8007000e
jmp 0x4626bf
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.0049b261
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.00458809
mov edi, dword [ebp - 0x14]
or eax, 0xffffffff
lea ecx, [esi + 0xf4]
call fcn.00458809
and dword [ebp - 0x14], 0
push 2
push 0xffffffffffffffff
jmp 0x46238e
mov ecx, dword [esi + 0xf0]
mov eax, dword [ebp - 0x20]
call fcn.0046cd11
mov edi, dword [eax]
test edi, edi
mov dword [ebp - 0x24], edi
je 0x4622a3
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and dword [ebp - 4], 0
test edi, edi
jne 0x4622b4
or dword [ebp - 4], 0xffffffff
jmp 0x462389
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x24]
add ecx, 0xf4
call fcn.004588c2
inc dword [ebp - 0x14]
push edi
lea eax, [ebp - 0x3c]
call fcn.00404408
mov ecx, eax
lea esi, [ebp - 0x1c]
call fcn.00402de7
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x4622f2
push eax
call fcn.004013aa
cmp dword [ebx + 0x10], 0
je 0x462322
lea ecx, [ebp - 0x1c]
lea esi, [ebp - 0x2c]
call fcn.00402de7
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 0x46234a
lea eax, [ebp - 0x30]
push 0
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00401603
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 [0x4e9154]
mov dword [ebp - 0x10], eax
je 0x46235e
push esi
call fcn.004013aa
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
jae 0x4623a8
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x46237a
push eax
call fcn.004013aa
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
call fcn.004043e2
mov esi, dword [ebp + 8]
push 2
push dword [ebp - 0x20]
lea eax, [esi + 0x4f8]
push eax
call fcn.00430f4a
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x462285
jmp 0x4623c8
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x4623b9
push eax
call fcn.004013aa
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
call fcn.004043e2
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
or eax, 0xffffffff
lea ecx, [esi + 0xf4]
call fcn.00458809
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
je 0x4625d4
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 0x4625c3
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 0x4625b1
push dword [ebp + 8]
call dword [0x4eaf5c]
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0x5c]
call fcn.004165b8
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push dword [ebp + 8]
call fcn.004ab070
push dword [ebp + 8]
call dword [0x4eaf48]
lea eax, [ebx + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
jle 0x46253b
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x10], edi
push edi
je 0x4624a9
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 0x4624fe
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00406406
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 [0x4e9154]
je 0x4624ee
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 0x462532
push dword [ebp + 8]
call dword [0x4eaf5c]
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0x5c]
call fcn.004165b8
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push dword [ebp + 8]
call fcn.004ab070
push dword [ebp + 8]
call dword [0x4eaf48]
dec dword [ebp - 0x20]
jne 0x462478
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 0x4625b1
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 0x462597
mov edi, dword [ebp - 0x5c]
sub edx, edi
mov dword [ebp - 0x34], edx
jmp 0x462582
mov edx, dword [ebp - 0x34]
cmp dword [ebp - 0x1c], esi
mov dword [edx + edi], ecx
jae 0x4625f2
add ecx, dword [edi]
inc dword [ebp - 0x1c]
add edi, 4
cmp dword [ebp - 0x1c], esi
jl 0x46257f
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.00407cf8
lea eax, [ebp - 0x5c]
call fcn.00403662
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x4625d4
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 0x4625fc
call fcn.00459f77
mov esi, eax
jmp 0x4625fe
push 0x80070057
call fcn.004010ca
xor esi, esi
cmp esi, edi
jne 0x46262a
cmp dword [ebp - 0x18], edi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x462612
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x28]
call esi
cmp dword [ebp - 0x10], edi
je 0x462219
push dword [ebp - 0x10]
call esi
jmp 0x462219
mov ax, word [0x4ead98]
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 0x462666
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 0x46268f
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 0x4626b7
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
jmp 0x4626bd
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