Function at 0x402270
Capabilities:
Get graphical window text

Disassembly:
push 0x4050d8
call fcn.00401202
push dword [0x4050c0]
pop dword [0x4171da]
mov dword [0x41741e], 0
push 0
push 0
push 0xf0
push dword [0x40501c]
call sub.user32.dll_SendMessageA
cmp eax, 1
jne 0x4022b9
add dword [0x4171da], 0x100
inc dword [0x41741e]
mov dword [0x4171e2], 0
mov dword [0x4171e6], 0
mov dword [0x4171ea], 0x400
mov dword [0x417482], 1
push dword [0x40500c]
pop dword [0x4171ca]
push 0
push 0
push 0xba
push dword [0x4171ca]
call sub.user32.dll_SendMessageA
mov dword [0x416e44], eax
mov dword [0x4171c6], 0
mov dword [0x416a30], 0x400
push 0x416a30
push dword [0x4171c6]
push 0xc4
push dword [0x4171ca]
call sub.user32.dll_SendMessageA
cmp byte [eax + 0x416a2f], 0xd
jne 0x402341
sub eax, 1
inc dword [0x4171c6]
or eax, eax
je 0x40238c
cmp eax, dword [0x4171e2]
jbe 0x402379
cmp eax, 0x3fe
jbe 0x402374
pushal
push 0
push str.Find_All
push str.Maximum_length_of_a_search_string_is_1022_characters
push 0
call sub.user32.dll_MessageBoxA
popal
jmp 0x402521
mov dword [0x4171e2], eax
cmp eax, dword [0x4171ea]
jae 0x402386
mov dword [0x4171ea], eax
inc dword [0x417482]
dec dword [0x416e44]
jne 0x402310
mov eax, dword [0x405010]
cmp eax, dword [0x4171ca]
je 0x4023af
mov dword [0x4171ca], eax
jmp 0x4022ed
mov eax, dword [0x4171e2]
mov dword [0x4171e6], eax
add dword [0x4171e2], 4
and dword [0x4171e2], 0xfffffffc
mov eax, dword [0x4171e2]
mul dword [0x417482]
mov dword [0x4171b2], eax
add eax, 0x43
and eax, 0xffffffc0
push eax
push 8
push dword [0x4050d4]
call sub.kernel32.dll_HeapAlloc
mov dword [0x4050d8], eax
or eax, eax
je 0x402640
mov dword [0x4171ba], 0
mov dword [0x4171be], 0
mov edi, dword [0x4050d8]
mov dword [0x416e3c], edi
push dword [0x40500c]
pop dword [0x4171ca]
mov dword [0x41747e], 0
mov ebx, dword [0x4171da]
push 0
push 0
push 0xba
push dword [0x4171ca]
call sub.user32.dll_SendMessageA
mov dword [0x416e44], eax
mov dword [0x4171c6], 0
mov esi, 0x416a30
mov edi, dword [0x416e3c]
mov dword [0x416a30], 0x400
push 0x416a30
push dword [0x4171c6]
push 0xc4
push dword [0x4171ca]
call sub.user32.dll_SendMessageA
cmp byte [eax + 0x416a2f], 0xd
jne 0x402493
sub eax, 1
inc dword [0x4171c6]
or eax, eax
je 0x4024cf
mov ecx, eax
mov eax, 0
lodsb al, byte [esi]
mov al, byte [eax + ebx]
stosb byte es:[edi], al
dec ecx
jne 0x4024a4
mov ecx, dword [0x4171e2]
add dword [0x416e3c], ecx
cmp dword [0x41747e], 0
jne 0x4024c9
inc dword [0x4171ba]
jmp 0x4024cf
inc dword [0x4171be]
dec dword [0x416e44]
jne 0x402457
cmp dword [0x41747e], 0
jne 0x402503
push dword [0x405010]
pop dword [0x4171ca]
inc dword [0x41747e]
push dword [0x416e3c]
pop dword [0x4171c2]
jmp 0x402434
cmp dword [0x4171ba], 0
jne 0x402526
pushal
push 0
push str.Find_All
push str.Please_enter_strings_to_find
push 0
call sub.user32.dll_MessageBoxA
popal
jmp 0x40265f
mov dword [0x41747e], 0
mov esi, dword [0x4050d8]
mov ebx, dword [0x4171ba]
cmp ebx, 2
jb 0x4025b0
dec ebx
mov edx, ebx
mov edi, esi
mov dword [0x4171de], esi
add edi, dword [0x4171e2]
mov ecx, 0xffffffff
inc ecx
cmp ecx, dword [0x4171e2]
je 0x4025a1
mov ah, byte [ecx + esi]
mov al, byte [ecx + edi]
or ah, ah
je 0x402577
or al, al
je 0x402575
cmp al, byte [ecx + esi]
ja 0x402577
je 0x402557
mov esi, edi
dec edx
jne 0x40254c
cmp dword [0x4171de], esi
je 0x4025a1
mov ecx, dword [0x4171e2]
mov edi, dword [0x4171de]
sub ecx, 4
js 0x4025a1
mov eax, dword [ecx + edi]
mov edx, dword [ecx + esi]
mov dword [ecx + edi], edx
mov dword [ecx + esi], eax
jmp 0x40258e
mov esi, dword [0x4171de]
add esi, dword [0x4171e2]
dec ebx
jne 0x402542
cmp dword [0x41747e], 0
jne 0x4025d0
inc dword [0x41747e]
mov esi, dword [0x4171c2]
mov ebx, dword [0x4171be]
jmp 0x40253c
mov edi, dword [0x4050c4]
mov eax, 0
mov ecx, 0x200
rep stosd dword es:[edi], eax
mov edi, dword [0x4050c4]
mov esi, dword [0x4050d8]
mov cl, 0
mov edx, dword [0x4171ba]
mov dword [0x41747e], 0
movzx eax, byte [esi]
cmp cl, al
je 0x40260c
mov cl, al
mov dword [edi + eax*4], esi
add esi, dword [0x4171e2]
dec edx
jne 0x402600
cmp dword [0x41747e], 0
jne 0x40263e
mov edx, dword [0x4171be]
or edx, edx
je 0x402676
inc dword [0x41747e]
mov esi, dword [0x4171c2]
mov edi, dword [0x4050c8]
mov cl, 0
jmp 0x402600
jmp 0x402676
push str.SetupSearchStrings
call fcn.00401180
pushal
push 0
push str.Find_All
push str.error_allocating_heap
push 0
call sub.user32.dll_MessageBoxA
popal
push 0x4050d8
call fcn.00401202
push dword [0x40500c]
call sub.user32.dll_SetFocus
stc
ret
clc
ret