Function at 0x401460
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [ebp + 0xc]
cmp eax, 0x10
je 0x4017e1
cmp eax, 0x10
ja 0x40148d
cmp eax, 1
je 0x4014a6
cmp eax, 2
je 0x4017f1
jmp 0x401802
cmp eax, 0x14
je 0x401797
cmp eax, 0x111
je 0x401648
jmp 0x401802
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x14
mov dword [esp + 0x18], 0x64
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0xa
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], str.Window_Name:
mov dword [esp + 4], str.STATIC
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
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], 0x14
mov dword [esp + 0x18], 0xaa
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0x78
mov dword [esp + 0xc], 0x50800080
mov dword [esp + 8], 0x406079
mov dword [esp + 4], str.EDIT
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x64
mov dword [esp + 0x18], 0x118
mov dword [esp + 0x14], 0x28
mov dword [esp + 0x10], 0xa
mov dword [esp + 0xc], 0x50a00044
mov dword [esp + 8], 0x406079
mov dword [esp + 4], str.EDIT
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [0x408024], 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], 0x96
mov dword [esp + 0x10], 0xa
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], str.Detect_Rune
mov dword [esp + 4], str.BUTTON
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
jmp 0x401828
mov eax, dword [ebp + 0x10]
cmp ax, 2
jne 0x401827
mov dword [esp + 4], 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov edx, eax
mov dword [esp + 8], 0x100
lea eax, [ebp - 0x124]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._GetWindowTextA_12
sub esp, 0xc
lea eax, [ebp - 0x124]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._FindWindowA_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401702
mov eax, dword [0x408024]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0xb1
mov dword [esp], eax
call sym._SendMessageA_16
sub esp, 0x10
mov edx, str.Rune_found_lmaoo_n
mov eax, dword [0x408024]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc2
mov dword [esp], eax
call sym._SendMessageA_16
sub esp, 0x10
jmp 0x401827
call sym._GetLastError_0
mov dword [ebp - 0x14], eax
mov dword [esp + 4], str.Error_code:
mov dword [esp], sym.imp.libstdc_6.dll_std::cout
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov ecx, edx
call sym.std::ostream::operator___unsigned_long_
sub esp, 4
mov dword [esp], sym.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call sym.std::ostream::operator___std::ostream____std::ostream__
sub esp, 4
mov eax, dword [0x408024]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0xb1
mov dword [esp], eax
call sym._SendMessageA_16
sub esp, 0x10
mov edx, str.Rune_not_found_n
mov eax, dword [0x408024]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc2
mov dword [esp], eax
call sym._SendMessageA_16
sub esp, 0x10
jmp 0x401827
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetClientRect_8
sub esp, 8
mov dword [esp], 0xc0c0c0
call sym._CreateSolidBrush_4
sub esp, 4
mov dword [esp + 8], eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FillRect_12
sub esp, 0xc
mov eax, 1
jmp 0x40182d
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._DestroyWindow_4
sub esp, 4
jmp 0x401828
mov dword [esp], 0
call sym._PostQuitMessage_4
sub esp, 4
jmp 0x401828
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
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 0x40182d
nop
mov eax, 0
leave
ret 0x10