Function at 0x556230
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x643ec0
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x82030002
mov ecx, dword [esi]
test ecx, ecx
je 0x556276
mov dword [esi], 0
mov eax, dword [ecx]
push ecx
mov dword [ebp - 4], 1
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
push 0x11
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x556513
push 0x11
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x5562d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
js 0x556515
jne 0x5562ba
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
pop edi
movzx eax, ax
pop esi
or eax, 0x83ff0000
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x556297
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 0x20], eax
cmp eax, 0x7c
ja 0x55630c
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
mov eax, 0x82030002
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
xor edi, edi
mov dword [ebp - 0x1c], eax
add eax, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x18], eax
movzx eax, word [ebx + 0xe]
dec eax
cmp eax, 0x1f
ja case.0x556333.2
movzx eax, byte [eax + 0x556540]
jmp dword [eax*4 + 0x556528]
mov edi, dword [ebx + 0x20]
test edi, edi
je 0x556346
cmp edi, 2
ja 0x55634b
mov edi, 2
mov eax, 1
jmp 0x556391
mov edi, dword [ebx + 0x20]
test edi, edi
je 0x55635e
cmp edi, 0x10
ja 0x556363
mov edi, 0x10
mov eax, 2
jmp 0x556391
mov edi, dword [ebx + 0x20]
test edi, edi
je 0x556379
cmp edi, 0x100
ja 0x55637e
mov edi, 0x100
mov eax, 2
jmp 0x556391
mov eax, 5
jmp 0x556391
mov eax, 6
push 0
push 0
push eax
push dword [ebx + 8]
push dword [ebx + 4]
push esi
call fcn.0054f250
add esp, 0x18
mov dword [ebp - 0x10], eax
test eax, eax
js 0x5564cc
lea eax, [edi*4]
add eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 3
mov dword [ebp - 0x10], eax
jne 0x5563c9
add eax, 0xc
mov dword [ebp - 0x10], eax
lea esi, [eax + ebx]
movzx eax, word [ebx + 0xe]
imul eax, dword [ebx + 4]
lea ecx, [ebp - 0x4c]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
mov dword [ebp - 0x1c], eax
call fcn.004487a0
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x4c]
sub eax, dword [ebp - 0x10]
push 1
push eax
push esi
mov dword [ebp - 4], 2
call fcn.00448dd0
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x556428
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.004487e0
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
jmp 0x5564bf
mov esi, dword [ebp + 8]
test edi, edi
je 0x55644d
mov eax, dword [esi]
lea ecx, [edi*4]
push ecx
push dword [ebp - 0x14]
add eax, 0x48
push eax
call fcn.004b3b20
mov eax, dword [esi]
add esp, 0xc
mov dword [eax + 0x40], edi
lea ecx, [ebp - 0x64]
call fcn.005ab660
push dword [ebp - 0x14]
mov eax, dword [ebx + 0x28]
lea edx, [ebp - 0x64]
movzx ecx, word [ebx + 0xe]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x2c]
push 0xff000004
push edx
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x34]
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x34]
push edx
push dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
mov byte [ebp - 4], 3
push dword [eax + 0x450]
lea eax, [ebp - 0x4c]
push dword [ebp - 0x1c]
push eax
push dword [ebx + 8]
push dword [ebx + 4]
push ecx
call fcn.00620e90
add esp, 0x2c
lea ecx, [ebp - 0x64]
mov edi, eax
call fcn.00403120
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.004487e0
test edi, edi
jns 0x5564ef
jmp 0x5564cf
mov edi, 0x80070057
jmp 0x5564cf
mov edi, dword [ebp - 0x10]
mov ecx, dword [esi]
test ecx, ecx
je 0x55650a
mov dword [esi], 0
mov eax, dword [ecx]
push ecx
mov dword [ebp - 4], 5
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi]
test ecx, ecx
je 0x55650a
mov eax, dword [ebx + 0x18]
mov dword [ecx + 0x38], eax
mov edx, dword [esi]
mov eax, dword [ebx + 0x1c]
mov dword [edx + 0x3c], eax
mov ecx, dword [esi]
call fcn.00554b00
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret