Function at 0x40ba20
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4b2357
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
mov eax, dword [0x1404c0c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push edi
xor ebx, ebx
push 0x4d03b0
push eax
mov dword [esp + 0x38], ebx
call esi
add esp, 8
cmp eax, ebx
jne 0x40ba77
mov esi, dword [esp + 0x274]
push 0x4e28c0
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
jmp 0x40be7e
push 0x4cf25c
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString_4
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x52fda4]
push ecx
push edx
call esi
add esp, 8
cmp eax, ebx
lea ecx, [esp + 0x1c]
sete byte [esp + 0x17]
call sub.MFC42u.DLL_CString::CString
cmp byte [esp + 0x17], bl
je 0x40bac4
mov esi, dword [esp + 0x274]
push 0x4e2868
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_4
jmp 0x40be7e
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, eax
cmp edx, ebx
jne 0x40bae8
mov esi, dword [esp + 0x274]
push 0x4e28c0
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
jmp 0x40be7e
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x66]
mov word [esp + 0x64], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x64]
push 0xfa
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [0x5301e8]
mov edi, dword [0x5301ec]
lea ecx, [esp + 0x60]
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [0x5301f4]
mov edx, dword [0x5301f0]
add esi, edx
mov dword [esp + 0x38], edx
mov edx, dword [0x5301ec]
lea ecx, [eax + edi]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x5301e8]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x26c], 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], 5
mov dword [esp + 0x58], 3
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x50], edx
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [0x1404c10]
push str.print
push eax
lea ecx, [esp + 0x2c]
push str._sSCREEN_s_
push ecx
mov byte [esp + 0x27c], 2
call sub.MFC42u.DLL_CString::Format
lea edx, [esp + 0x34]
push edx
call fcn.004264d0
add esp, 0x14
lea eax, [esp + 0x10]
push eax
call sub.MFC42u.DLL_CTime::GetTickCount
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::CString_1
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x270], 3
call sub.MFC42u.DLL_CTime::GetLocalTm
mov edi, dword [eax]
push ebx
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 4]
push ebx
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov edx, dword [eax + 8]
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edx
call sub.MFC42u.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], eax
call sub.MFC42u.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push ebx
inc esi
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x10]
push edi
push ebp
push ecx
add eax, 0x76c
push edx
push esi
push eax
lea eax, [esp + 0x40]
push str._04d_02d_02d_02d_02d_02d
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x20
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x20]
mov byte [esp + 0x26c], 4
call sub.MFC42u.DLL_CString::CString_1
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x28]
push str._s_s.jpg
push ecx
mov byte [esp + 0x27c], 5
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov edx, esp
mov dword [esp + 0x14], esp
push 0x4cf278
push 0x1404c10
push edx
call sub.MFC42u.DLL_operator_4
push str.5000
lea eax, [esp + 0x18]
push str.screen_pixels
push eax
call fcn.004250b0
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__wtoi]
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42u.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x4cf278
push 0x1404c10
push ecx
call sub.MFC42u.DLL_operator_4
push 0x4d0414
lea edx, [esp + 0x18]
push str.screen_quality
push edx
call fcn.004250b0
mov eax, dword [eax]
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x10]
mov ebp, eax
call sub.MFC42u.DLL_CString::CString
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push 0x4cf278
push 0x1404c10
push eax
call sub.MFC42u.DLL_operator_4
push 0x4cf268
lea ecx, [esp + 0x18]
push str.screen_imgtype
push ecx
call fcn.004250b0
mov eax, dword [eax]
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
push esi
push edi
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov dword [esp + 0x44], ebx
call sub.MFC42u.DLL_CString::CString_3
push ecx
mov byte [esp + 0x27c], 6
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4e28c0
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
push eax
push ebp
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x288], 5
call fcn.0040ba00
mov edx, dword [esp + 0x68]
push eax
push ebx
lea eax, [esp + 0x58]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x68]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x7c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x80]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.004243e0
add esp, 0x38
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42u.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x278], 7
call sub.MFC42u.DLL_CString::CString_3
mov byte [esp + 0x274], 5
call fcn.0040b450
mov esi, dword [esp + 0x27c]
add esp, 8
lea ecx, [esp + 0x2c]
push str..jpg
push ecx
push esi
call sub.MFC42u.DLL_operator_4
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 1
mov byte [esp + 0x26c], 4
call sub.MFC42u.DLL_CString::CString
mov byte [esp + 0x26c], 3
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x26c], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x26c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x60]
mov byte [esp + 0x26c], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x264]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x260
ret