Function at 0x402830
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x408]
push ebx
sub esp, 0xc34
call fcn.00401a70
mov ecx, 0xff
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0xc1c], 0
mov ebx, eax
xor eax, eax
mov dword [ebp - 0xc18], 0
mov dword [ebp - 0xc14], 0
mov dword [ebp - 0xc10], 0
mov dword [ebp - 0xc20], 0x400
mov dword [ebp - str.aaabbb_r_n], 0x40b360
mov dword [ebp - 0xc24], 0
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x40c]
lea esi, [esi]
nop
mov eax, dword [ebp - 0xc28]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov esi, eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x4ab
xor eax, eax
cmp esi, 1
mov dword [esp + 0xc], esi
mov ecx, dword [ebp - 0xc24]
sete al
mov dword [esp], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], str.__d__WM_SETTEXT_returned__Id_instead_of_1_n
call fcn.004017f0
mov eax, dword [ebp - 0xc28]
mov eax, dword [eax + 4]
mov dword [esp + 4], 0xb1
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0xd
mov dword [esp + 4], 0x100
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0xd
mov dword [esp + 4], 0x102
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov esi, eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x47a
xor eax, eax
test esi, esi
sete al
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0xd
mov dword [esp + 4], str.WM_CHAR__c__ret_d_n
mov dword [esp], eax
call fcn.004017f0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0xd
mov dword [esp + 4], 0x101
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SendMessageA]
mov byte [ebp - 0x40c], 0
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0xd
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SendMessageA]
mov eax, dword [ebp - 0xc28]
mov edx, edi
sub esp, 0x10
mov esi, dword [eax + 8]
lea eax, [ebp - 0x80c]
call fcn.004010f0
lea eax, [ebp - 0xc0c]
mov edx, esi
call fcn.004010f0
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strcmp]
mov dword [ebp - 0xc2c], eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x4ba
lea eax, [ebp - 0xc0c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x80c]
mov dword [esp + 0xc], eax
mov ecx, dword [ebp - 0xc24]
xor eax, eax
mov dword [esp + 4], str.__d__WM_GETTEXT_unexpected__s_expected__s_n
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0xc2c]
test edx, edx
sete al
mov dword [esp], eax
call fcn.004017f0
lea eax, [ebp - 0xc20]
mov dword [ebp - 0xc1c], 0
mov dword [ebp - 0xc18], 0
mov byte [ebp - 0x40c], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 0x45e
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SendMessageA]
mov edx, edi
lea eax, [ebp - 0x80c]
sub esp, 0x10
call fcn.004010f0
mov edx, esi
lea eax, [ebp - 0xc0c]
call fcn.004010f0
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strcmp]
mov dword [ebp - 0xc2c], eax
call fcn.00406c60
mov edx, dword [ebp - 0xc2c]
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x4c9
mov eax, 1
test edx, edx
je 0x402b28
mov ecx, dword [0x41d050]
cmp byte [ebp - 0x40c], 0
sete dl
xor eax, eax
test ecx, ecx
sete al
and eax, edx
lea ecx, [ebp - 0xc0c]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x80c]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0xc24]
mov dword [esp], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], str.__d__EM_GETTEXTEX__GT_DEFAULT_unexpected__s__expected__s_n
call fcn.004017f0
lea eax, [ebp - 0xc20]
mov dword [ebp - 0xc1c], 1
mov dword [ebp - 0xc18], 0
mov byte [ebp - 0x40c], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 0x45e
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SendMessageA]
mov edx, edi
lea eax, [ebp - 0x80c]
sub esp, 0x10
call fcn.004010f0
mov edx, esi
lea eax, [ebp - 0xc0c]
call fcn.004010f0
mov dword [esp], esi
mov dword [esp + 4], edi
call dword [sym.imp.msvcrt.dll_strcmp]
mov esi, eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x4d8
mov eax, 1
test esi, esi
je 0x402bf0
mov ecx, dword [0x41d050]
cmp byte [ebp - 0x40c], 0
sete dl
xor eax, eax
test ecx, ecx
sete al
and eax, edx
lea ecx, [ebp - 0xc0c]
lea edx, [ebp - 0x80c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov esi, dword [ebp - 0xc24]
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], str.__d__EM_GETTEXTEX__GT_USECRLF_unexpected__s__expected__s_n
call fcn.004017f0
mov eax, esi
add dword [ebp - 0xc28], 0xc
add eax, 1
mov dword [ebp - 0xc24], eax
cmp eax, 5
jne 0x4028b0
mov dword [ebp - 0xc1c], 0
mov dword [ebp - 0xc18], 0
mov dword [esp], ebx
mov dword [esp + 0xc], 0x40a000
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov esi, eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x4e2
xor eax, eax
cmp esi, 1
sete al
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 8], 5
mov dword [esp + 4], str.__d__WM_SETTEXT_returned__Id_instead_of_1_n
call fcn.004017f0
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov esi, eax
mov dword [esp + 8], 0x54
mov dword [esp + 4], 0x102
call eax
mov eax, esi
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xd
mov dword [esp + 4], 0x100
mov dword [ebp - 0xc24], esi
call eax
lea ecx, [ebp - 0xc20]
sub esp, 0x10
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 4], 0x45e
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov esi, eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x4e7
xor eax, eax
cmp esi, 1
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.Got__d_n
call fcn.004017f0
lea ecx, [ebp - 0x80c]
mov edx, edi
mov eax, ecx
call fcn.004010f0
lea ecx, [ebp - 0xc0c]
mov edx, 0x40a5f2
mov eax, ecx
call fcn.004010f0
lea ecx, [ebp - 0xc0c]
lea edx, [ebp - 0x80c]
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll_strcmp]
mov esi, eax
call fcn.00406c60
lea ecx, [ebp - 0xc0c]
lea edx, [ebp - 0x80c]
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x4eb
xor eax, eax
test esi, esi
sete al
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 5
mov dword [esp + 4], str.__d__EM_GETTEXTEX__GT_DEFAULT_unexpected__s__expected__s_n
mov dword [esp], eax
call fcn.004017f0
mov dword [esp], ebx
mov dword [esp + 0xc], 0x40a000
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov esi, eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x4ee
xor eax, eax
cmp esi, 1
sete al
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 8], 5
mov dword [esp + 4], str.__d__WM_SETTEXT_returned__Id_instead_of_1_n
call fcn.004017f0
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x54
mov dword [esp + 4], 0x102
mov esi, dword [ebp - 0xc24]
mov eax, esi
call eax
mov eax, esi
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xd
mov dword [esp + 4], 0x102
call eax
lea eax, [ebp - 0xc20]
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x45e
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov esi, eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x4f3
xor eax, eax
cmp esi, 3
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.Got__Id_n
call fcn.004017f0
mov edx, edi
lea eax, [ebp - 0x80c]
call fcn.004010f0
mov edx, 0x40a5fd
lea eax, [ebp - 0xc0c]
call fcn.004010f0
lea eax, [ebp - 0xc0c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x80c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strcmp]
mov esi, eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x4f7
lea eax, [ebp - 0xc0c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x80c]
mov dword [esp + 0xc], eax
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], 5
mov dword [esp + 4], str.__d__EM_GETTEXTEX__GT_DEFAULT_unexpected__s__expected__s_n
mov dword [esp], eax
call fcn.004017f0
mov dword [esp], ebx
call dword [sym.imp.user32.dll_DestroyWindow]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret