Function at 0x4eda10
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5461d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5ac020]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x5ac020]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x13c], 0
jne 0x4eda70
mov ecx, dword [esi + 0x78]
cmp dword [ecx + 0x184], 0
jbe 0x4eda70
mov eax, dword [esi + 0xb0]
cmp eax, dword [ecx + 0x184]
jae 0x4edcca
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4edcca
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
je 0x4edcca
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4edcbd
push eax
lea ecx, [esp + 0x1c]
call fcn.00421630
mov dword [esp + 0x40], 0
lea edi, [esp + 0x14]
mov dword [esp + 0x14], 0xd
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4edac2
sub edi, ecx
sar edi, 1
push edi
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
call fcn.0040c3d0
cmp eax, 0xffffffff
je 0x4edaf5
push 1
push eax
lea ecx, [esp + 0x20]
call fcn.00401b90
jmp 0x4edad1
lea edi, [esp + 0x14]
mov dword [esp + 0x14], 0xa
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4edb04
sub edi, ecx
sar edi, 1
push edi
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
call fcn.0040c3d0
cmp eax, 0xffffffff
je 0x4edb37
push 1
push eax
lea ecx, [esp + 0x20]
call fcn.00401b90
jmp 0x4edb13
mov ecx, dword [esi + 0x78]
lea edx, [esp + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0xf8]
test eax, eax
je 0x4edcac
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4edcac
cmp dword [esi + 0x13c], 0
je 0x4edbfa
mov ecx, esi
call fcn.004ecf80
mov ecx, dword [esi + 0xf0]
mov eax, dword [esi + 0xf4]
cmp ecx, eax
jae 0x4edbb1
sub eax, ecx
push eax
push ecx
lea ecx, [esi + 0xa0]
call fcn.00401b90
mov ecx, dword [esi + 0xf0]
mov eax, dword [esi + 0xf4]
sub eax, ecx
push eax
push ecx
lea ecx, [esi + 0xb8]
call fcn.00401b90
mov eax, dword [esi + 0xf0]
jmp 0x4edbe3
jbe 0x4edbe9
sub ecx, eax
push ecx
push eax
lea ecx, [esi + 0xa0]
call fcn.00401b90
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0xf0]
sub eax, ecx
push eax
push ecx
lea ecx, [esi + 0xb8]
call fcn.00401b90
mov eax, dword [esi + 0xf4]
mov dword [esi + 0x14c], eax
push dword [esi + 0x14c]
mov ecx, esi
call fcn.004ee7e0
mov edx, dword [esp + 0x28]
xor ecx, ecx
cmp dword [esi + 0x13c], ecx
je 0x4edc1c
mov eax, dword [esi + 0xf0]
mov ecx, dword [esi + 0xf4]
cmp eax, ecx
jae 0x4edc18
sub ecx, eax
jmp 0x4edc1c
sub eax, ecx
mov ecx, eax
mov edi, dword [esi + 0x78]
mov eax, edx
sub eax, ecx
add eax, dword [esi + 0xb0]
cmp eax, dword [edi + 0x184]
jbe 0x4edc4e
mov edi, dword [edi + 0x184]
sub edi, dword [esi + 0xb0]
add edi, ecx
lea ecx, [esp + 0x18]
sub edx, edi
push edx
push edi
call fcn.00401b90
jmp 0x4edc50
mov edi, edx
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
lea ecx, [esi + 0xa0]
cmovae eax, dword [esp + 0x18]
push eax
push dword [esi + 0x14c]
call fcn.0040e3c0
mov eax, dword [esi + 0x78]
lea ecx, [esi + 0xb8]
movzx eax, word [eax + 0x188]
push eax
push edi
call fcn.00401a80
add dword [esi + 0x14c], edi
mov ecx, esi
push dword [esi + 0x14c]
call fcn.004ee7e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402220
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret