Function at 0x5053c4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x28], ecx
cmp dword [ebp + 0xc], 0
jne 0x5053ea
push 0x121
push 0x583be0
push 0x583c0c
call fcn.00523662
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x505402
push dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
call fcn.00505179
movzx eax, al
test eax, eax
jne 0x505409
xor al, al
jmp 0x505607
mov byte [ebp - 1], 0
call fcn.004ed951
cmp dword [ebp + 8], eax
jne 0x50550f
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x5054bd
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5054bb
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5054bb
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jbe 0x50548a
push 0x132
push 0x583c14
push str.reqsize___len
call fcn.00523662
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
ja 0x5054b2
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [ebp - 1], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x50550a
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x50550a
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x50550a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x50550a
push dword [ebp + 0x10]
push dword [ebp - 0x24]
push dword [ebp + 0xc]
call fcn.00520290
add esp, 0xc
mov byte [ebp - 1], 1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x505604
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x505604
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x505604
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 0x1c], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x505604
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x34]
jb 0x50559a
ja 0x505583
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x38]
jbe 0x50559a
push 0x156
push 0x583c60
push str.reqsize___total_size
call fcn.00523662
add esp, 0xc
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x3c]
jb 0x5055c5
ja 0x5055b7
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x40]
jbe 0x5055c5
mov eax, dword [ebp - 0x1c]
sub eax, 8
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x44]
ja 0x5055fb
jb 0x5055e2
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x48]
ja 0x5055fb
push dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
add eax, 8
push eax
push dword [ebp + 0xc]
call fcn.00520290
add esp, 0xc
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov al, byte [ebp - 1]
leave
ret 0xc