Function at 0x5c8588
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5c8a7b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x44b954]
call fcn.00404684
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x23c]
test al, al
je 0x5c889c
mov eax, dword [ebp - 8]
call fcn.00462790
push eax
call sub.user32.dll_OpenClipboard
push 0x5c8a8c
call sub.user32.dll_RegisterClipboardFormatA
mov ebx, eax
call sub.user32.dll_CloseClipboard
mov edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.0044c038
test al, al
je 0x5c889c
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x194]
xor eax, eax
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x5c8875
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x5c8646
call fcn.00405014
jmp 0x5c8a5d
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
test ebx, ebx
jne 0x5c866f
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.004046b4
call fcn.00405014
jmp 0x5c8a5d
mov dl, 1
mov eax, dword [0x41afa0]
call fcn.00404684
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x5c8857
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalSize
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 0x20]
call fcn.004203fc
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.004201b8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x728]
cmp byte [eax + 0x10], 0
jne 0x5c86cc
cmp byte [eax + 0xf], 0
jne 0x5c86cc
cmp byte [eax + 0x11], 1
jne 0x5c8773
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x591744]
call fcn.00426e00
mov ebx, eax
mov edx, ebx
mov eax, dword [ebp - 0x20]
call fcn.00420528
mov eax, dword [ebp - 8]
call fcn.005aaa34
mov edx, dword [ebx + 0x30]
add edx, dword [ebp - 0xc]
cmp eax, edx
jg 0x5c8716
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x728]
cmp byte [eax + 0xf], 0
je 0x5c8716
mov edx, dword [ebx + 0x30]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.005aa9b8
mov eax, dword [ebp - 8]
call fcn.005aa9b0
mov edx, dword [ebx + 0x34]
add edx, dword [ebp - 0x10]
cmp eax, edx
jg 0x5c8745
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x728]
cmp byte [eax + 0x10], 0
je 0x5c8745
mov edx, dword [ebx + 0x34]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.005aa8c4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x728]
cmp byte [eax + 0x11], 1
jne 0x5c8767
push 1
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x270]
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.004201b8
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0041b908
lea edx, [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.005c577c
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.004201b8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x591744]
call fcn.00426e00
mov ebx, eax
mov edx, ebx
mov eax, dword [ebp - 0x20]
call fcn.00420528
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x30]
add eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x34]
add eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
call fcn.00462790
cmp eax, dword [ebx + 0x44]
jne 0x5c8807
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x3382]
push eax
mov eax, dword [ebp - 8]
lea edx, [eax + 0x337a]
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x19c]
jmp 0x5c8831
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x3382]
push eax
lea ecx, [ebp - 0x3c]
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.0041b908
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x19c]
mov eax, dword [ebx + 0x30]
imul dword [ebx + 0x34]
mov dword [ebp - 0x14], eax
mov eax, ebx
call fcn.004046b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c885e
mov eax, dword [ebp - 0x20]
call fcn.004046b4
ret
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x728]
cmp byte [eax + 0xc], 0
je 0x5c89b8
mov eax, dword [ebp - 8]
call fcn.00462790
push eax
call sub.user32.dll_OpenClipboard
push 0x5c8aa4
call sub.user32.dll_RegisterClipboardFormatA
mov ebx, eax
call sub.user32.dll_CloseClipboard
mov edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.0044c038
test al, al
je 0x5c89b8
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x18]
push ebx
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x5c893d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x1c], 0
je 0x5c8913
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x18], eax
jmp 0x5c8918
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c8944
cmp dword [ebp - 0x1c], 0
je 0x5c8934
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
mov dx, 1
mov eax, dword [ebp - 0x24]
call fcn.0044c038
test al, al
jne 0x5c89d5
mov eax, dword [ebp - 0x24]
call fcn.004046b4
jmp 0x5c8a5d
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x5c8a56
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x1c], 0
je 0x5c8a09
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x18], eax
jmp 0x5c8a0e
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5c8a29
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.005c7f20
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c8a5d
cmp dword [ebp - 0x1c], 0
je 0x5c8a45
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.004046b4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c8a82
lea eax, [ebp - 0x40]
call fcn.00405634
lea eax, [ebp - 4]
call fcn.00405634
ret