Function at 0x49e970
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f0
mov eax, dword [0x540cc0]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1fc], ecx
mov eax, dword [ebp - 0x1fc]
cmp dword [eax + 0xcc], 0
jne 0x49e9b2
xor al, al
jmp 0x49edcf
mov ecx, dword [ebp - 0x1fc]
cmp dword [ecx + 0xcc], 0
je 0x49edcd
push 0xff6400
lea ecx, [ebp - 0x14]
call sub.MFC71.DLL_CBrush::CBrush
mov dword [ebp - 4], 0
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC71.DLL_CDC::SelectObject_1
mov dword [ebp - 0x1dc], eax
lea ecx, [ebp - 0x19c]
call fcn.004bdaa0
lea ecx, [ebp - 0x1cc]
call fcn.004bdaa0
lea ecx, [ebp - 0x1bc]
call fcn.004bdaa0
lea eax, [ebp - 0x19c]
push eax
mov ecx, dword [ebp - 0x1fc]
mov edx, dword [ecx + 0xcc]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x1d8]
call fcn.0042bab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1f4]
call sub.MFC71.DLL_CDC::CDC
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.0042bd30
mov ecx, dword [ebp - 0x1fc]
mov edx, dword [ecx + 0x5c]
mov dword [ebp - 0x1ac], edx
mov eax, dword [ebp - 0x1fc]
mov ecx, dword [eax + 0x60]
mov dword [ebp - 0x1a8], ecx
push 0xa8
lea ecx, [ebp - 0x1d8]
call fcn.0042bc00
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0
jne 0x49eacf
mov byte [ebp - 0x1f5], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1f4]
call fcn.004f2558
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1d8]
call fcn.0042bb00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406fe0
mov al, byte [ebp - 0x1f5]
jmp 0x49edcf
lea edx, [ebp - 0x1d8]
push edx
lea ecx, [ebp - 0x1f4]
call fcn.0042bd60
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.00475370
push 0xcc0020
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x80]
push edx
push 0
push 0
lea eax, [ebp - 0x1f4]
push eax
mov ecx, dword [ebp - 0x1fc]
add ecx, 0x5c
call fcn.00407200
push eax
mov ecx, dword [ebp - 0x1fc]
add ecx, 0x5c
call fcn.004071e0
push eax
mov ecx, dword [ebp - 0x1fc]
mov edx, dword [ecx + 0x60]
push edx
mov eax, dword [ebp - 0x1fc]
mov ecx, dword [eax + 0x5c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0049fcb0
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x1f4]
call fcn.0042bd60
lea ecx, [ebp - 0x1d8]
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov eax, dword [ebp - 0x1fc]
movzx ecx, byte [eax + 0xe0]
test ecx, ecx
je 0x49eb82
push 2
push 0
mov ecx, dword [ebp - 0x1fc]
call fcn.0049e850
mov edx, dword [ebp - 0x1fc]
movzx eax, byte [edx + 0xe1]
test eax, eax
je 0x49eba2
push 3
push 1
mov ecx, dword [ebp - 0x1fc]
call fcn.0049e850
push 4
push 2
mov ecx, dword [ebp - 0x1fc]
call fcn.0049e850
push 1
mov ecx, dword [ebp + 8]
call sub.MFC71.DLL_CDC::SetBkMode
mov dword [ebp - 0x1e4], eax
mov ecx, dword [ebp + 8]
call fcn.0049fc90
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x1fc]
mov edx, dword [ecx + 0xcc]
push edx
call sub.MFC71.DLL_CWnd::FromHandle
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1d0]
call fcn.00424760
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.0043a9a0
mov dword [ebp - 0x5c], 0x2bc
lea ecx, [ebp - 0x28]
call fcn.00420180
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00420220
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call dword [edx + 0x30]
mov dword [ebp - 0x20], eax
push 0x105
push 0
lea eax, [ebp - 0x18c]
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x18c]
push ecx
mov edx, dword [ebp - 0x1fc]
mov eax, dword [edx + 0xcc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x18c]
push ecx
lea ecx, [ebp - 0x1e0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov byte [ebp - 4], 4
push 0xffffff
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
call dword [eax + 0x38]
lea ecx, [ebp - 0x1e0]
push ecx
mov edx, dword [ebp - 0x1fc]
mov eax, dword [edx + 0x70]
push eax
mov ecx, dword [ebp - 0x1fc]
mov edx, dword [ecx + 0x74]
add edx, 6
push edx
mov ecx, dword [ebp + 8]
call fcn.0042c110
mov eax, dword [ebp - 0x1e4]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC71.DLL_CDC::SetBkMode
mov ecx, dword [ebp - 0x1a0]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
call dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
call dword [eax + 0x30]
push 0
call fcn.0042dbd0
mov ecx, eax
call fcn.0049fd00
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x49ed2c
push 3
push 0
push 0
push 0x10
push 0x10
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1fc]
mov eax, dword [edx + 0x70]
push eax
mov ecx, dword [ebp - 0x1fc]
mov edx, dword [ecx + 0x6c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041cfc0
push eax
call dword [sym.imp.USER32.dll_DrawIconEx]
push 1
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x19c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x198]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x194]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x190]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1fc]
call fcn.0049f590
lea ecx, [ebp - 0x1f4]
call fcn.0041cfc0
push eax
mov ecx, dword [ebp - 0x1fc]
mov edx, dword [ecx + 0xcc]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1e0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00420200
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1f4]
call fcn.004f2558
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1d8]
call fcn.0042bb00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406fe0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x30]
call fcn.004f2f91
mov esp, ebp
pop ebp
ret 4