Function at 0x497110
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4fd37f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push ebx
mov ebx, dword [esp + 0xf8]
push ebp
push esi
push edi
push 1
mov edi, ecx
push ebx
mov dword [esp + 0x34], 0
call fcn.004970c0
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov ebp, eax
mov eax, dword [0x576830]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xf8], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
push str._table_
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc], 3
call fcn.004eda18
push str._tr__td__font_colordarkblue_Window__font__table_border1_
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc], 4
call fcn.004edd3a
push str._tr__td_bgcolorbuttonface_Class_Name__td__td_bgcolorwindow_
lea ecx, [esp + 0x14]
call fcn.004edd3a
lea eax, [esp + 0x34]
push 0x80
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.004eda18
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00497600
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc], 5
call fcn.004edd76
lea ecx, [esp + 0x18]
mov byte [esp + 0xf8], 4
call fcn.004ed9aa
push str.__td___tr_
lea ecx, [esp + 0x14]
call fcn.004edd3a
push str._tr__td_bgcolorbuttonface_Title__td__td_bgcolorwhite_
lea ecx, [esp + 0x14]
call fcn.004edd3a
lea ecx, [esp + 0x34]
push 0x80
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.004eda18
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00497600
mov byte [esp + 0xf8], 6
push eax
lea ecx, [esp + 0x14]
call fcn.004edd76
lea ecx, [esp + 0x18]
mov byte [esp + 0xf8], 4
call fcn.004ed9aa
push str.__td___tr_
lea ecx, [esp + 0x14]
call fcn.004edd3a
push esi
lea ecx, [esp + 0x18]
push str._tr__td_bgcolorbuttonface_Handle__td__td_bgcolorwhite_0x_08X__td___tr_
push ecx
call fcn.004eb488
add esp, 0xc
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.004edd76
push 0xfffffffffffffff4
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
lea eax, [esp + 0x18]
push str._tr__td_bgcolorbuttonface_Control_ID__td__td_bgcolorwhite__d__td___tr_
push eax
call fcn.004eb488
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.004edd76
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
lea edx, [esp + 0x18]
push str._tr__td_bgcolorbuttonface_Styles__td__td_bgcolorwhite_0x_08X__td___tr_
push edx
call fcn.004eb488
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.004edd76
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push str._tr__td_bgcolorbuttonface_RECT__td__td_bgcolorwhite___d___d____d___d___td___tr_
push eax
call fcn.004eb488
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.004edd76
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
sub edx, eax
lea eax, [esp + 0x14]
push edx
push str._tr__td_bgcolorbuttonface_Width__td__td_bgcolorwhite__d__td___tr_
push eax
call fcn.004eb488
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.004edd76
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
sub edx, eax
push edx
lea eax, [esp + 0x18]
push str._tr__td_bgcolorbuttonface_Height__td__td_bgcolorwhite__d__td___tr_
push eax
call fcn.004eb488
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.004edd76
push str._tr__td_bgcolorbuttonface_Has_Tooltip__td__td_bgcolorwhite_
lea ecx, [esp + 0x14]
call fcn.004edd3a
lea edx, [esp + 0xb4]
mov ecx, edi
push edx
push ebx
call fcn.004976c0
test eax, eax
mov eax, 0x56aa38
jne 0x4973af
mov eax, 0x56aa34
push eax
lea ecx, [esp + 0x14]
call fcn.004edd3a
push str.__td___tr_
lea ecx, [esp + 0x14]
call fcn.004edd3a
push str.__table___td_
lea ecx, [esp + 0x14]
call fcn.004edd3a
push str._td__font_colordarkblue_Window_Owner__font__table_border1_
lea ecx, [esp + 0x14]
call fcn.004edd3a
push str._tr__td_bgcolorbuttonface_Class_Name__td__td_bgcolorwhite_
lea ecx, [esp + 0x14]
call fcn.004edd3a
test ebp, ebp
je 0x497448
lea eax, [esp + 0x34]
push 0x80
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClassNameA]
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.004eda18
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00497600
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc], 7
call fcn.004edd76
lea ecx, [esp + 0x18]
mov byte [esp + 0xf8], 4
call fcn.004ed9aa
jmp 0x497456
push 0x56a9a0
lea ecx, [esp + 0x14]
call fcn.004edd3a
push str.__td___tr_
lea ecx, [esp + 0x14]
call fcn.004edd3a
push str._tr__td_bgcolorbuttonface_Title__td__td_bgcolorwhite_
lea ecx, [esp + 0x14]
call fcn.004edd3a
test ebp, ebp
je 0x4974c9
lea ecx, [esp + 0x34]
push 0x80
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.004eda18
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00497600
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc], 8
call fcn.004edd76
lea ecx, [esp + 0x18]
mov byte [esp + 0xf8], 4
call fcn.004ed9aa
jmp 0x4974d7
push 0x56a9a0
lea ecx, [esp + 0x14]
call fcn.004edd3a
push str.__td___tr_
lea ecx, [esp + 0x14]
call fcn.004edd3a
push ebp
lea ecx, [esp + 0x18]
push str._tr__td_bgcolorbuttonface_Handle__td__td_bgcolorwhite_0x_08X__td___tr_
push ecx
call fcn.004eb488
add esp, 0xc
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.004edd76
push str.__table_
lea ecx, [esp + 0x14]
call fcn.004edd3a
push str._font_colordarkblue_Mouse_Cursor__font__table_border1_
lea ecx, [esp + 0x14]
call fcn.004edd3a
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
push eax
push str._tr__td_bgcolorbuttonface_X__td__td_bgcolorwhite__d__td___tr_
push ecx
call fcn.004eb488
add esp, 0xc
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.004edd76
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x14]
push eax
push str._tr__td_bgcolorbuttonface_Y__td__td_bgcolorwhite__d__td___tr_
push ecx
call fcn.004eb488
add esp, 0xc
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.004edd76
push str.__table___td___tr___table_
lea ecx, [esp + 0x14]
call fcn.004edd3a
mov esi, dword [esp + 0x100]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004ed71f
mov dword [esp + 0x2c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0xf8], 3
call fcn.004ed9aa
lea ecx, [esp + 0x30]
mov byte [esp + 0xf8], 2
call fcn.004ed9aa
lea ecx, [esp + 0x14]
mov byte [esp + 0xf8], 1
call fcn.004ed9aa
lea ecx, [esp + 0xc8]
mov byte [esp + 0xf8], 0
call fcn.004ed9aa
mov ecx, dword [esp + 0xf0]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xec
ret 8