Function at 0x40b580
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4b22e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x264
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 + 0x3c], ebx
call esi
add esp, 8
cmp eax, ebx
jne 0x40b5d7
mov esi, dword [esp + 0x284]
push 0x4e28c0
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
jmp 0x40b9d7
push 0x4cf25c
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_4
mov ecx, dword [esp + 0x18]
mov edx, dword [0x52fda4]
push ecx
push edx
call esi
add esp, 8
cmp eax, ebx
lea ecx, [esp + 0x18]
sete byte [esp + 0x17]
call sub.MFC42u.DLL_CString::CString
cmp byte [esp + 0x17], bl
je 0x40b624
mov esi, dword [esp + 0x284]
push 0x4e28c0
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
jmp 0x40b9d7
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
jne 0x40b648
mov esi, dword [esp + 0x284]
push 0x4e28c0
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
jmp 0x40b9d7
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x76]
mov word [esp + 0x74], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x74]
push 0xfa
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x64]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x60]
call sub.MFC42u.DLL_CString::CString_1
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x44], ecx
sub ecx, esi
mov dword [esp + 0x40], eax
sub eax, edx
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x27c], 1
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], 5
mov dword [esp + 0x58], 3
mov dword [esp + 0x5c], ebx
call sub.MFC42u.DLL_CString::CString_1
mov edx, dword [0x1404c10]
push str.KeywordImg
push edx
lea eax, [esp + 0x2c]
push str._sSCREEN_s_
push eax
mov byte [esp + 0x28c], 2
call sub.MFC42u.DLL_CString::Format
lea ecx, [esp + 0x34]
push ecx
call fcn.004264d0
add esp, 0x14
lea edx, [esp + 0x10]
push edx
call sub.MFC42u.DLL_CTime::GetTickCount
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], eax
call sub.MFC42u.DLL_CString::CString_1
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x280], 3
call sub.MFC42u.DLL_CTime::GetLocalTm
mov edi, dword [eax]
push ebx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 4]
push ebx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 8]
push ebx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov edx, dword [eax + 0xc]
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], edx
call sub.MFC42u.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push ebx
lea ecx, [esp + 0x20]
inc esi
call sub.MFC42u.DLL_CTime::GetLocalTm
mov ecx, dword [esp + 0x18]
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 + 0x44]
push str._04d_02d_02d_02d_02d_02d
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x20
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x20]
mov byte [esp + 0x27c], 4
call sub.MFC42u.DLL_CString::CString_1
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x28]
push str._s_s.jpg
push ecx
mov byte [esp + 0x28c], 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 + 0x40], ebx
call sub.MFC42u.DLL_CString::CString_3
push ecx
mov byte [esp + 0x28c], 6
mov ecx, esp
mov dword [esp + 0x28], 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 + 0x298], 5
call fcn.0040ba00
mov edx, dword [esp + 0x68]
push eax
push ebx
lea eax, [esp + 0x54]
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 + 0x78]
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 + 0x20], esp
push eax
mov byte [esp + 0x288], 8
call sub.MFC42u.DLL_CString::CString_3
mov byte [esp + 0x284], 5
call fcn.0040b450
mov esi, dword [esp + 0x28c]
add esp, 8
lea ecx, [esp + 0x28]
push str..jpg
push ecx
push esi
call sub.MFC42u.DLL_operator_4
mov dword [esp + 0x34], 1
mov byte [esp + 0x27c], 4
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x27c], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x27c], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x27c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x60]
mov byte [esp + 0x27c], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x274]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x270
ret