Function at 0x4a2510
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5673fd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xff0
mov eax, dword [0x5ef300]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xff4], ecx
lea ecx, [ebp - 0xfe0]
call fcn.0041fce0
call fcn.0041f660
lea eax, [ebp - 0xfe0]
push eax
call dword [0x5ffdf4]
add esp, 4
test al, al
je 0x4a285e
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0xf78]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a25a0
sub ecx, edx
lea eax, [ebp - 0xf78]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00419c10
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
test esi, esi
je 0x4a2778
push 0
mov byte [ebp - 0xfe1], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4a26f7
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [esi*2 + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4a2663
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xfe8], eax
test eax, eax
je 0x4a265c
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
cmova ecx, edi
lea edx, [eax*2 + 2]
mov eax, dword [ebp - 0xfe8]
push edx
push ecx
push eax
call fcn.0052d740
add esp, 0xc
push dword [ebp - 0xfe8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov byte [ebp - 0xfe1], 1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp byte [ebp - 0xfe1], 0
je 0x4a26f7
mov esi, dword [sym.imp.utilities4.dll_public:_void___thiscall_SOUI::SStringW::constructor_wchar_t_const__]
lea ecx, [ebp - 0xff0]
push str._string_common_box_syssetting_copy_success
call esi
sub esp, 8
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0xfe8], esp
push 0x58242c
call esi
sub esp, 8
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0xff8], esp
push 0x58242c
call esi
sub esp, 8
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0xffc], esp
push 0x58242c
call esi
push 0
push 2
sub esp, 8
mov byte [ebp - 4], 4
mov eax, esp
lea ecx, [ebp - 0xff0]
push ecx
push eax
call dword [sym.imp.soui4.dll_public:_static_class_SOUI::SUiDef____cdecl_SOUI::SSingleton2_class_SOUI::SUiDef_::getSingletonPtr_void_]
mov ecx, eax
call dword [sym.imp.soui4.dll_public:_class_SOUI::SStringW___thiscall_SOUI::SUiDef::GetString_class_SOUI::SStringW_const__]
mov byte [ebp - 4], 1
jmp 0x4a27f4
mov esi, dword [sym.imp.utilities4.dll_public:_void___thiscall_SOUI::SStringW::constructor_wchar_t_const__]
lea ecx, [ebp - 0xff0]
push str._string_common_box_syssetting_copy_failed
call esi
sub esp, 8
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x1000], esp
push 0x58242c
call esi
sub esp, 8
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0xffc], esp
push 0x58242c
call esi
sub esp, 8
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0xff8], esp
push 0x58242c
call esi
push 0
push 3
sub esp, 8
mov byte [ebp - 4], 8
mov eax, esp
lea ecx, [ebp - 0xff0]
push ecx
push eax
call dword [sym.imp.soui4.dll_public:_static_class_SOUI::SUiDef____cdecl_SOUI::SSingleton2_class_SOUI::SUiDef_::getSingletonPtr_void_]
mov ecx, eax
call dword [sym.imp.soui4.dll_public:_class_SOUI::SStringW___thiscall_SOUI::SUiDef::GetString_class_SOUI::SStringW_const__]
mov byte [ebp - 4], 5
jmp 0x4a27f4
mov esi, dword [sym.imp.utilities4.dll_public:_void___thiscall_SOUI::SStringW::constructor_wchar_t_const__]
lea ecx, [ebp - 0xff0]
push str._string_common_box_syssetting_copy_empty
call esi
sub esp, 8
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x1000], esp
push 0x58242c
call esi
sub esp, 8
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0xffc], esp
push 0x58242c
call esi
sub esp, 8
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0xff8], esp
push 0x58242c
call esi
push 0
push 3
sub esp, 8
mov byte [ebp - 4], 0xc
mov eax, esp
lea ecx, [ebp - 0xff0]
push ecx
push eax
call dword [sym.imp.soui4.dll_public:_static_class_SOUI::SUiDef____cdecl_SOUI::SSingleton2_class_SOUI::SUiDef_::getSingletonPtr_void_]
mov ecx, eax
call dword [sym.imp.soui4.dll_public:_class_SOUI::SStringW___thiscall_SOUI::SUiDef::GetString_class_SOUI::SStringW_const__]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x340]
call fcn.00490b10
lea ecx, [ebp - 0xff0]
call dword [sym.imp.utilities4.dll_public:_void___thiscall_SOUI::SStringW::destructor_void_]
mov eax, dword [ebp - 0xff4]
push dword [eax + 0x20]
lea eax, [ebp - 0x340]
push eax
call fcn.00490450
lea ecx, [ebp - 0x340]
call fcn.00490c80
mov eax, dword [ebp - 0x18]
cmp eax, 7
jbe 0x4a285e
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4a2854
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a287c
push ecx
push edi
call fcn.0052b438
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052b3fa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0053775e
int3