Function at 0x1008e470
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094dab
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x101a400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x178], ecx
push 0
push 0
push 0
mov dword [ebp - 0x174], 0
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0x12
call esi
push 0
push 0
push 0
push 0x2c
call esi
push 0
push 2
push 0
push 0x2c
call esi
push 0
push 2
push 0
push 0x12
call esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
push 2
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], 0
push eax
push 1
push 0
mov dword [ebp - 0x11c], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0x34
lea eax, [ebp - 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x50], vtable.ATL::CImage.0
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.1008dc80
mov esi, eax
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 1
push eax
push 0x54
push ebx
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, 0x54
jne 0x1008e60d
mov esi, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [ebp - 0x154]
cdq
mov edi, eax
mov dword [ebp - 0x44], ecx
movzx eax, word [ebp - 0x14a]
xor edi, edx
mov dword [ebp - 0x38], eax
sub edi, edx
imul eax, ecx
mov byte [ebp - 0x34], 1
mov dword [ebp - 0x40], edi
add eax, 0x1f
cdq
and edx, 0x1f
lea ecx, [edx + eax]
mov edx, dword [ebp - 0x15c]
sar ecx, 5
shl ecx, 2
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], edx
test esi, esi
jle 0x1008e63b
lea eax, [edi - 1]
imul eax, ecx
add eax, edx
neg ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], ecx
jmp 0x1008e63b
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x40], eax
movzx eax, word [ebp - 0x15e]
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0
push ecx
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x30], 0xffffffff
mov byte [ebp - 0x33], 0
call fcn.1008ddf0
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.SHLWAPI.dll_IStream_Size]
push dword [ebp - 0x11c]
mov edi, dword [ebp - 0x58]
call dword [sym.imp.SHLWAPI.dll_IStream_Reset]
mov ebx, dword [ebp - 0x18]
mov edx, ebx
mov ecx, dword [ebp - 0x1c]
sub edx, ecx
cmp edi, edx
jae 0x1008e68a
lea eax, [ecx + edi]
mov dword [ebp - 0x18], eax
jmp 0x1008e6ba
jbe 0x1008e6ba
mov eax, dword [ebp - 0x14]
sub eax, ecx
cmp edi, eax
jbe 0x1008e6a1
push ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.1008ec40
jmp 0x1008e6b7
mov eax, edi
sub eax, edx
push eax
push 0
push ebx
lea esi, [ebx + eax]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x1c]
push edi
lea eax, [ecx + 0x10]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.SHLWAPI.dll_IStream_Read]
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0xc0
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], 0x1019b274
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x108], 0x1019040c
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x174], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x11c], eax
lea eax, [ebp - 0x100]
mov ecx, eax
mov dword [ebp - 0x17c], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x100]
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0xb8], 0
mov byte [ebp - 0xc3], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x101a7838]
mov ecx, dword [0x101a783c]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x178]
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x1008e7d7
mov eax, dword [eax]
push ecx
push 0x22
push eax
lea ecx, [ebp - 0x100]
call fcn.1000b9c0
test eax, eax
lea ecx, [ebp - 0x118]
mov eax, dword [ebp - 0x118]
push 0
mov eax, dword [eax + 4]
je 0x1008e807
push 0
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x1008e811
push 2
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
sub ecx, eax
push 0
push ecx
add eax, 0x10
lea ecx, [ebp - 0x108]
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
lea ecx, [ebp - 0x100]
call fcn.1000b940
test eax, eax
jne 0x1008e855
push eax
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x118]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x180]
mov dword [ebp - 0x180], 0x28
mov dword [ebp - 0x17c], 0
call fcn.10001890
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x11c], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0xb4], 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x1008e8e2
mov eax, dword [ebp - 0xf4]
lea ecx, [ebp - 0xc4]
cmp dword [eax], ecx
jne 0x1008e8e2
mov edx, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb0]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xe4]
mov dword [eax], ecx
mov eax, dword [ebp - 0xd4]
mov dword [eax], edx
cmp byte [ebp - 0xb8], 0
je 0x1008e8f6
lea ecx, [ebp - 0x100]
call fcn.1000b940
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xf8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x50]
call fcn.1008dd50
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1008e958
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1008e94e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008e94e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1008f35f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008edee
mov esp, ebp
pop ebp
ret