Function at 0x41ca45
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8ac
mov eax, dword [0x4b7f60]
xor eax, esp
mov dword [esp + 0x8a8], eax
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x70]
push ecx
xor edi, edi
push eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], eax
call dword [sym.imp.USER32.dll_BeginPaint]
push dword [esi + 4]
mov dword [esp + 0x6c], eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41cd78
lea eax, [esp + 0x1c]
push eax
push dword [esi + 4]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push eax
push ecx
push dword [esp + 0x70]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0xf2
push dword [esi + 4]
call ebx
push edi
push edi
shr eax, 2
push 0xf0
push dword [esi + 4]
test al, 1
je 0x41cb1c
call ebx
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 4
inc ebx
inc ebx
jmp 0x41cb3f
cmp dword [esi + 0xc4], edi
je 0x41cb33
call ebx
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 4
inc ebx
jmp 0x41cb3f
call ebx
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x41cb69
push edi
push edi
push 0xf0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 4
add ebx, 3
push dword [esp + 0x10]
call fcn.0041b8cd
cmp dword [esi + 0xc0], edi
je 0x41cb7f
cmp ebx, dword [esi + 0x5c]
je 0x41cb89
mov eax, esi
mov dword [esi + 0x5c], ebx
call fcn.0041ce4b
lea eax, [esp + 0x48]
push eax
push dword [esi + 0xc0]
call fcn.004542c0
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
cmp ecx, edx
jae 0x41cbad
xor ecx, ecx
jmp 0x41cbb1
sub ecx, edx
shr ecx, 1
mov ebx, dword [esp + 0x4c]
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0xff
mov byte [esp + 0x17], 1
push dword [esp + 0x14]
lea eax, [ecx + edx]
push edx
push ebx
push edi
push edi
push dword [esi + 0xc0]
sub eax, ecx
push eax
push ebx
push ecx
push edi
push dword [esp + 0x38]
mov dword [esp + 0x8c], ebx
call fcn.004547d0
push 0x4c4d8c
lea ecx, [esp + 0x18]
call fcn.00415957
xor eax, eax
push 0x7fe
mov word [esp + 0xb4], ax
lea eax, [esp + 0xb6]
push edi
push eax
call fcn.0046d720
add esp, 0xc
push 0x401
lea eax, [esp + 0xb4]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0041798e
mov ebx, esi
call fcn.0041cd9e
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [esp + 0x14]
call ebx
mov edi, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
push eax
push dword [edi - 0xc]
push edi
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
add eax, 6
add ecx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x44]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
dec eax
push 1
push dword [esp + 0x14]
mov dword [esp + 0x38], eax
lea eax, [eax + ecx - 1]
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x9a9793
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
lea eax, [esp + 0x30]
push eax
push dword [edi - 0xc]
push edi
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [esp + 0x3c]
push dword [esp + 0x14]
call ebx
xor ebx, ebx
cmp dword [esi + 0x30], ebx
je 0x41cd0a
dec dword [esp + 0x2c]
dec dword [esp + 0x30]
inc dword [esp + 0x34]
inc dword [esp + 0x38]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push 0xcc0020
push ebx
push ebx
push dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push eax
push ebx
push ebx
push dword [esp + 0x88]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
test eax, eax
je 0x41cd54
mov dword [esp + 0x18], ebx
lea ecx, [edi - 0x10]
call fcn.0041597c
cmp dword [esp + 0x18], ebx
je 0x41cd68
push dword [esp + 0x18]
call esi
cmp dword [esp + 0x10], ebx
je 0x41cd78
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x70]
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x8b4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0046d79a
mov esp, ebp
pop ebp
ret