Function at 0x40e7e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4585dc
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x476028]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x476028]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xf
mov dword [esp + 0x28], esi
jne 0x40eb97
push 0x40
mov byte [eax], 1
xor ebx, ebx
lea eax, [esp + 0xe0]
push ebx
push eax
call sub.MSVCR80.dll_memset
mov edx, dword [esi + 0x40]
add esp, 0xc
lea ecx, [esp + 0xdc]
push ecx
push edx
call dword [sym.imp.USER32.dll_BeginPaint]
push edi
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call sub.MFC80U.DLL_Ordinal_2361
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_GetParent]
lea ecx, [esp + 0x2c]
push ecx
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
lea edx, [esp + 0x34]
push edx
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
xor eax, eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], vtable.FCObjImage.0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
lea eax, [esp + 0x3c]
push eax
push edi
mov dword [esp + 0x238], ebx
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x10
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x230], 1
je 0x40e963
mov ecx, eax
call sub.MFC80U.DLL_Ordinal_347
mov dword [esp + 0x14], eax
jmp 0x40e967
mov dword [esp + 0x14], ebx
push edi
mov byte [esp + 0x234], bl
call esi
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC80U.DLL_Ordinal_2361
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x40e98a
xor eax, eax
jmp 0x40e98d
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x14]
push eax
call sub.MFC80U.DLL_Ordinal_1270
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], vtable.CBitmap.0
mov byte [esp + 0x230], 2
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x24]
call sub.MFC80U.DLL_Ordinal_1271
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40e9f3
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x14]
push ebx
push edx
push 0x2340
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x40ea13
mov ebx, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x7c]
push eax
call fcn.004079a0
add esp, 0x14
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_1920
test esi, esi
je 0x40ea56
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
lea ecx, [esp + 0x5c]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40ea6e
xor ecx, ecx
jmp 0x40ea71
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x5c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 0xc], edx
push ecx
lea eax, [esp + 0x80]
call fcn.004078a0
mov ecx, dword [esp + 0x2c]
add esp, 0x14
call sub.MFC80U.DLL_Ordinal_1920
lea ecx, [esp + 0x20]
call sub.MFC80U.DLL_Ordinal_1925
mov byte [esp + 0x230], 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.CBitmap.0
call fcn.00407b40
lea esi, [esp + 0x6c]
mov dword [esp + 0x6c], vtable.FCObjImage.0
call fcn.00406c80
lea eax, [esp + 0x4c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [esp + 0x28]
mov edx, dword [esi + 0x40]
push 0x80
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0xd0]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea eax, [esp + 0x11c]
mov dword [esp + 0x230], 3
push eax
lea ecx, [esp + 0xd4]
mov dword [esp + 0xd8], 0x20
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40eb6d
mov edx, dword [esp + 0x58]
sub edx, dword [esi + 0x20]
lea ecx, [esp + 0xc0]
sub edx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x58]
sub ecx, dword [esi + 0x1c]
push edx
sub ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.0040e710
mov ecx, dword [esp + 0x1c]
call sub.MFC80U.DLL_Ordinal_1920
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0xdc]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
lea ecx, [esp + 0xd0]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x40ebce
cmp ecx, 0x14
jne 0x40eba1
mov byte [eax], 1
jmp 0x40ebce
cmp ecx, 0x85
je 0x40eb9c
cmp ecx, 5
jne 0x40ebce
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.004149d0
mov ecx, dword [esi + 0x40]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00452313
mov esp, ebp
pop ebp
ret 0x14