Function at 0x1001cd32
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1001cfe7
mov eax, dword [esi + 0x8cc]
call fcn.100034fb
mov eax, dword [esi + 0x7ec]
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
xor ebx, ebx
cmp eax, dword [esi + 0x7e8]
jne 0x1001cd85
movzx eax, word [esi + 0xc70]
push eax
call edi
mov byte [esp + 0x10], 1
test eax, eax
jne 0x1001cd89
mov byte [esp + 0x10], bl
mov eax, esi
call fcn.1000cd69
mov eax, esi
call fcn.10007b90
mov dword [esp + 0x1c], eax
movzx eax, word [esi + 0xc6e]
push eax
call edi
mov edi, dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
setne al
push 0xd
mov byte [esp + 0x1c], al
call edi
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x1001ceb2
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x1001ceb2
mov eax, esi
call fcn.10010e38
test al, al
je 0x1001ce2a
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
push eax
push dword [esp + 0x28]
mov dword [esp + 0x1c], eax
call fcn.1001e784
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.1004adee
add esp, 0xc
mov dword [esp + 0xc], eax
cmp eax, ebx
je 0x1001cea9
push edi
push eax
push dword [esp + 0x1c]
push dword [esp + 0x30]
call fcn.1001e7d4
add esp, 0x10
jmp 0x1001ce89
mov eax, dword [esi + 0x8cc]
push dword [eax + 0x1e4]
mov eax, dword [esi + 0x24]
push dword [eax + 0xa1c]
call fcn.1001ba35
pop ecx
pop ecx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esp + 0x38]
mov dword [esp + 0x2c], eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
dec edi
lea eax, [edi + 1]
push eax
call fcn.1004adee
pop ecx
mov dword [esp + 0xc], eax
cmp eax, ebx
je 0x1001cea9
push ebx
push ebx
lea ecx, [edi + 1]
push ecx
push eax
push 0xffffffffffffffff
push dword [esp + 0x38]
push ebx
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x24]
push edi
push dword [esp + 0x1c]
call fcn.1001cc0e
push dword [esp + 0xc]
call fcn.1004ad48
pop ecx
push dword [esp + 0x20]
jmp 0x1001cfc2
push 1
call edi
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0x1001cfc8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov dword [esp + 0x2c], edi
cmp edi, ebx
je 0x1001cfc8
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
xor ecx, ecx
mov dword [esp + 0xc], eax
cmp eax, ebx
jbe 0x1001ceff
cmp dword [esp + 0xc], eax
jne 0x1001cefa
cmp byte [ecx + edi], bl
jne 0x1001cefa
mov dword [esp + 0xc], ecx
inc ecx
cmp ecx, eax
jb 0x1001ceeb
mov eax, esi
call fcn.10010e38
test al, al
je 0x1001cfa8
mov edi, dword [esp + 0xc]
inc edi
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1004adee
pop ecx
push edi
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
push dword [esp + 0x38]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x28], eax
call fcn.1001e784
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.1004adee
add esp, 0xc
mov dword [esp + 0xc], eax
cmp eax, ebx
je 0x1001cf76
push edi
push eax
push dword [esp + 0x28]
push dword [esp + 0x20]
call fcn.1001e7d4
add esp, 0x10
push dword [esp + 0x14]
call fcn.1004ad48
pop ecx
cmp dword [esp + 0xc], ebx
je 0x1001cfbe
push dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x24]
push edi
push dword [esp + 0x1c]
call fcn.1001cc0e
push dword [esp + 0xc]
call fcn.1004ad48
pop ecx
jmp 0x1001cfbe
push dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x18]
push edi
call fcn.1001cc0e
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esi + 0x8cc]
call fcn.1000354c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov eax, esi
call fcn.100079c5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret