Function at 0x10020940
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012be05
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1016c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
push ecx
lea ecx, [ebp - 0x18]
call fcn.10020890
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
cmp byte [esi], 0
je 0x10020bdf
push 1
call fcn.10020c70
test al, al
je 0x10020bdf
mov ebx, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call ebx
test eax, eax
je 0x100209e7
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10020bc7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x10020bc7
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
mov dword [ebp - 0x10], eax
jmp 0x10020a2f
push 1
call ebx
test eax, eax
je 0x10020bc7
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10020bc7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
je 0x10020bc7
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020a20
sub ecx, edx
lea ebx, [ecx + 1]
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test ebx, ebx
je 0x10020bc7
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
cmp ebx, 0x7fffffff
ja 0x10020c0b
push ebx
call fcn.10011aa0
push dword [ebp - 0x10]
mov edi, eax
push 0
add ebx, edi
mov dword [ebp - 0x2c], edi
push edi
mov dword [ebp - 0x24], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x10020b7b
push 1
call fcn.10020c70
test al, al
je 0x10020b7b
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x10020b25
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10020b04
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10020b04
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, dword [ebp - 0x10]
ja 0x10020afb
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020b10
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x14]
push edi
call fcn.10011990
jmp 0x10020b97
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x10020b7b
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10020b7b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x10020b7b
push dword [ebp - 0x10]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020b66
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x14]
push edi
call fcn.10011990
jmp 0x10020b97
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020b80
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x14]
push edi
call fcn.10011990
test edi, edi
je 0x10020bbd
sub ebx, edi
cmp ebx, 0x1000
jb 0x10020bb3
mov ecx, dword [edi - 4]
add ebx, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x10020bc1
mov edi, ecx
push ebx
push edi
call fcn.10128808
add esp, 8
mov bl, 1
jmp 0x10020be1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10020bd1
mov eax, dword [edi]
mov dword [edi + 0x10], 0
mov bl, 1
mov byte [eax], 0
jmp 0x10020be1
xor bl, bl
cmp byte [esi], 0
je 0x10020bec
call dword [sym.imp.USER32.dll_CloseClipboard]
push 1
push esi
call fcn.10128808
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10013820
int3