Function at 0x411e10
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0110
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5f300c]
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 esi, ecx
mov ecx, dword [esi + 0x2a4]
call fcn.00411dd0
test al, al
je 0x412000
push 1
push dword [esi + 0x298]
lea ecx, [ebp - 0x38]
call fcn.0040bb70
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x238]
mov edx, dword [esi + 0x23c]
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
cmp ecx, edx
je 0x411e96
lea ecx, [ecx]
mov eax, dword [ecx + 8]
cmp eax, dword [ecx]
jne 0x411eb2
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 4]
jne 0x411eb2
add ecx, 0x10
cmp ecx, edx
jne 0x411e80
movzx eax, word [esi + 0x7d2]
push eax
call edi
test eax, eax
jne 0x411eb9
movzx eax, word [esi + 0x7d4]
push eax
call edi
test eax, eax
jne 0x411eb9
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x411ec0
mov dword [ebp - 0x30], 2
cmp dword [esi + 0x528], 1
mov ecx, esi
sete al
movzx eax, al
push eax
call fcn.0043fdd0
movzx eax, word [esi + 0x7ce]
push eax
call edi
mov ecx, dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
setne bl
test eax, eax
jne 0x411f33
movzx eax, word [esi + 0x7d0]
push eax
call ecx
mov edi, eax
test edi, edi
je 0x411f2d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x411f2d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp eax, 1
jne 0x411f24
mov eax, dword [ebp - 0x2c]
cmp byte [eax], 2
jne 0x411f24
mov bl, 1
jmp 0x411f26
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [sym.imp.USER32.dll_GetClipboardData]
test bl, bl
mov ebx, 1
jne 0x411f3f
mov ebx, dword [ebp - 0x30]
push 0xd
call ecx
mov edi, eax
test edi, edi
je 0x411feb
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
je 0x411feb
sub esp, 8
lea eax, [ecx + 2]
mov edx, esp
mov dword [ebp - 0x2c], eax
mov dword [edx], ecx
jmp 0x411f70
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411f70
sub ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
push eax
call fcn.0040e410
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x411f9e
mov eax, dword [ebp - 0x28]
push ebx
push dword [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0043fb80
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x411feb
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411fe1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x411fe1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0059e222
add esp, 8
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [ebp - 0x38]
call fcn.0040bc30
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.0059df64
mov esp, ebp
pop ebp
ret