Function at 0x1025757
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x10d31e4
call fcn.0107a498
sub esp, 0x1c
mov eax, dword [0x10e607c]
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 0x10259b8
call fcn.01022d79
push eax
push dword [0x10eae78]
call fcn.010846d5
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 0x10258fd
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 0x102580d
cmp ecx, ebx
jne 0x10258fd
push 1
push ebx
push 0x10
push ebx
push 0x4e4d
jmp 0x102582b
push eax
call fcn.010272a6
test eax, eax
jne 0x1025842
cmp dword [ebp - 0x20], ebx
jne 0x10258fd
push 1
push ebx
push 0x10
push ebx
push 0x4ea8
push 0x4ea9
call fcn.01056e47
mov ecx, dword [ebp - 0x1c]
call sub.MFC42u.dll_CDataExchange::Fail
jmp 0x10259b8
push dword [esi]
call fcn.01027333
test eax, eax
jne 0x10258ec
cmp dword [ebp - 0x20], ebx
jne 0x10258fd
lea ecx, [ebp - 0x28]
call sub.MFC42u.dll_CString::CString_2
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call sub.MFC42u.dll_CString::CString_2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString_2
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
add esp, 0xc
push 1
push ebx
push 0x10
push ebx
push dword [ebp - 0x20]
push 0x4ea9
call fcn.01056de7
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 0x10259b8
push esi
lea ecx, [edi + 0xa0]
call fcn.01078b5e
jmp 0x10259b8
push esi
mov ecx, edi
call fcn.0102573a
push dword [esi]
call fcn.01027333
test eax, eax
jne 0x10259a5
mov eax, dword [0x1004c60]
mov dword [ebp - 0x18], eax
mov eax, dword [0x1004c64]
push 0x41
mov dword [ebp - 0x14], eax
pop ebx
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], bx
call fcn.01027333
test eax, eax
jne 0x1025942
mov ax, bx
inc ebx
cmp ax, 0x5a
jb 0x1025927
lea eax, [ebp - 0x18]
push eax
call fcn.01027333
test eax, eax
je 0x1025976
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
call sub.MFC42u.dll_CString::CString_3
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 0xa0]
mov dword [ebp - 4], 3
call fcn.01078b5e
lea ecx, [ebp - 0x28]
jmp 0x102599c
push 0x100210c
lea ecx, [ebp - 0x1c]
call sub.MFC42u.dll_CString::CString_3
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0xa0]
mov dword [ebp - 4], 4
call fcn.01078b5e
lea ecx, [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
call sub.MFC42u.dll_CString::CString
push esi
mov ecx, edi
call fcn.0102573a
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.01078836
leave
ret 0x10