Function at 0x5697f8
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov byte [ebp - 9], 0
call fcn.00642efc
test al, al
je 0x569a50
xor edx, edx
push ebp
push 0x569a49
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x98ed20]
push eax
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
je 0x569a36
cmp byte [ebx + 0x9ec], 0
je 0x56984a
mov eax, ebx
call fcn.0056b9d4
mov eax, dword [0x98ed20]
push eax
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x569a36
jmp 0x569875
mov eax, dword [ebx + 0x948]
mov esi, dword [eax]
mov edx, esi
mov eax, ebx
call fcn.00557a40
cmp dword [ebx + 0x94c], 0
jg 0x569864
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
mov dl, 1
mov eax, dword [0x41f018]
call fcn.00403dfc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalSize
mov ecx, eax
mov edx, esi
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [ebp - 0x14]
call fcn.00424530
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
jge 0x5698d1
neg eax
adc edx, 0
neg edx
cmp edx, 0
jne 0x5698de
cmp eax, 0xa
setbe al
jmp 0x5698e1
setle al
mov byte [ebp - 9], al
cmp dword [ebp + 0xc], 0
jne 0x5698f2
cmp dword [ebp + 8], 0
jbe 0x569934
jmp 0x5698f4
jle 0x569934
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [ebp - 0x14]
call fcn.00424530
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
jge 0x569918
neg eax
adc edx, 0
neg edx
cmp edx, 0
jne 0x569924
cmp eax, 0xa
jbe 0x569934
jmp 0x569926
jle 0x569934
mov dword [ebp - 4], 0xa
mov dword [ebp - 8], 0xa
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.0042451c
mov dl, 1
mov eax, dword [0x62a81c]
call fcn.00632eb8
mov dword [ebp - 0x20], eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x5fc9b4]
call fcn.005fceb8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.00611784
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 8]
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
jl 0x569a0b
inc eax
mov dword [ebp - 0x24], eax
push 0
mov cl, byte [0x975dd0]
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.005587f4
mov esi, eax
mov edx, esi
mov eax, ebx
call fcn.005402a4
mov edx, dword [ebp - 4]
add dword [eax], edx
mov edx, dword [ebp - 4]
add dword [eax + 8], edx
mov edx, dword [ebp - 8]
add dword [eax + 4], edx
mov edx, dword [ebp - 8]
add dword [eax + 0xc], edx
cmp byte [eax + 0x10], 3
jne 0x5699e0
cmp byte [eax + 0x1dc], 0
je 0x5699e0
mov edx, dword [ebp - 4]
add dword [eax + 0x114], edx
mov edx, dword [ebp - 8]
add dword [eax + 0x118], edx
cmp byte [eax + 0x10], 5
jne 0x5699fd
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.0060ccb0
mov ecx, dword [ebp - 0x20]
mov edx, esi
mov eax, ebx
call fcn.0053fac0
mov edx, esi
mov eax, ebx
call fcn.0053ff14
dec dword [ebp - 0x24]
jne 0x56998b
mov eax, dword [ebp - 0x1c]
call fcn.00403e2c
mov eax, dword [ebp - 0x20]
call fcn.00403e2c
mov eax, dword [ebp - 0x14]
call fcn.00403e2c
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x88]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x569a50
call sub.user32.dll_CloseClipboard
ret
mov al, byte [ebp - 9]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8