Function at 0x461152
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4c43cf
call fcn.004bf97c
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_SendMessageA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x46118a
mov eax, 0x80004005
jmp 0x461695
cmp dword [ebp + 0x10], ebx
push edi
mov dword [ebp - 0x18], ebx
jne 0x4611c1
push 4
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x4611c1
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 0x4611f8
cmp dword [ebp - 0x18], ebx
je 0x4611ee
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 0x8007000e
jmp 0x461694
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.0049905a
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.00458050
mov edi, dword [ebp - 0x14]
or eax, 0xffffffff
lea ecx, [esi + 0xf4]
call fcn.00458050
and dword [ebp - 0x14], 0
push 2
push 0xffffffffffffffff
jmp 0x461363
mov ecx, dword [esi + 0xf0]
mov eax, dword [ebp - 0x20]
call fcn.004ad145
mov edi, dword [eax]
test edi, edi
mov dword [ebp - 0x24], edi
je 0x461278
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and dword [ebp - 4], 0
test edi, edi
jne 0x461289
or dword [ebp - 4], 0xffffffff
jmp 0x46135e
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x24]
add ecx, 0xf4
call fcn.004580c3
inc dword [ebp - 0x14]
push edi
lea eax, [ebp - 0x3c]
call fcn.0040405d
mov ecx, eax
lea esi, [ebp - 0x1c]
call fcn.00402f86
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4612c7
push eax
call fcn.00401377
cmp dword [ebx + 0x10], 0
je 0x4612fa
lea eax, [ebp - 0x2c]
push 0
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00401809
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, 0x14
lea eax, [edi + eax*2 + 2]
jmp 0x46131f
lea ecx, [ebp - 0x1c]
lea esi, [ebp - 0x30]
call fcn.00402f86
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, 0xc
lea eax, [edi + eax + 1]
add esi, 0xfffffff4
cmp esi, dword [0x4e4154]
mov dword [ebp - 0x10], eax
je 0x461333
push esi
call fcn.00401377
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
jae 0x46137d
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x46134f
push eax
call fcn.00401377
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
call fcn.00404037
mov esi, dword [ebp + 8]
push 2
push dword [ebp - 0x20]
lea eax, [esi + 0x4f8]
push eax
call fcn.0042ff00
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x46125a
jmp 0x46139d
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x46138e
push eax
call fcn.00401377
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
call fcn.00404037
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
or eax, 0xffffffff
lea ecx, [esi + 0xf4]
call fcn.00458050
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
je 0x4615a9
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 0x461598
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 0x461586
push dword [ebp + 8]
call dword [0x4e5988]
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0x5c]
call fcn.004abb43
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push dword [ebp + 8]
call fcn.004a8bf1
push dword [ebp + 8]
call dword [0x4e5974]
lea eax, [ebx + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
jle 0x461510
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x10], edi
push edi
je 0x46147e
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 0x4614d3
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00401809
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 [0x4e4154]
je 0x4614c3
push eax
call fcn.00401377
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 0x461507
push dword [ebp + 8]
call dword [0x4e5988]
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0x5c]
call fcn.004abb43
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push dword [ebp + 8]
call fcn.004a8bf1
push dword [ebp + 8]
call dword [0x4e5974]
dec dword [ebp - 0x20]
jne 0x46144d
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 0x461586
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 0x46156c
mov edi, dword [ebp - 0x5c]
sub edx, edi
mov dword [ebp - 0x34], edx
jmp 0x461557
mov edx, dword [ebp - 0x34]
cmp dword [ebp - 0x1c], esi
mov dword [edx + edi], ecx
jae 0x4615c7
add ecx, dword [edi]
inc dword [ebp - 0x1c]
add edi, 4
cmp dword [ebp - 0x1c], esi
jl 0x461554
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.00415239
lea eax, [ebp - 0x5c]
call fcn.004062dd
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x4615a9
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 0x4615d1
call fcn.00459802
mov esi, eax
jmp 0x4615d3
push 0x80070057
call fcn.004010a4
xor esi, esi
cmp esi, edi
jne 0x4615ff
cmp dword [ebp - 0x18], edi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x4615e7
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x28]
call esi
cmp dword [ebp - 0x10], edi
je 0x4611ee
push dword [ebp - 0x10]
call esi
jmp 0x4611ee
mov ax, word [0x4e57c4]
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 0x46163b
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 0x461664
push str.Shell_IDList_Array
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
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 0x46168c
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
jmp 0x461692
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