Function at 0x4665f0
Capabilities:
Get common file path
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x52e89b
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x644], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x589758]
xor eax, esp
push eax
lea eax, [esp + 0x65c]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
xor ebp, ebp
push ebp
mov esi, ecx
mov eax, dword [esi + 0x62c]
push ebp
push 0x1032
push eax
mov dword [esp + 0x34], esi
call ebx
mov edi, eax
xor eax, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.004a4f4a
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x46667f
push 0x80004005
call fcn.00401310
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x664], ebp
cmp dword [0x58b274], ebp
je 0x4666bf
cmp edi, ebp
je 0x4666bf
mov ecx, dword [esi + 0x62c]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call ebx
mov ebp, eax
add ebp, 1
jne 0x46670c
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov dword [esp + 0x664], ecx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4666e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x65c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x644]
xor ecx, esp
call fcn.004f6592
add esp, 0x654
ret 4
lea ecx, [esp + 0x34c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x7bf858]
lea edx, [esp + 0x14]
push edx
add ecx, 0x134
call fcn.00412710
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x450]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x466742
lea eax, [esp + 0x450]
push 0x2f
push eax
call fcn.004f6860
add esp, 8
test eax, eax
je 0x4667cd
inc eax
xor ecx, ecx
jmp 0x466770
mov dl, byte [esp + ecx + 0x34c]
mov byte [esp + ecx + 0x40], dl
inc ecx
test dl, dl
jne 0x466770
cmp byte [eax], dl
je 0x4667e0
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x466786
lea edi, [esp + 0x40]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x466794
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x40]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4667b1
mov cx, word [0x539558]
mov esi, dword [esp + 0x24]
mov word [edi], cx
mov edi, dword [esp + 0x1c]
jmp 0x4667e0
xor eax, eax
nop
mov cl, byte [esp + eax + 0x34c]
mov byte [esp + eax + 0x40], cl
inc eax
test cl, cl
jne 0x4667d0
imul edi, edi, 0x104
push edi
mov dword [esp + 0x1c], 0
call fcn.00496dbd
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x466a3e
push edi
push 0
push eax
call fcn.004f67e0
add esp, 0xc
jmp 0x46681b
mov ebp, dword [esp + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x7c8f8c], 0
jne 0x466950
mov edx, dword [esi + 0x62c]
push 2
dec ebp
push ebp
push 0x100c
push edx
mov byte [esp + 0x258], 0
call ebx
inc eax
push 0x104
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24c]
push eax
push 0
lea ebx, [esi + 0x60c]
push ebp
mov ecx, ebx
call fcn.004a284b
cmp ebp, 0xffffffff
je 0x466945
lea ecx, [esp + 0x248]
push 0x53b8f8
push ecx
call fcn.00509315
add esp, 8
test eax, eax
je 0x466945
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x40]
mov byte [esp + eax + 0x144], cl
inc eax
test cl, cl
jne 0x466890
lea eax, [esp + 0x248]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4668b0
lea edi, [esp + 0x144]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4668c1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x144]
mov ecx, eax
mov edx, esi
sub edx, ecx
mov ecx, dword [esp + 0x1c]
add edx, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4668f0
lea eax, [esp + 0x144]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x466904
sub eax, edx
lea edx, [esi + eax + 1]
push 0x104
lea eax, [esp + 0x558]
push eax
push 2
push ebp
mov ecx, ebx
mov dword [esp + 0x28], edx
call fcn.004a284b
lea ecx, [esp + 0x554]
push str._DIR_
push ecx
call fcn.00509315
mov esi, dword [esp + 0x2c]
add esp, 8
cmp dword [esp + 0x20], 0
jne 0x466811
mov ebx, dword [esp + 0x66c]
push ebx
lea edx, [esp + 0x350]
push edx
mov ecx, esi
call fcn.00463d20
cmp dword [0x7c8f8c], 0
jne 0x466a3e
push str.Preferred_DropEffect
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 4
push 0x2042
mov dword [esp + 0x28], eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push edi
call esi
xor ecx, ecx
test ebx, ebx
setne cl
push edi
inc ecx
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [esp + 0x18]
add ebx, 0x20
push ebx
push 0x2042
call ebp
mov ebp, eax
push ebp
call esi
push ebx
mov esi, eax
push 0
push esi
call fcn.004f67e0
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x28]
mov eax, 0x18
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x24]
push eax
mov dword [esi + 0x14], edx
add esi, 0x18
push ebx
push esi
mov dword [esi - 4], 0x72617473
call fcn.004f7b80
push ebx
call fcn.00496dc8
add esp, 0x1c
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x466a3e
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push ebp
push 0xf
call esi
mov ecx, dword [esp + 0x20]
push edi
push ecx
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0x14]
call fcn.004023f0
jmp 0x4666e2