Function at 0x40142d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
nop
mov eax, 0
mov byte [ebp - 0x320], al
mov eax, 0xc7
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x31f]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x258
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x258]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, 0x18b
push eax
mov eax, dword [0x406150]
push eax
call sub.user32.dll_SendMessageA
mov dword [ebp - 0x624], eax
mov eax, 0
mov dword [ebp - 0x628], eax
mov eax, 0
mov dword [0x405558], eax
lea eax, [ebp - 0x420]
push eax
mov eax, 0
push eax
mov eax, 0x189
push eax
mov eax, dword [0x406150]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [0x405558]
shl eax, 2
mov ecx, 0x40617c
add ecx, eax
mov eax, 0
mov dword [ecx], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x520]
push eax
call sub.msvcrt.dll_strcpy
add esp, 8
mov eax, 1
mov dword [ebp - 0x62c], eax
mov eax, dword [ebp - 0x62c]
mov ecx, dword [ebp - 0x624]
cmp eax, ecx
jge 0x4015be
jmp 0x401533
mov eax, dword [ebp - 0x62c]
mov ecx, eax
inc eax
mov dword [ebp - 0x62c], eax
jmp 0x401509
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x62c]
push eax
mov eax, 0x189
push eax
mov eax, dword [0x406150]
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x420]
push eax
call sub.msvcrt.dll_strcmp
add esp, 8
cmp eax, 0
jne 0x40157c
jmp 0x401522
mov eax, dword [0x405558]
mov ecx, eax
inc eax
mov dword [0x405558], eax
mov eax, dword [0x405558]
shl eax, 2
mov ecx, 0x40617c
add ecx, eax
mov eax, dword [ebp - 0x62c]
mov dword [ecx], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x520]
push eax
call sub.msvcrt.dll_strcpy
add esp, 8
jmp 0x401522
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, 0x184
push eax
mov eax, dword [0x406154]
push eax
call sub.user32.dll_SendMessageA
mov eax, 0x50
push eax
lea eax, [ebp - 0x67c]
push eax
mov eax, dword [0x406164]
push eax
call sub.user32.dll_GetWindowTextA
mov eax, 0
mov dword [ebp - 0x680], eax
mov eax, dword [0x405558]
inc eax
mov ecx, dword [ebp - 0x680]
cmp ecx, eax
jge 0x401714
jmp 0x40162b
mov eax, dword [ebp - 0x680]
mov ecx, eax
inc eax
mov dword [ebp - 0x680], eax
jmp 0x401600
mov eax, dword [ebp - 0x680]
shl eax, 2
mov ecx, 0x40617c
add ecx, eax
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ecx]
push eax
mov eax, 0x189
push eax
mov eax, dword [0x406150]
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x420]
push eax
call sub.msvcrt.dll_strstr
add esp, 8
mov dword [ebp - 0x684], eax
mov eax, dword [ebp - 0x684]
cmp eax, 0
je 0x401687
jmp 0x40168c
jmp 0x40161a
lea eax, [ebp - 0x420]
push eax
mov eax, 0
push eax
mov eax, 0x180
push eax
mov eax, dword [0x406154]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 0x680]
inc eax
push eax
mov eax, 0x40557f
push eax
lea eax, [ebp - 0x320]
push eax
call sub.msvcrt.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x258]
push eax
call sub.msvcrt.dll_strcpy
add esp, 8
mov eax, 0x405582
push eax
lea eax, [ebp - 0x190]
push eax
call sub.msvcrt.dll_strcpy
add esp, 8
lea eax, [ebp - 0x320]
push eax
mov eax, 3
push eax
mov eax, dword [0x406128]
push eax
call fcn.004010b0
add esp, 0xc
jmp 0x40161a
mov eax, dword [0x405558]
push eax
mov eax, str.__i_kay
push eax
lea eax, [ebp - 0x620]
push eax
call sub.msvcrt.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x620]
push eax
mov eax, 1
push eax
mov eax, 0x401
push eax
mov eax, dword [0x406120]
push eax
call sub.user32.dll_SendMessageA
leave
ret