Function at 0x45a580
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x42c
push ebp
push esi
push 0x4a6288
push eax
call dword [sym.imp.USER32.dll_GetPropA]
mov esi, dword [esp + 0x43c]
mov ebp, eax
cmp dword [esi], 4
je 0x45a5b3
pop esi
xor al, al
pop ebp
add esp, 0x42c
ret 8
mov ecx, dword [esi + 0x14]
push ebx
push edi
push 0
push 0
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ebx, [esi + 0x1c]
lea edx, [esp + 0x24]
push ebx
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 0x18], eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov edx, dword [esi + 0x18]
push edi
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 0x18]
push 1
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x3c]
stosw word es:[edi], ax
push 0x400
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esi + 4]
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.0045b730
lea ecx, [esp + 0x18]
mov edi, eax
push ecx
mov ecx, edi
call fcn.00463400
mov edi, dword [edi + 4]
mov dword [esp + 0x34], eax
cmp eax, edi
je 0x45a66d
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
cmp edx, ecx
jl 0x45a66d
lea eax, [esp + 0x34]
jmp 0x45a675
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov edi, dword [eax]
mov ecx, ebp
call fcn.0045b730
cmp edi, dword [eax + 4]
jne 0x45a6ae
mov ecx, ebp
call fcn.0045b730
xor ecx, ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
push ecx
push edx
mov ecx, eax
call fcn.00460720
mov eax, dword [esp + 0x34]
mov edi, dword [eax + 0x10]
jmp 0x45a6b1
mov edi, dword [edi + 0x10]
mov eax, dword [esi + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, 0xfffffffb
je 0x45a733
test byte [esi + 0x10], 1
je 0x45a6cc
mov eax, dword [edi + 0x70]
jmp 0x45a6cf
mov eax, dword [edi + 0x6c]
mov ecx, dword [eax + 4]
mov edx, dword [esi + 0x18]
mov eax, dword [eax]
push ecx
push edx
push eax
call fcn.00465920
mov eax, dword [esi + 0x10]
add esp, 0xc
test al, 1
je 0x45a6f9
mov edx, dword [esi + 0x20]
mov ecx, dword [ebx]
add edx, 2
add ecx, 2
mov dword [esi + 0x20], edx
mov dword [ebx], ecx
test al, 4
je 0x45a707
mov ecx, dword [edi + 0x64]
mov edx, dword [esi + 0x18]
push ecx
push edx
jmp 0x45a70f
mov eax, dword [edi + 0x60]
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea edx, [esp + 0x24]
push 0x25
lea eax, [esp + 0x40]
push edx
push eax
call ebp
mov edx, dword [esi + 0x18]
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test byte [esi + 0xc], 4
jne 0x45a743
test byte [esi + 0x10], 0x10
je 0x45a7cc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
push eax
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
sub eax, ebp
sub eax, ebx
mov edi, dword [esp + 0x10]
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
mov ecx, 2
sub ecx, eax
mov eax, dword [esp + 0x2c]
sub eax, edi
push ecx
sub eax, edx
cdq
sub eax, edx
mov edx, 2
sar eax, 1
sub edx, eax
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [esi + 0x18]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x440]
push 0
push eax
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x18]
push edx
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x20]
pop edi
mov dword [esi + 0x18], eax
pop ebx
pop esi
mov al, 1
pop ebp
add esp, 0x42c
ret 8