Function at 0x4021cc
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
nop
mov eax, 0
mov byte [ebp - 0x82], al
mov eax, 0x81
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x81]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0
mov dword [ebp - 0x88], eax
mov eax, dword [0x406148]
push eax
call sub.user32.dll_OpenClipboard
cmp eax, 0
je 0x402535
mov eax, 1
push eax
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x8c], eax
cmp eax, 0
je 0x402535
mov eax, dword [ebp - 0x8c]
push eax
call sub.kernel32.dll_GlobalSize
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
push eax
call sub.msvcrt.dll_malloc
add esp, 4
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x8c]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x90]
push eax
call sub.kernel32.dll_lstrcpyA
mov eax, dword [ebp - 0x8c]
push eax
call sub.kernel32.dll_GlobalUnlock
call sub.user32.dll_CloseClipboard
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xa0], esp
mov eax, dword [ebp - 0x98]
push eax
call fcn.0040487c
add esp, 4
mov dword [ebp - 0x9c], esp
mov eax, dword [ebp - 0x88]
push eax
mov eax, 0
push eax
mov eax, dword [ebp - 0x9c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0
mov dword [ebp - 0xa4], eax
mov eax, 0
mov dword [ebp - 0xa8], eax
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, 0x1009
push eax
mov eax, dword [0x406154]
push eax
call sub.user32.dll_SendMessageA
mov eax, 0
mov dword [ebp - 0xac], eax
mov eax, 0
mov dword [ebp - 0xb0], eax
mov eax, 1
mov dword [ebp - 0xb4], eax
mov esp, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x88]
cmp eax, ecx
jge 0x4024ea
jmp 0x402361
mov esp, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xb4]
mov ecx, eax
inc eax
mov dword [ebp - 0xb4], eax
jmp 0x40232b
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x90]
add ecx, eax
movsx eax, byte [ecx]
cmp eax, 0xd
jne 0x402386
mov esp, dword [ebp - 0xa0]
jmp 0x40234a
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x90]
add ecx, eax
movsx eax, byte [ecx]
cmp eax, 0xa
jne 0x402436
mov eax, dword [ebp - 0xac]
mov ecx, 0xc8
imul eax, ecx
mov ecx, str.bahmet
add ecx, eax
lea eax, [ebp - 0x82]
push eax
push ecx
call sub.msvcrt.dll_strcpy
add esp, 8
mov eax, str.bahmet
push eax
mov eax, 3
push eax
mov eax, dword [0x406154]
push eax
call fcn.004010b0
add esp, 0xc
mov eax, 0x12c
push eax
mov eax, 0
push eax
mov eax, str.bahmet
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x82
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x82]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0
mov dword [ebp - 0xac], eax
mov eax, 0
mov dword [ebp - 0xb0], eax
mov esp, dword [ebp - 0xa0]
jmp 0x40234a
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x90]
add ecx, eax
movsx eax, byte [ecx]
cmp eax, 9
jne 0x4024b5
mov eax, dword [ebp - 0xac]
mov ecx, 0xc8
imul eax, ecx
mov ecx, str.bahmet
add ecx, eax
lea eax, [ebp - 0x82]
push eax
push ecx
call sub.msvcrt.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0xac]
mov ecx, eax
inc eax
mov dword [ebp - 0xac], eax
mov eax, 0
mov dword [ebp - 0xb0], eax
mov eax, 0x82
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x82]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov esp, dword [ebp - 0xa0]
jmp 0x40234a
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0x82]
add ecx, eax
mov eax, dword [ebp - 0xb4]
mov edx, dword [ebp - 0x90]
add edx, eax
movsx eax, byte [edx]
mov byte [ecx], al
mov eax, dword [ebp - 0xb0]
mov ecx, eax
inc eax
mov dword [ebp - 0xb0], eax
jmp 0x40234a
mov eax, dword [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0xa4]
push eax
mov eax, 0x4055b1
push eax
lea eax, [ebp - 0xdc]
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
lea eax, [ebp - 0xdc]
push eax
mov eax, dword [0x406148]
push eax
call sub.user32.dll_SetWindowTextA
mov eax, dword [ebp - 0x90]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov esp, dword [ebp - 0xa0]
leave
ret