Function at 0x4b8190
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 0x6c]
cmp eax, ebx
je 0x4b81b7
mov dword [eax + 8], ebx
mov eax, dword [eax + 0x10]
cmp eax, ebx
jne 0x4b81ad
cmp dword [edi + 0x70], ebx
jne 0x4b81c4
mov dword [esp + 0x14], 1
mov eax, dword [edi + 0x40]
push eax
call dword [sym.imp.USER32.dll_GetTopWindow]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x18], ebp
je 0x4b8293
lea ecx, [esp + 0x1c]
push 0xfa
push ecx
push ebp
mov byte [esp + 0x28], 0
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [esp + 0x1c]
test al, al
je 0x4b827e
mov esi, dword [edi + 0x6c]
test esi, esi
je 0x4b822c
cmp dword [esi + 4], ebp
je 0x4b8215
mov ebx, esi
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x4b8205
jmp 0x4b822c
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
mov dword [esi + 8], 1
call sub.MFC42.DLL_CString::operator_1
test esi, esi
jne 0x4b827e
push 0x14
call fcn.004c2e90
mov esi, eax
add esp, 4
test esi, esi
je 0x4b8293
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, eax
mov dword [esi + 4], ebp
mov dword [esi + 0xc], eax
mov dword [esi + 8], 1
mov dword [esi + 0x10], eax
jne 0x4b8272
cmp ebx, eax
je 0x4b8278
mov dword [ebx + 0x10], esi
jmp 0x4b827b
mov ecx, dword [edi + 0x6c]
mov dword [esi + 0x10], ecx
mov dword [edi + 0x6c], esi
inc dword [edi + 0x70]
push 2
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
jne 0x4b81dc
mov esi, dword [edi + 0x6c]
xor ebx, ebx
test esi, esi
je 0x4b82fe
mov eax, dword [esi + 8]
test eax, eax
jne 0x4b82da
mov ebp, dword [esi + 0x10]
test esi, esi
je 0x4b82ba
mov ecx, esi
call sub.MFC42.DLL_CString::CString
push esi
call fcn.004c2eb0
add esp, 4
test ebx, ebx
jne 0x4b82cc
mov eax, dword [edi + 0x70]
mov dword [edi + 0x6c], ebp
dec eax
mov esi, ebp
mov dword [edi + 0x70], eax
jmp 0x4b82fa
mov dword [ebx + 0x10], ebp
mov eax, dword [edi + 0x70]
dec eax
mov esi, ebp
mov dword [edi + 0x70], eax
jmp 0x4b82fa
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x18]
cmp edx, eax
jne 0x4b82ec
mov eax, dword [esp + 0x10]
mov dword [edi + 0x74], eax
mov eax, dword [esp + 0x10]
mov ebx, esi
mov esi, dword [esi + 0x10]
inc eax
mov dword [esp + 0x10], eax
test esi, esi
jne 0x4b829c
cmp dword [edi + 0x70], 2
jge 0x4b8333
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x4b832c
mov ecx, dword [edi + 0x6c]
mov esi, ecx
mov ebp, dword [ecx + 0x10]
test esi, esi
je 0x4b8325
call sub.MFC42.DLL_CString::CString
push esi
call fcn.004c2eb0
add esp, 4
test ebp, ebp
mov dword [edi + 0x6c], ebp
jne 0x4b830b
mov dword [edi + 0x70], 0
mov edx, dword [edi + 0x40]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandlePermanent
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xd0]
mov ecx, edi
call fcn.004b8910
mov eax, dword [edi + 0x20]
push 0x405
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret