Function at 0x40f450
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4593a7
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 + 0x20], esi
jne 0x40f99e
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 + 0x64], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], vtable.FCObjImage.0
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
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 + 0xa0], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
lea eax, [esp + 0xcc]
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 0x40f5c8
mov ecx, eax
call sub.MFC80U.DLL_Ordinal_347
mov esi, eax
jmp 0x40f5ca
xor esi, esi
push edi
mov byte [esp + 0x234], bl
call dword [sym.imp.USER32.dll_GetParent]
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 0x40f5f1
xor eax, eax
jmp 0x40f5f4
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_1270
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], vtable.CBitmap.0
mov byte [esp + 0x230], 2
mov eax, dword [esp + 0xd8]
sub eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
sub ecx, dword [esp + 0xcc]
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 + 0x14]
call sub.MFC80U.DLL_Ordinal_1271
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40f660
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push esi
push 0x2340
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x34]
mov edx, ecx
sub edx, dword [esp + 0x2c]
je 0x40f95d
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
je 0x40f95d
cmp esi, ebx
je 0x40f69a
mov ebx, dword [esi + 4]
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x6c]
push edx
mov dword [eax + 0xc], ecx
call fcn.004079a0
add esp, 0x14
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_1920
test esi, esi
je 0x40f6d9
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 1
mov ecx, esi
call edx
lea eax, [esp + 0xbc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40f6f4
xor ecx, ecx
jmp 0x40f6f7
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0xbc]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0xd0]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xd4]
mov dword [eax + 8], edx
mov edx, dword [esp + 0xd8]
mov dword [eax + 0xc], edx
push ecx
lea eax, [esp + 0x70]
call fcn.004078a0
mov ecx, dword [esp + 0x2c]
add esp, 0x14
call sub.MFC80U.DLL_Ordinal_1920
lea ecx, [esp + 0x10]
call sub.MFC80U.DLL_Ordinal_1925
mov byte [esp + 0x230], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CBitmap.0
call fcn.00407b40
mov dword [esp + 0x230], 0xffffffff
lea esi, [esp + 0x5c]
mov dword [esp + 0x5c], vtable.FCObjImage.0
call fcn.00406c80
lea eax, [esp + 0xac]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 0x40]
push 0x80
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x1c
call sub.MFC80U.DLL_Ordinal_762
mov edi, eax
add esp, 4
test edi, edi
je 0x40f7bc
lea ecx, [edi + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
jmp 0x40f7be
xor edi, edi
lea eax, [esp + 0x11c]
push eax
lea ecx, [edi + 0x10]
mov dword [edi + 0x14], 0x80
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, dword [esi + 0x30]
test eax, eax
mov ebx, dword [esp + 0x1c]
je 0x40f80c
mov ecx, dword [esp + 0xb8]
sub ecx, dword [esi + 0x20]
mov edx, dword [esp + 0xb4]
sub edx, dword [esi + 0x1c]
sub ecx, dword [esp + 0xb0]
sub edx, dword [esp + 0xac]
push edi
push ecx
push edx
push ebx
call fcn.0040e710
mov eax, dword [edi + 0x18]
mov dword [esi + 0x48], eax
call fcn.004105c0
mov ecx, dword [esi + 0x48]
push ecx
add eax, 0xc
call fcn.00410760
lea edx, [esp + 0x3c]
lea edi, [eax + 0xc]
mov eax, dword [esi + 0x40]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x4c]
call sub.MFC80U.DLL_Ordinal_347
test ebx, ebx
mov dword [esp + 0x230], 3
jne 0x40f851
xor eax, eax
jmp 0x40f854
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x50]
call sub.MFC80U.DLL_Ordinal_1270
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], vtable.CBitmap.0
mov byte [esp + 0x230], 4
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov ecx, dword [ebx + 4]
push 0x3e8
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_1271
test edi, edi
je 0x40f8b6
mov edi, dword [edi + 4]
test edi, edi
je 0x40f8b6
mov edx, dword [esp + 0x50]
push edi
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x40]
push 0x410
lea ecx, [esp + 0x40]
push ecx
add eax, 0x3e8
push 0xffffffffffffffff
lea edx, [esp + 0x128]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x40]
push 0
push eax
push 0x2b0e
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x24]
call sub.MFC80U.DLL_Ordinal_1925
lea ecx, [esp + 0x4c]
call sub.MFC80U.DLL_Ordinal_1920
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_1920
mov eax, dword [esi + 0x40]
lea edx, [esp + 0xdc]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
mov byte [esp + 0x230], 3
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CBitmap.0
call fcn.00407b40
lea ecx, [esp + 0x4c]
mov dword [esp + 0x230], 0xffffffff
call sub.MFC80U.DLL_Ordinal_602
jmp 0x40f9d6
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x40]
lea ecx, [esp + 0xdc]
push ecx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
mov byte [esp + 0x230], bl
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CBitmap.0
call fcn.00407b40
lea esi, [esp + 0x5c]
mov dword [esp + 0x5c], vtable.FCObjImage.0
call fcn.00406c80
jmp 0x40f9d6
cmp ecx, 0x14
jne 0x40f9a8
mov byte [eax], 1
jmp 0x40f9d6
cmp ecx, 0x85
je 0x40f9a3
cmp ecx, 5
jne 0x40f9d6
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
push 5
push edi
mov ecx, esi
call fcn.004149d0
mov eax, dword [esi + 0x40]
push 0
push 0
push eax
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