Function at 0x4050b0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x210
push esi
push edi
push 0x25a
mov edi, ecx
push str.Do:_t_t_CWPhoneDlg::AttachChrome____LINE___d
call fcn.00402b70
mov esi, dword [esp + 0x224]
add esp, 8
test esi, esi
je 0x4052d0
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4052d0
lea eax, [esp + 0x118]
push 0xff
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea ecx, [esp + 0x18]
push 0xff
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 0x18]
lea eax, [esp + 0x118]
push edx
push eax
push 0x265
push str.Echo:_t_t_CWPhoneDlg::AttachChrome___LINE___d___s__s
call fcn.00402b70
mov eax, dword [0x40ed28]
add esp, 0x10
cmp eax, 1
jne 0x40524f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x118]
push ecx
push edx
push 0x269
push str.Echo:_t_t_CWPhoneDlg::AttachChrome___LINE___d___s__s
call fcn.00402b70
add esp, 0x10
push esi
call sub.MFC42.DLL_CWnd::FromHandle
push 0
push 0x40000000
push 0
mov ecx, eax
mov dword [0x40ed38], eax
call sub.MFC42.DLL_CWnd::ModifyStyle
mov eax, dword [0x40ed3c]
mov ecx, dword [0x40ed38]
test eax, eax
je 0x405188
mov eax, dword [eax + 0x20]
push ebx
push eax
mov eax, dword [ecx + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [0x40ed3c]
lea ecx, [esp + 0xc]
push ecx
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x14
call ebx
push 0x1f
mov esi, eax
call ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
add eax, 0xa
sub ecx, edx
mov ebx, dword [esp + 0x14]
push 1
lea edx, [ecx + eax + 0xa]
lea ecx, [esi + esi]
push edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [0x40ed34]
add ecx, ebx
neg eax
push ecx
push eax
neg esi
push esi
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
mov ecx, edi
call sub.MFC42.DLL_CWnd::ShowWindow
push 9
mov ecx, edi
call sub.MFC42.DLL_CWnd::ShowWindow
mov ecx, dword [0x40ed3c]
lea eax, [esp + 0xc]
push eax
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub ecx, eax
push 0x40
push ecx
mov ecx, dword [esp + 0x14]
sub edx, ecx
push edx
push eax
mov eax, dword [edi + 0x20]
push ecx
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop ebx
pop edi
pop esi
add esp, 0x210
ret 4
cmp eax, 2
jne 0x4052d0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x118]
push ecx
push edx
push 0x27c
push str.Echo:_t_t_CWPhoneDlg::AttachChrome___LINE___d___s__s
call fcn.00402b70
add esp, 0x10
push esi
call sub.MFC42.DLL_CWnd::FromHandle
mov dword [0x40ed38], eax
mov edx, dword [eax + 0x20]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
push 0x282
push str.Echo:_t_t_CWPhoneDlg::AttachChrome____LINE___d__left___d__top___d
call fcn.00402b70
mov edx, dword [0x40b20c]
mov eax, dword [0x40b208]
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push 0x40
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [0x40ed34]
push ecx
push edx
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
add esp, 0x210
ret 4