Function at 0x40bf40
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4b2407
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x248]
xor ebp, ebp
push eax
mov dword [esp + 0x244], ebp
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 0x80
jbe 0x40bfbc
lea ecx, [esp + 0x24]
push 0x80
push ecx
lea ecx, [esp + 0x250]
call sub.MFC42u.DLL_CString::Right
push eax
lea ecx, [esp + 0x24c]
mov byte [esp + 0x244], 1
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x240], 0
call sub.MFC42u.DLL_CString::CString
cmp dword [0x4e3a10], ebp
je 0x40c3e4
lea edx, [esp + 0x248]
lea ecx, [esp + 0x2c]
push edx
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x2c]
mov byte [esp + 0x240], 2
call sub.MFC42u.DLL_CString::MakeLower
mov eax, dword [0x4e3a10]
xor esi, esi
cmp eax, ebp
jle 0x40c3d3
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
lea eax, [esp + 0x24]
push esi
push eax
mov ecx, 0x4e3a08
call fcn.00401460
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call edi
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
setne bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
jne 0x40c03f
mov eax, dword [0x4e3a10]
add esi, 3
cmp esi, eax
jl 0x40bfff
jmp 0x40c3d3
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, eax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x3a]
mov word [esp + 0x38], bp
cmp edx, ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x28], edx
stosw word es:[edi], ax
je 0x40c074
lea eax, [esp + 0x38]
push 0x100
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x4e2868
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::CString_4
push 0x4d0560
lea ecx, [esp + 0x1c]
mov byte [esp + 0x244], 3
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esi + 1]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, 0x4e3a08
mov byte [esp + 0x248], 4
call fcn.00401460
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
push ecx
push edx
call edi
add esp, 8
cmp eax, ebp
lea ecx, [esp + 0x14]
sete bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 3
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x40c119
lea eax, [esp + 0x14]
push eax
call fcn.0040b580
add esp, 4
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x244], 5
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x34]
push ecx
call fcn.00422360
add esp, 4
lea edx, [esp + 0x34]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x244], 6
mov word [esp + 0x22], bp
mov word [esp + 0x20], 1
mov word [esp + 0x36], bp
mov word [esp + 0x34], 3
call sub.MFC42u.DLL_CString::CString_3
lea eax, [esp + 0x1c]
mov bl, 7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x244], bl
call sub.MFC42u.DLL_CString::operator_1
push 0x52fe70
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator_1
push str.Keystrokes
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_4
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x244], 8
call fcn.004b0394
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], bl
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, 0x4e3a08
call fcn.00401460
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x244], 9
call fcn.004b0394
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], bl
call sub.MFC42u.DLL_CString::CString
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42u.DLL_CString::operator_1
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator_1
lea edx, [esp + 0x248]
lea ecx, [esp + 0x10]
push edx
call fcn.004b0394
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator_1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42u.DLL_CString::CString_3
push 0x4d0534
call fcn.00425820
add esp, 4
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4cf608
call sub.MFC42u.DLL_CString::CString_2
push ecx
mov byte [esp + 0x248], 0xa
mov eax, esp
mov dword [esp + 0x20], esp
push str.file_transfer_backup_screen.flag
push 0x1404c10
push eax
call sub.MFC42u.DLL_operator_4
mov byte [esp + 0x248], bl
call fcn.0040ac30
add esp, 8
lea ecx, [esp + 0x18]
push 0x4d0560
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esi + 2]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, 0x4e3a08
mov byte [esp + 0x248], 0xb
call fcn.00401460
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
push ecx
push edx
call edi
add esp, 8
cmp eax, ebp
lea ecx, [esp + 0x14]
sete byte [esp + 0x23]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], bl
call sub.MFC42u.DLL_CString::CString
mov al, byte [esp + 0x23]
test al, al
je 0x40c319
mov eax, dword [esp + 0x28]
push eax
call fcn.0040bea0
add esp, 4
push ebp
push ecx
lea edx, [esp + 0x250]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call sub.MFC42u.DLL_CString::CString_3
push ecx
mov byte [esp + 0x24c], 0xc
mov edi, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.IMONITOR_ID_30039
call sub.MFC42u.DLL_CString::CString_4
push 0x4e2a30
push edi
call fcn.004285b0
add esp, 0xc
mov byte [esp + 0x24c], bl
call fcn.004016e0
add esp, 0xc
lea eax, [esp + 0x28]
mov ecx, 0x4e3a08
push esi
push eax
call fcn.00401460
mov eax, dword [eax]
mov ecx, 0x52facc
push eax
mov byte [esp + 0x244], 0xd
call sub.MFC42u.DLL_CString::Find_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x240], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x240], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x240], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x240], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x248]
mov dword [esp + 0x240], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x234
ret