Function at 0x1023e14
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x10cc46d
call fcn.01077798
sub esp, 0x1c
mov eax, dword [0x10de03c]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x1c], eax
je 0x1024075
call fcn.0102146d
push eax
push dword [0x10e25b0]
call fcn.01081841
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
call sub.MFC42u.DLL_CDataExchange::PrepareEditCtrl
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::GetBufferSetLength
push eax
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov ecx, esi
call sub.MFC42u.DLL_CString::TrimRight
mov ecx, esi
call sub.MFC42u.DLL_CString::TrimLeft
mov eax, dword [ebp - 0x1c]
cmp dword [eax], ebx
je 0x1023fba
mov eax, dword [edi + 8]
xor ecx, ecx
cmp eax, 1
mov eax, dword [esi]
sete cl
cmp dword [eax - 8], ebx
mov dword [ebp - 0x20], ecx
jne 0x1023eca
cmp ecx, ebx
jne 0x1023fba
push 1
push ebx
push 0x10
push ebx
push 0x4e4d
jmp 0x1023ee8
push eax
call fcn.0102595b
test eax, eax
jne 0x1023eff
cmp dword [ebp - 0x20], ebx
jne 0x1023fba
push 1
push ebx
push 0x10
push ebx
push 0x4ea8
push 0x4ea9
call fcn.01054be3
mov ecx, dword [ebp - 0x1c]
call sub.MFC42u.DLL_CDataExchange::Fail
jmp 0x1024075
push dword [esi]
call fcn.010259d1
test eax, eax
jne 0x1023fa9
cmp dword [ebp - 0x20], ebx
jne 0x1023fba
lea ecx, [ebp - 0x28]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_4
push 0x4e8c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::LoadStringW
push 0x4e40
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CString::LoadStringW
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push dword [ebp - 0x28]
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
push 1
push ebx
push 0x10
push ebx
push dword [ebp - 0x20]
push 0x4ea9
call fcn.01054b83
mov ecx, dword [ebp - 0x1c]
call sub.MFC42u.DLL_CDataExchange::Fail
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call sub.MFC42u.DLL_CString::CString
jmp 0x1024075
push esi
lea ecx, [edi + 0xa0]
call sub.MFC42u.DLL_CString::operator_2
jmp 0x1024075
push esi
mov ecx, edi
call fcn.01023df7
push dword [esi]
call fcn.010259d1
test eax, eax
jne 0x1024062
mov eax, dword [0x1004ba0]
mov dword [ebp - 0x18], eax
mov eax, dword [0x1004ba4]
push 0x41
mov dword [ebp - 0x14], eax
pop ebx
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], bx
call fcn.010259d1
test eax, eax
jne 0x1023fff
mov ax, bx
inc ebx
cmp ax, 0x5a
jb 0x1023fe4
lea eax, [ebp - 0x18]
push eax
call fcn.010259d1
test eax, eax
je 0x1024033
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
call sub.MFC42u.DLL_CString::CString_5
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 0xa0]
mov dword [ebp - 4], 3
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x28]
jmp 0x1024059
push 0x100205c
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::CString_5
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0xa0]
mov dword [ebp - 4], 4
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
push esi
mov ecx, edi
call fcn.01023df7
push dword [esi]
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01075aef
leave
ret 0x10