Function at 0x454570
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5a8c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov al, byte [esi + 0x7c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
mov dword [esp + 0x24], 1
test al, al
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
je 0x4545c2
mov edx, dword [esi + 0x20]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0xb0
push edx
call ebp
mov eax, dword [esi + 0x20]
push ebx
push ebx
push 0xba
push eax
call ebp
cmp eax, 0x3e8
jle 0x45462b
mov ecx, dword [esi + 0x20]
push ebx
push ebx
push 0xbb
push ecx
call ebp
mov edi, eax
cmp edi, ebx
jl 0x45462b
mov edx, dword [esi + 0x20]
push ebx
push 0x1f4
push 0xbb
push edx
call ebp
cmp eax, ebx
jg 0x45460d
mov eax, dword [esi + 0x20]
push ebx
push edi
push 0xc1
push eax
call ebp
add eax, edi
mov ecx, dword [esi + 0x20]
push eax
push edi
push 0xb1
push ecx
call ebp
mov edx, dword [esi + 0x20]
push 0x63546c
push ebx
push 0xc2
push edx
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push 0xa
push 0xd
push eax
push ecx
mov byte [esp + 0x34], 2
call fcn.004eb9d0
push eax
lea edx, [esp + 0x24]
push str._s____s______s______c_c
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [0x6357bc]
mov edx, dword [esp + 0x50]
add esp, 0x1c
inc ecx
cmp edx, ebx
mov dword [0x6357bc], ecx
je 0x45470e
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x45470e
jmp 0x454692
mov edx, dword [esp + 0x34]
mov al, byte [ebx + edx]
cmp al, 0xd
jne 0x4546bf
push 0xd
lea ecx, [esp + 0x14]
call fcn.00596ca0
push 0xa
lea ecx, [esp + 0x14]
call fcn.00596ca0
push 0x6060e4
lea ecx, [esp + 0x14]
call fcn.00596c9a
jmp 0x4546fb
cmp al, 0x3e
jne 0x4546f1
push 0xd
lea ecx, [esp + 0x14]
call fcn.00596ca0
push 0xa
lea ecx, [esp + 0x14]
call fcn.00596ca0
push 0x6060e4
lea ecx, [esp + 0x14]
call fcn.00596c9a
mov eax, dword [esp + 0x34]
mov cl, byte [ebx + eax]
push ecx
jmp 0x4546f2
push eax
lea ecx, [esp + 0x14]
call fcn.00596ca0
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
inc ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, ecx
jl 0x45468e
push 0xd
lea ecx, [esp + 0x14]
call fcn.00596ca0
push 0xa
lea ecx, [esp + 0x14]
call fcn.00596ca0
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetWindowTextLengthA
mov edx, dword [esi + 0x20]
push 0xffffffffffffffff
push eax
push 0xb1
push edx
call ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0xc2
push ecx
call ebp
mov al, byte [esi + 0x7c]
test al, al
je 0x454776
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x20]
push edx
push eax
push 0xb1
push ecx
call ebp
mov edx, dword [esi + 0x20]
push 0
push 0
push 0xb7
push edx
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc