Function at 0x46f4f0
Capabilities:
Delete file
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x525608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
lea eax, [esp]
push eax
call fcn.0046f470
add esp, 4
mov eax, dword [esp]
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov dword [esp + 0x34], 0
jne 0x46f559
add eax, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f548
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push ebx
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
push eax
push 0x52fc50
mov byte [esp + 0x40], 1
call dword [sym.imp.rgss102j.dll_RGSSSetStringACP]
mov ecx, dword [esp + 0x4c]
push ecx
lea edx, [esp + 0x14]
push 0x55477c
push edx
call fcn.004024a0
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.rgss102j.dll_RGSSEval]
add esp, 0x18
test eax, eax
je 0x46f5ff
lea eax, [ebx - 0x10]
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f5c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f5ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
lea ecx, [esp + 0xc]
call fcn.004b7640
mov eax, dword [esp + 4]
push 1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 2
call fcn.004b7710
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46f638
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.004b7660
jmp 0x46f5a8
push 0
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
lea ecx, [esp + 0xc]
jne 0x46f657
mov byte [esp + 0x38], 1
call fcn.004b7660
jmp 0x46f5a8
push ebp
push esi
push edi
call fcn.004b7590
mov edi, eax
lea eax, [edi + 4]
push eax
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ebp, eax
lea ecx, [esp + 0x18]
mov dword [ebp], edi
call fcn.004b7590
push eax
add ebp, 4
push ebp
lea ecx, [esp + 0x20]
call fcn.004b7530
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_EmptyClipboard]
mov ecx, dword [esp + 0x4c]
push esi
push ecx
call dword [sym.imp.user32.dll_SetClipboardData]
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.004b74e0
call dword [sym.imp.user32.dll_CloseClipboard]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call fcn.004b7660
lea eax, [ebx - 0x10]
mov byte [esp + 0x44], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f6f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f71a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x3c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret