Function at 0x41735a
Capabilities:
Get graphical window text

Disassembly:
push 0x4c
mov eax, 0x460c4e
call fcn.0044a6d8
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0x28], ebx
and dword [ebp - 4], 0
and dword [ebp - 0x24], 0
mov al, byte [edi + 0x39]
mov byte [ebp - 4], 1
test al, 4
je 0x417399
test byte [esi + 0x10], 1
jne 0x417395
test al, 8
jne 0x417395
xor al, al
jmp 0x41739c
mov al, 1
jmp 0x41739c
mov al, byte [esi + 0x10]
shl al, 2
xor al, byte [edi + 0x38]
add esi, 0x1c
and al, 4
xor byte [edi + 0x38], al
mov eax, dword [esi - 0xc]
shr eax, 4
shl al, 3
xor al, byte [edi + 0x38]
push esi
and al, 8
xor byte [edi + 0x38], al
mov ecx, dword [esi - 0xc]
mov al, byte [edi + 0x38]
shr ecx, 2
shl cl, 4
xor cl, al
and cl, 0x10
xor cl, al
lea eax, [ebp - 0x38]
push eax
mov byte [edi + 0x38], cl
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_CopyRect]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov al, byte [edi + 0x38]
mov esi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
test al, 0x40
jne 0x41742f
test al, 8
jne 0x4173ff
test byte [edi + 0x39], 2
je 0x41742f
push 0
call esi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x38]
push eax
push ebx
call dword [sym.imp.USER32.dll_FrameRect]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
cmp dword [ebp + 0xc], 0
je 0x41742f
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
test byte [edi + 0x38], 2
je 0x41743f
push ebx
mov ecx, edi
call fcn.00417166
jmp 0x41744b
mov eax, dword [edi]
lea ecx, [ebp - 0x38]
push ecx
push ebx
mov ecx, edi
call dword [eax + 0x10]
mov al, byte [edi + 0x38]
test al, 4
je 0x41749c
test al, 0x40
je 0x41746f
test al, 0x20
je 0x41762a
mov eax, dword [edi]
lea ecx, [ebp - 0x38]
push ecx
push ebx
mov ecx, edi
call dword [eax + 0x14]
jmp 0x41762a
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call esi
mov esi, eax
push esi
lea eax, [ebp - 0x38]
push eax
push ebx
call dword [sym.imp.USER32.dll_FrameRect]
test esi, esi
je 0x41762a
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x41762a
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
call esi
push eax
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push 0x16
mov dword [ebp - 0x1c], eax
call esi
push eax
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push 0x10
mov dword [ebp - 0x18], eax
call esi
push eax
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push 0x15
mov dword [ebp - 0x14], eax
call esi
push eax
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [ebp + 0xc], eax
mov al, byte [edi + 0x38]
test al, 0x40
je 0x41751c
test al, 1
je 0x4175f8
test al, 0x20
je 0x4175f8
push 0x10
call esi
push eax
push 0x14
call esi
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041725f
jmp 0x4175f8
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
push 0
dec eax
push eax
push dword [ebp - 0x38]
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
push dword [ebp - 0x34]
mov esi, dword [sym.imp.GDI32.dll_LineTo]
push dword [ebp - 0x38]
push ebx
call esi
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push ebx
call esi
push dword [ebp - 0x18]
push ebx
call edi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
push 0
dec eax
push eax
inc ecx
push ecx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
inc eax
push eax
inc ecx
push ecx
push ebx
call esi
mov eax, dword [ebp - 0x34]
inc eax
push eax
push dword [ebp - 0x30]
push ebx
call esi
push dword [ebp + 0xc]
push ebx
call edi
mov eax, dword [ebp - 0x2c]
push 0
dec eax
push eax
push dword [ebp - 0x38]
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
dec eax
push eax
dec ecx
push ecx
push ebx
call esi
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
dec eax
push eax
dec ecx
push ecx
push ebx
call esi
push dword [ebp - 0x14]
push ebx
call edi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
add eax, 0xfffffffe
inc ecx
push 0
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
add eax, 0xfffffffe
push eax
add ecx, 0xfffffffe
push ecx
push ebx
call esi
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x34]
add eax, 0xfffffffe
push eax
push ebx
call esi
push dword [ebp - 0x24]
push ebx
call edi
mov edi, dword [ebp - 0x10]
cmp dword [ebp + 0xc], 0
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x417609
push dword [ebp + 0xc]
call esi
cmp dword [ebp - 0x14], 0
je 0x417614
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x18], 0
je 0x41761f
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x1c], 0
je 0x41762a
push dword [ebp - 0x1c]
call esi
mov eax, dword [0x47c014]
mov dword [ebp + 0xc], eax
push dword [edi + 4]
mov byte [ebp - 4], 2
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
push esi
lea ecx, [ebp + 0xc]
call fcn.00416903
inc esi
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [edi + 0x260], 0
mov esi, dword [ebp + 0xc]
je 0x4176a1
mov al, byte [edi + 0x38]
mov cl, al
shr cl, 4
shr al, 2
and cl, 1
and al, 1
cmp dword [esi - 8], 0
movzx ecx, cl
push ecx
movzx eax, al
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x20]
setne al
movzx eax, al
push eax
push ebx
mov ecx, edi
call fcn.00416d05
cmp dword [edi + 0x278], 0
je 0x4176e8
push 0xffffff
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov al, byte [edi + 0x38]
mov cl, al
shr cl, 4
shr al, 2
and cl, 1
and al, 1
cmp dword [esi - 8], 0
movzx ecx, cl
push ecx
movzx eax, al
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x20]
setne al
movzx eax, al
push eax
push ebx
mov ecx, edi
call fcn.00416bf1
cmp dword [esi - 8], 0
je 0x4177f1
test byte [edi + 0x38], 4
je 0x41770c
test byte [edi + 0x39], 4
jne 0x41770c
push 1
push 1
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea esi, [ebp - 0x48]
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x411
lea eax, [ebp - 0x48]
push eax
movsd dword es:[edi], dword [esi]
push 0xffffffffffffffff
push dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.USER32.dll_DrawTextW]
push ebx
call esi
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
sub eax, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x40]
add eax, dword [ebp - 0x44]
sub ecx, dword [ebp - 0x58]
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
cdq
sub eax, edx
mov edx, dword [ebp - 0x48]
sar eax, 1
push eax
lea ecx, [ecx + edx - 0x14]
push ecx
lea eax, [ebp - 0x48]
push eax
call edi
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + 0x38]
test al, 0x10
je 0x4177b3
push 1
push 1
lea eax, [ebp - 0x48]
push eax
call edi
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x11
lea eax, [ebp - 0x48]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
call esi
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
call edi
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
jmp 0x4177e0
test al, 5
jne 0x4177c9
push dword [ecx + 0x54]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
jmp 0x4177d9
push dword [ecx + 0x4c]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x48]
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0x11
lea eax, [ebp - 0x48]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
call esi
mov edi, dword [ebp - 0x10]
mov al, byte [edi + 0x38]
test al, 0x40
je 0x4177fc
test al, al
jns 0x417823
test al, 8
je 0x417823
lea esi, [ebp - 0x38]
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xfffffffffffffffd
movsd dword es:[edi], dword [esi]
push 0xfffffffffffffffd
lea eax, [ebp - 0x58]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x58]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004162f9
call fcn.0044a7b0
ret 8