Function at 0x41c510
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539ec6
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x583384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xac], edi
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0x88], eax
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.GDI32.dll_SaveDC]
mov dword [ebp - 0xb8], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x98]
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x98], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [edi + 0x28], 0
movups xmm0, xmmword [ebp - 0x98]
movups xmmword [ebp - 0x40], xmm0
je 0x41c744
call fcn.00406af0
test al, al
je 0x41c744
push dword [edi + 0x38]
mov edi, dword [sym.imp.GDI32.dll_CreatePen]
push 1
push 0
call edi
mov esi, eax
push esi
push dword [ebp - 0x88]
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
push 5
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x88]
call dword [sym.imp.GDI32.dll_RoundRect]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [ebp - 0xac]
push dword [eax + 0x3c]
push 1
push 0
call edi
mov edi, eax
push edi
push dword [ebp - 0x88]
call dword [sym.imp.GDI32.dll_SelectObject]
push 2
push 2
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x88]
call dword [sym.imp.GDI32.dll_RoundRect]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [ebp - 0xac]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
movzx eax, byte [ecx + 0x40]
shl ax, 8
mov word [ebp - 0x28], ax
movzx eax, byte [ecx + 0x41]
shl ax, 8
mov word [ebp - 0x26], ax
movzx eax, byte [ecx + 0x42]
shl ax, 8
mov word [ebp - 0x24], ax
xor eax, eax
mov word [ebp - 0x22], ax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ecx + 0x44]
shl ax, 8
mov word [ebp - 0x18], ax
movzx eax, byte [ecx + 0x45]
shl ax, 8
mov word [ebp - 0x16], ax
movzx eax, byte [ecx + 0x46]
shl ax, 8
mov word [ebp - 0x14], ax
xor eax, eax
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 1
push 1
push 1
mov word [ebp - 0x12], ax
lea eax, [ebp - 0xb4]
push eax
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.MSIMG32.dll_GradientFill]
mov eax, dword [sym.imp.GDI32.dll_DeleteObject]
test edi, edi
je 0x41c712
push edi
call eax
mov eax, dword [sym.imp.GDI32.dll_DeleteObject]
test esi, esi
je 0x41c719
push esi
call eax
mov edi, dword [ebp - 0xac]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
inc eax
mov dword [ebp - 0xb0], eax
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x41c79d
push 0x80004005
call fcn.004063a0
push dword [edi + 0x30]
push dword [ebp - 0x88]
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0x54727d
lea eax, [ebp - 0x40]
push eax
push 2
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x88]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push dword [edi + 0x34]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [ebp - 0x40]
push esi
push eax
push dword [ebp - 0x88]
call dword [sym.imp.USER32.dll_FrameRect]
test esi, esi
je 0x41c71f
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x41c71f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0xac], esi
mov edx, dword [ebp - 0xb0]
mov byte [ebp - 4], 1
test edx, edx
jns 0x41c7c5
push 0x80070057
call fcn.004063a0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x41c7ee
push edx
lea ecx, [ebp - 0xac]
call fcn.00406dd0
mov esi, dword [ebp - 0xac]
mov edx, dword [ebp - 0xb0]
push edx
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [esi - 8]
push esi
call fcn.00526cb2
add esp, 8
test eax, eax
js 0x41c7bb
cmp eax, dword [esi - 8]
jg 0x41c7bb
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
push dword [edi + 0x48]
push dword [ebp - 0x88]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [edi + 0x34]
push dword [ebp - 0x88]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push dword [ebp - 0x88]
call dword [sym.imp.GDI32.dll_SetBkMode]
movups xmm0, xmmword [ebp - 0x98]
push 0
push 4
lea eax, [ebp - 0xa8]
push eax
movups xmmword [ebp - 0xa8], xmm0
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x824
lea eax, [ebp - 0xa8]
push eax
push dword [esi - 0xc]
push esi
push dword [ebp - 0x88]
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [ebp - 0xb8]
push dword [ebp - 0x88]
call dword [sym.imp.GDI32.dll_RestoreDC]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41c8aa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x84]
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00513512
mov esp, ebp
pop ebp
ret 4