Function at 0x421ca0
Capabilities:
Get graphical window text

Disassembly:
push 0x10
mov eax, 0x42b90c
call fcn.00429a68
mov edi, ecx
push 0x406464
push 4
call fcn.00427b50
movzx eax, word [edi + 0x60]
pop ecx
pop ecx
push 9
pop ecx
push 0xd
pop edx
cmp ax, dx
je 0x421e24
cmp ax, cx
je 0x421e24
cmp eax, 8
jne 0x421e16
lea ecx, [edi + 0x68]
call fcn.004114da
lea ecx, [ebp - 0x1c]
call sub.MFC42u.dll_CString::CString_1
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 1
push eax
xor esi, esi
push esi
push esi
push 0x188
push dword [edi + 0x204]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
lea ecx, [edi + 0x1e4]
call sub.MFC42u.dll_CListBox::GetText
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42u.dll_CString::CString_3
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
push 0x402f60
mov byte [ebp - 4], 2
mov esi, dword [eax - 8]
call sub.MFC42u.dll_CString::Find
sub esi, eax
lea ecx, [ebp - 0x14]
sub esi, 2
lea eax, [ebp - 0x10]
push esi
push eax
call sub.MFC42u.dll_CString::Right
push dword [ebp - 0x10]
mov byte [ebp - 4], 3
push 0x4028e4
push 4
call fcn.00427b50
add esp, 0xc
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::TrimRight_1
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::TrimLeft_1
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::AllocSysString
lea ecx, [ebp - 0x10]
mov esi, eax
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
push esi
push dword [ebp - 0x1c]
push 0x406494
push 4
call fcn.00427b50
add esp, 0x10
lea ebx, [edi + 0x1a4]
test esi, esi
je 0x421df2
push esi
lea ecx, [ebp - 0x18]
call sub.MFC42u.dll_CString::CString_2
push 0x4064ac
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call sub.MFC42u.dll_CString::TrimLeft
push 0x4064ac
lea ecx, [ebp - 0x18]
call sub.MFC42u.dll_CString::TrimRight
push dword [ebp - 0x18]
mov ecx, ebx
call sub.MFC42u.dll_CWnd::SetWindowTextW
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
jmp 0x421dfe
push 0x401654
mov ecx, ebx
call sub.MFC42u.dll_CWnd::SetWindowTextW
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 1
mov ecx, edi
call sub.MFC42u.dll_CWnd::UpdateData
lea ecx, [ebp - 0x1c]
jmp 0x421f0a
push 1
mov ecx, edi
call sub.MFC42u.dll_CWnd::UpdateData
jmp 0x421f0f
lea ebx, [edi + 0x68]
mov ecx, ebx
call fcn.004114da
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString_1
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push esi
push esi
push 0x188
push dword [edi + 0x204]
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
lea ecx, [edi + 0x1e4]
call sub.MFC42u.dll_CListBox::GetText
push dword [ebp - 0x10]
lea ecx, [edi + 0x1a4]
call sub.MFC42u.dll_CWnd::SetWindowTextW
push dword [ebp - 0x10]
push 0x4028e4
push 4
call fcn.00427b50
add esp, 0xc
lea eax, [ebp - 0x10]
lea ecx, [edi + 0xd0]
push eax
call fcn.00429018
movzx eax, word [edi + 0x60]
push 0xd
pop ecx
cmp ax, cx
jne 0x421ecd
push esi
push esi
push 0x188
push dword [edi + 0x204]
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [edi + 0x9c]
push eax
mov ecx, esi
call sub.MFC42u.dll_CPtrList::FindIndex
push eax
mov ecx, esi
call fcn.00412455
mov ecx, ebx
push dword [eax]
call fcn.00417115
jmp 0x421f07
push 9
pop ecx
cmp ax, cx
jne 0x421f07
push esi
push esi
push 0x188
push dword [edi + 0x204]
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [edi + 0x9c]
push eax
mov ecx, esi
call sub.MFC42u.dll_CPtrList::FindIndex
push eax
mov ecx, esi
call fcn.00412455
mov ecx, ebx
push dword [eax]
call fcn.004170df
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString
call fcn.00429a36
ret