Function at 0x401460
Capabilities:
Get graphical window text
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 0xc]
cmp eax, 2
je 0x4017a9
cmp eax, 0x111
je 0x4015cc
cmp eax, 1
jne 0x4017ba
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 3
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x14
mov dword [esp + 0x18], 0xc8
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0xa
mov dword [esp + 0xc], 0x50800000
mov dword [esp + 8], 0x406064
mov dword [esp + 4], str.EDIT
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [0x408850], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 1
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x1e
mov dword [esp + 0x18], 0x64
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0xdc
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], str.Kopyala
mov dword [esp + 4], str.BUTTON
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [0x4087f0], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 2
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x1e
mov dword [esp + 0x18], 0x64
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0x14a
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], str.Rastgele
mov dword [esp + 4], str.BUTTON
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [0x4087f4], eax
jmp 0x4017e0
mov eax, dword [ebp + 0x10]
cmp ax, 1
jne 0x4016be
mov eax, dword [0x408850]
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x2a]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetWindowTextA_12
sub esp, 0xc
lea eax, [ebp - 0x2a]
mov dword [esp], eax
call sym._atoi
sub eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
js 0x4017df
cmp dword [ebp - 0xc], 0x1f3
jg 0x4017df
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._OpenClipboard_4
sub esp, 4
test eax, eax
je 0x4017df
call sym._EmptyClipboard_0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x408020]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [esp + 4], eax
mov dword [esp], 0x2000
call sym._GlobalAlloc_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._GlobalLock_4
sub esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x408020]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strcpy
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._GlobalUnlock_4
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._SetClipboardData_8
sub esp, 8
call sym._CloseClipboard_0
jmp 0x4017df
mov eax, dword [ebp + 0x10]
cmp ax, 2
jne 0x4017df
mov dword [esp], 0
call sym._time
mov dword [esp], eax
call sym._srand
call sym._rand
mov ecx, eax
mov edx, 0x10624dd3
mov eax, ecx
imul edx
sar edx, 5
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x1f4
sub ecx, eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._OpenClipboard_4
sub esp, 4
test eax, eax
je 0x4017df
call sym._EmptyClipboard_0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax*4 + 0x408020]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [esp + 4], eax
mov dword [esp], 0x2000
call sym._GlobalAlloc_8
sub esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._GlobalLock_4
sub esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax*4 + 0x408020]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._strcpy
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._GlobalUnlock_4
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._SetClipboardData_8
sub esp, 8
call sym._CloseClipboard_0
jmp 0x4017df
mov dword [esp], 0
call sym._PostQuitMessage_4
sub esp, 4
jmp 0x4017e0
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._DefWindowProcA_16
sub esp, 0x10
jmp 0x4017e5
nop
mov eax, 0
leave
ret 0x10